~ruther/dwl

ref: 5ed227384b7f5069b2a9d6cb653f08799488c6d8 dwl/dwl.c -rw-r--r-- 79.8 KiB
5ed22738 — Guido Cella 4 years ago
rename drw

It's impossible to understand that this stands from drawable if you're
not familiar with dwm's code.
b161b5d8 — Guido Cella 4 years ago
don't notify of activity

...or update selmon when we just want to restore pointer focus.
13c7e039 — Guido Cella 4 years ago
deactivate the focused client on overlay focus
a571ea46 — Guido Cella 4 years ago
replace shouldfocusclients with checking old

And don't activate clients while an overlay is focused.
39946e07 — Guido Cella 4 years ago
fix keyboard focus with overlays

Don't let internal calls to motionnotify(0) meant to update the pointer
focus from maplayersurfacenotify and destroylayersurfacenotify also
shift the keyboard focus to the surface under the cursor with
sloppyfocus.
f80f0884 — Guido Cella 4 years ago
ensure that xwayland cursor defaults to left_ptr

Don't show an X cursor when closing an Xwayland window or with certain
dropdowns.

Based on https://github.com/djpohly/dwl/pull/32
444a5f9d — Guido Cella 4 years ago
enable adaptive sync

The comment in this function's declaration says the backend is free to
ignore this setting, so maybe there's no need to make it configurable?
6b47e2bb — Guido Cella 4 years ago
use bool

Because it's 2020. Passing integers to wlroots variables and functions
with bool in their signature is silly.
0b2f4f21 — Guido Cella 4 years ago
remove -Werror=declaration-after-statement

wtf is the point of this crap? It makes the code harder to follow,
increases the line count and made me fail compilation a million times.
We shouldn't blindy follow everything about suckless's style.
ba1540c3 — Guido Cella 4 years ago
remove goto when the border is 0

Rendering 0-dimension rectangles no longer crashes wlroots.
2eaa8c6d — Guido Cella 4 years ago
remove useless assignment

calloc already initializes ints to 0.
ee7e8688 — Guido Cella 4 years ago
s/maprequest/mapnotify

This should be consistent with other function names instead of keeping
the X name.
Added support for natural scrolling
Added basic tap-to-click for touchpad users
679f6493 — Bonicgamer 4 years ago
Made scalebox the way sway does it

Scaling a wlr_box without rounding can sometimes make the borders not
connected and nice. I noticed this when setting scale in monrules to 1.2

So I've went and copied what Sway did in desktop/output.c but without
having a second function and now using a random rounding macro I found
on the internet so as to not use round from math.h.
9c2524b0 — Guido Cella 4 years ago
s/prev/old

Be consistent with the rest of the code and dwm
c89de53d — Guido Cella 4 years ago
remove togglefullscreen keybinding

Distribute it as a patch like in dwm since graphical applications
usually provide their own keybinding; I guess it's only for terminals.

Note that even though these commits don't let you open multiple windows
in fullscreen and cycle between them like in dwm, with just
fullscreennotify spawning new windows or changing tag would still exit
fullscreen automatically, but you would have to toggle fullscreen twice
when switching back to the fullscreen window to enter fullscreen again,
so this is better since it avoids that.
14ce0162 — Stivvo 4 years ago
Readme: achieve fullscreen + allow borderpx = 0
1e134fde — Stivvo 4 years ago
Quit fullscreen on new x11 window

After the removal of quitfullscreen() dwl wouldn't compile widh xwayland
enabled because createnotifyx11 was still using the old function
32612c90 — Stivvo 4 years ago
Delete quitfullscreen()

quitfullscreen() was replicating the functionalities of setfullscreen(c,
0)

Reusing setfullscreen() in quitfullscreen() leads to a 3 line function,
which is useless since quitfullscreen() is used once anyway
Next