~ruther/dwl

ref: babccfe6dcf3f5d591fe5f1f7ca1171b03ada68e dwl/dwl.c -rw-r--r-- 102.5 KiB
babccfe6 — save196 8 months ago
Preserve asleep disabled outputs in output config
Clear surface->data on unmap to fix idle-inhibitor use-after-free

mapnotify() stores the client's scene tree in client_surface(c)->data;
checkidleinhibitor() later reads it back as a wlr_scene_tree and calls
wlr_scene_node_coords() on it. unmapnotify() frees the scene tree with
wlr_scene_node_destroy() but leaves surface->data dangling, so the next
arrange() -> checkidleinhibitor() dereferences freed memory and crashes
(SIGSEGV) whenever an idle inhibitor outlives the unmap.

Reset the pointer to NULL on unmap so the existing !tree guard handles it.
04279f28 — Alex Denes 3 months ago
Remove decoration event listeners on destroynotify

When destroynotify doesn't clean up these listeners it causes a crash once the cleanup of the decoration is triggered

Thanks to kennylevinsen - https://codeberg.org/dwl/dwl/issues/1205#issuecomment-22424401
f4dfdabd — Alex Denes 7 months ago
NULL out decoration on destroy
cb4cc3ae — Diego Viola 9 months ago
Fix typos
ca412307 — Guido Cella 10 months ago
add support for the data control protocol

Enables the protocol documented at
https://wayland.app/protocols/ext-data-control-v1

It is the upstreamed version of the old wlr_data_control.

It is used e.g. by mpv to read and write the clipboard.
9837ea57 — jackinfurs 11 months ago
fix: ignore case of keysyms in `keybindings`
ab4cb6e2 — A Frederick Christensen 1 year, 4 months ago
Revert "add support for ext-image-copy-capture-v1 and ext-image-capture-source-v1 (wlroots!4545)"

This reverts commit b28674e0ca4a9ecc92cb0607498e3db2df3d4c00.

This PR is not yet finalized. (Screen freezes).
b28674e0 — Leonardo Hernández Hernández 1 year, 10 months ago
add support for ext-image-copy-capture-v1 and ext-image-capture-source-v1 (wlroots!4545)

References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4545
ea263a0e — Guido Cella 1 year, 5 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 1 year, 8 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 1 year, 10 months ago
Fix crash disabling monitor with locked surface
de57f6c3 — A Frederick Christensen 1 year, 6 months ago
Cleanup comments
4456f453 — DreamMaoMao 1 year, 8 months ago
fix: shouldn't configure uninitialized layer_surface
e0f531d5 — DreamMaoMao 1 year, 8 months ago
fix: crash when open some x11 app
d1c2f434 — Leonardo Hernández Hernández 1 year, 10 months ago
rename some listeners

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

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

Continuation of 0925fe956aeddb983875f0fd892e9049e2d8cb76
4e7e2999 — Leonardo Hernández Hernández 1 year, 10 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
Next