~ruther/dwl

ref: fd498e1910d51def032d2b68f52cd89db7ba15f6 dwl/dwl.c -rw-r--r-- 80.2 KiB
33e8a3f1 — Guido Cella 4 years ago
update comments and remove debugging printf
5668c616 — Stivvo 4 years ago
Define monitor order with monrules[]

The order in which monitors are defined in monrules[] actually matters.

Monotors that aren't configured in monrules[], it will always be the
leftmost.
cf7c5eae — Guido Cella 4 years ago
don't reset the cursor image

...in internal calls to restore pointer focus. Necessary for the
unclutter patch, and there's no harm in avoiding this call even in
mainline; might prevents issues in same edge cases.
499cb2c2 — Guido Cella 4 years ago
say TODO

just wtf is XXX supposed to be? It sounds like a pornographic thing.
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 5 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
Next