~ruther/dwl

ref: f22c223cbfc7fd4e87354a6c2fad8088cb08558a dwl/dwl.c -rw-r--r-- 110.2 KiB
f22c223c — save196 2 months ago
don't run keybindings on keyrepeat while locked
b83881f8 — save196 2 months ago
don't send pointer events to clients while locked
fa400c5d — save196 2 months ago
don't run axis bindings when locked
d16036e6 — julmajustus 2 months ago
Fix input_method_relay double allocation

 - input_method_relay is allocated inside input_method_relay_create(), which leads the extra allocation to leak memory.
45054a34 — save196 2 months ago
always apply a minimum size of 1x1

Resizing with the mouse can make the size negative, which makes dwl
crash, and the minimum is 1 because 0 makes some X11 clients crash.
669b26d0 — save196 2 months ago
let the focus leave an unmanaged surface

Unmanaged clients spawned by a parent window, like menus, would not
close if the user changed workspace or focused another client while the
menu was selected, because the parent was never told that it lost the
focus. This remembers the last managed client and deactivates it on a
focus change, so that it closes the menu itself.

This also fixes a regression introduced by f6e3a28, where menus would
close immediately after being opened.
e4518625 — save196 2 months ago
follow the geometry of unmanaged clients and fix formatting
b3223b15 — save196 2 months ago
fix capturing hidden toplevels
1fe1b4e6 — Guido Cella 2 months ago
show popups in fullscreen Xwayland apps

The dialogs opened by clicking items in Xwyland applications' toolbars
are unmanaged clients, so placing them in LyrFloat drew them below their
source client in LyrFS when it is fullscreened.

Add a new dedicated layer for unamanged clients to fix it. Don't put
them in LyrFS to prevent the regular fullscreen client from hiding
unmanaged ones, e.g. by opening dmenu and then clicking the regular
client.

Fixes https://codeberg.org/dwl/dwl/issues/556
1dae5ba3 — Guido Cella 2 months ago
size hints can be -1
433c325f — Guido Cella 2 months ago
fix a use-after-free

Prevent a use-after-free when closing a nested dwl with Ctrl+c.

It happened because cleanup() → input_method_relay_finish() frees
input_method_relay, and then closemon() → focusclient() →
input_method_relay_set_focus() uses relay->surface.
60138353 — Guido Cella 2 months ago
keep the focused border color of the old client in certain cases

When focusing an unmanaged client (like dmenu) or a layer shell surface
(like wmenu) keep the focused border color of the regular client, but
still deactivate it. This is consistent with dwm and sway.

This was already done for unmanaged clients but not for layer shell
surfaces.

This is not perfect because you can press MODKEY+j/k or move the cursor
while a program like dmenu is focused and have 2 clients with focused
border color after closing dmenu. But this doesn't work well even in
sway where if you change focus while dmenu is open you can longer focus
it, and after closing a layer shell surface with on-demand keyboard
interactivity all toplevels have the focused border color, so this will
do for now.
f6e3a282 — Guido Cella 2 months ago
deactivate the old client when the new one wants focus

I see no issue with winecfg after removing this condition, so I assume
it was fixed upstream.
aa0c1659 — Guido Cella 2 months ago
Reapply "use modifier-independent key symbols in keybindings"

This reverts commit 0f8630282d11e21b694dcd4716a3935a4ead6fa5.
bab3fdad — Guido Cella 2 months ago
don't run keybindings twice when the shift keysym is the same

For keys like F1-F12 the keysym with the shift is the same as without.
Avoid running keybindings bound to these keys twice.
0f863028 — Guido Cella 2 months ago
Revert "use modifier-independent key symbols in keybindings"

This reverts commit f9c644f0b07a408e3b6a1389b1ffbd90dcaf4285.
36c80aff — Guido Cella 2 months ago
Revert "don't resize on commit"

This reverts commit 498a0e605cb0260f3a1d9c1ffc092b3041337033.

Without resizing on every commit the top left of firefox is cropped.
68c6319e — Guido Cella 2 months ago
Revert "reduce nesting in commitnotify()"

This reverts commit c824886b8ce6a249c608e3a04bf251e4b32206c1.
c824886b — Guido Cella 2 months ago
reduce nesting in commitnotify()
Next