~ruther/dwl

ref: ea263a0ed50d62033ca305fe7a4c5c36fddb4755 dwl/dwl.c -rw-r--r-- 102.2 KiB
ea263a0e — Guido Cella 3 months ago
float sub-windows matching a rule

Currently when a rule that doesn't make windows floating matches, even
sub-windows of float type get tiled rather than just the main window.
This is inconsistent with dwm and other compositors. Fix this by making
these windows floating after applying rules.

Fixes #1142.
02f8744a — kilpilainen 6 months ago
Use `all-scroll` instead of `fleur` xcursor shape for window dragging

When there are no xcursor themes available, Wayland uses its own built-in shapes [1].
Wayland (and thus to extend wlroots) is based on the XDG's cursor spec [2],
which itself is based on CSS' [3][4], neither of which define `fleur` shape. So dwl,
without any external themes, falls back to `default` shape when dragging a window.
There is `all-scroll` shape that is being symlinked to (or vice versa) by `move`,
`dnd-move`, `grabbed` and `fleur` shapes by various themes.

Since `all-scroll` is being symlinked to anyway, and has been part of all relevant
specs as the shape for this use case for a very long time now, use it instead.

[1] https://gitlab.freedesktop.org/wayland/wayland/-/blob/main/cursor/cursor-data.h#L559
[2] https://www.freedesktop.org/wiki/Specifications/cursor-spec
[3] https://drafts.csswg.org/css-ui/#cursor
[4] https://developer.mozilla.org/en-US/docs/Web/CSS/cursor
d1880b44 — Nikita Ivanov 8 months ago
Fix crash disabling monitor with locked surface
de57f6c3 — A Frederick Christensen 4 months ago
Cleanup comments
4456f453 — DreamMaoMao 7 months ago
fix: shouldn't configure uninitialized layer_surface
e0f531d5 — DreamMaoMao 7 months ago
fix: crash when open some x11 app
aa69ed81 — korei999 8 months ago
allocate with LISTEN_STATIC

Fixes: https://codeberg.org/dwl/dwl/issues/723
Supersedes: https://codeberg.org/dwl/dwl/pulls/724
d1c2f434 — Leonardo Hernández Hernández 8 months ago
rename some listeners

To keep consistency with the rest of listeners
da13a956 — Leonardo Hernández Hernández 8 months ago
destroy keyboard group after unlinking listeners

Last commit addressing the issue mentioned in
0925fe956aeddb983875f0fd892e9049e2d8cb76
9a9f67db — Leonardo Hernández Hernández 8 months ago
unlink global listeners on destroy

Continuation of 0925fe956aeddb983875f0fd892e9049e2d8cb76
4e7e2999 — Leonardo Hernández Hernández 8 months ago
Partially revert "Line saver: LISTEN_STATIC macro"

This reverts commit 33bcd2e4ca892bb0b558660c99ed63a3dfdd9011.

We keep LISTEN_STATIC for three instances where we use it. We use
simple listeners for the rest of signals.

This is the continuation of 0925fe956aeddb983875f0fd892e9049e2d8cb76
0925fe95 — Leonardo Hernández Hernández 8 months ago
unlink some destroy listeners

Recently wlroots was updated to assert that signals do not have listeners
attached on destroy.

This is just a preliminar work to fix dwl. At the moment dwl will trigger the
assertions at exit.

References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4918
26504f9a — Leonardo Hernández Hernández 9 months ago
do not call waitid(2) in the signal handler when Xwayland is enabled

waitid(2) is not a async-signal-safe function acording to signal-safety(7)

We can stop doing this because wlroots!4926 allows compositors to install
signal handlers for SIGCHLD.

References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4926
6f34a6d3 — Leonardo Hernández Hernández 1 year, 2 months ago
use wlr_xwayland_surface_has_window_type() (wlroots!4553)

References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4553
30f50634 — Leonardo Hernández Hernández 10 months ago
manually call updatemons in powermgrsetmode()

Fixes: https://codeberg.org/dwl/dwl/issues/713
84245764 — Leonardo Hernández Hernández 11 months ago
specify version for presentation-time (wlroots!4858)

References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4858
6ca87210 — Leonardo Hernández Hernández 11 months ago
check if the backend supports explicit sync before creating the object (wlroots!4848)

References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4848
8206cc88 — Guido Cella 1 year, 1 month ago
fix a use after free

This line makes dwl crash after closing mpv with the switchtotag patch.
remove unused link member from KeyboardGroup

unnecessary since grouping Keyboard wl_list to use wlr_keyboard_group in 023efce

ΔSLOC: -1
c49312f0 — Leonardo Hernández Hernández 1 year, 1 month ago
disable scene node unless it is unmanaged
Next