~ruther/dwl

ref: 4fd683cc84d670d97f6f7020001410f2fb3daa6c dwl/dwl.c -rw-r--r-- 110.1 KiB
4fd683cc — save196 2 months ago
fix X11 clients shifting by the border width on map

c->geom includes the border, but client_get_geometry() returns the
content position. Subtract the border, clamped to the layout edges.
d29259c2 — Guido Cella 2 months ago
refactor focusclient()
fccce974 — Guido Cella 2 months ago
remove obsolete comment

No longer accurate since a514a92.
d9ddaba7 — Guido Cella 2 months ago
also make clients tiled on map

While making them tiled on the first commit was needed to fix Firefox
starting with rounded corners, if you don't set them tiled again on map
resizing mpv after starting it with a rule that makes it floating
behaves wrong.

Fixes d1ebf3c.
Fixes https://codeberg.org/dwl/dwl/issues/1247.
87029e21 — Guido Cella 2 months ago
remove exclusive_focus variable

This is not needed because focusclient() already calls
toplevel_from_wlr_surface(seat->keyboard_state.focused_surface) and can
check if that should have exclusive focus.

When it was added there was no function to get the focused layer shell
surface in this way.
a514a928 — aloires 2 months ago
focusclient: set input method focus for layer surfaces

Focusing a layer surface only set the keyboard focus, not the text-input
focus, so layer-shell clients (launchers, menus, ...) never received a
text-input enter event and IME input didn't work. Pass the layer surface
to focusclient() and set the input method focus there, like we already do
for regular clients.
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.
Next