~ruther/dwl

ref: 7ba335063f492aa62bcdd8d34a4f3451f5fa3671 dwl/dwl.c -rw-r--r-- 106.9 KiB
7ba33506 — Guido Cella 2 months ago
don't crash when clicking an empty area

If l is not initialized, accessing
l->layer_surface->current.keyboard_interactive causes a segmentation
fault. This was hard to see because c above was never initialized but
never caused a crash, and dwl also didn't crash building with ASan.

Also initialize c to be safe.

Fixes 4c54bd8.
Fixes https://codeberg.org/dwl/dwl/issues/1225.
fb4102b5 — Guido Cella 2 months ago
support screenshare of single windows

Supersedes https://codeberg.org/dwl/dwl/pulls/1157.

Co-authored-by: Zuki Air <zukirust@gmail.com>
721f70ea — Guido Cella 2 months ago
implement ext-foreign-toplevel-list

This is used by lswt which lists toplevel ids and titles.
keyd-application-mapper will also support it hopefully.

This will also be needed to support screenshare of single windows
(https://codeberg.org/dwl/dwl/pulls/1157).

Co-authored-by: Zuki Air <zukirust@gmail.com>
0a6dc6d5 — Guido Cella 2 months ago
add support for layer-shell on-demand keyboard interactivity

Supersedes https://codeberg.org/dwl/dwl/pulls/674

Co-authored-by: Leonardo Hernández Hernández <leohdz172@proton.me>
Co-authored-by: MayOrMayNotBeACat <maybeacat804@gmail.com>
4c54bd81 — Guido Cella 2 months ago
implement xytonode() with toplevel_from_wlr_surface()

xytonode() does not return the layer surface under the cursor because
pnode->data is always NULL. It was not noticed because it is not passed
the LayerSurface argument anywhere. But it is noticeable after
implementing layer shell on-demand keyboard interactivity because layer
shell surfaces are never focused by sloppyfocus.

Rather than figuring out how to fix it, just replace its implementation
with toplevel_from_wlr_surface() which works and also reduces the SLOC.
2f3fe067 — Guido Cella 2 months ago
add IME support

Based on mangowm, which is based on labwc, which is based on sway, so
this should be covered by LICENSE.sway.

Fixes https://codeberg.org/dwl/dwl/issues/6
Fixes https://codeberg.org/dwl/dwl/issues/710
Fixes https://codeberg.org/dwl/dwl/issues/1176
Fixes https://codeberg.org/dwl/dwl/issues/1185

Co-authored-by: DreamMaoMao <2523610504@qq.com>
f6800e95 — Andrea Chiavazza 1 year, 6 months ago
fix some key binding events being passed to clients
7fb20244 — Siva Mahadevan 9 months ago
move util.c to util.h

This allows single-source compilation and whole-program optimization using something like:

make CFLAGS='-flto -ffunction-sections -fdata-sections -Wl,--gc-sections'

Furthermore, move more compositor-agnostic utility functions/macros to util.h,
similar to the original dwm sources.
70c33c01 — julmajustus 6 months ago
Remove rendermon pending resize frame skip

This is no longer needed as wlroots => 0.19 handles this internally via scene-level surface state tracking and
linux-drm-syncobj explicit sync.

The manual commit skip now causes the c->resize to be stuck on non-zero
state which leads to choppy resizing experience.
132606e1 — A Frederick Christensen 9 months ago
add support for ext-image-copy-capture-v1 and ext-image-capture-source-v1 (wlroots!4545)
49ca4345 — Thanatos 10 months ago
Bumped to 0.9 for wlroots-0.20.0. Updated cursor image buffer handling for xwayland
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
Next