~ruther/dwl

ref: 0bb1a1cc5c31b8375d3c64a50e7ada57994fd2a2 dwl/dwl.c -rw-r--r-- 89.6 KiB
0bb1a1cc — Leonardo Hernández Hernández 1 year, 9 months ago
increase wl_compositor version

Now scene will handle sending the preferred buffer scale

References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4269
aecff8cb — Leonardo Hernández Hernández 1 year, 9 months ago
Merge branch 'main' into wlroots-next
ca4a97b9 — Leonardo Hernández Hernández 1 year, 9 months ago
do not use wl_event_loop for signal handling

ΔSLOC: -4

Fixes: https://github.com/djpohly/dwl/issues/456
Fixes: https://github.com/djpohly/dwl/issues/459
76ba2cda — Devin J. Pohly 1 year, 9 months ago
Remove now-unneeded call to motionnotify

This appears to have been here for the side effect of updating the drag
icon's position.
4b15bbeb — Devin J. Pohly 1 year, 9 months ago
Remove unused icon variable
831fc36b — Devin J. Pohly 1 year, 9 months ago
Make drag_icon a persistent scene node

If there is no current drag icon, this node will be empty, but we now
have `drag_icon != NULL` as an invariant.  This allows us to eliminate a
conditional, since there's no harm in moving an empty node's coordinates
around with the pointer.

ΔSLOC: -1
18415278 — Devin J. Pohly 1 year, 9 months ago
properly destroy scene

ΔSLOC: +1
ff7c0e95 — Leonardo Hernández Hernández 1 year, 10 months ago
chase wlroots!4220

References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4220
33bcd2e4 — Devin J. Pohly 1 year, 10 months ago
Line saver: LISTEN_STATIC macro

This parallels the LISTEN macro for statically allocated listeners, and
it allows us to remove almost all of the global wl_listener
declarations.

This also fixes a bug with the axisnotify listener, which was declared
with a compound literal.  At block scope, these have automatic storage
duration [1], so the listener was no longer valid after setup()
returned.  (The option to declare it static explicitly was standardized
in C23, if that ever gains suckless traction.)

ΔSLOC: -27

[1]: https://en.cppreference.com/w/c/language/compound_literal#Explanation
fbd84aca — Devin J. Pohly 1 year, 10 months ago
Unify signal handling under wl_event_loop

Merge our signal handlers into a single function and let Wayland deal
with all the struct sigaction stuff.

ΔSLOC: -3
a01e402c — Devin J. Pohly 1 year, 10 months ago
Line saver: follow "local = wlr->data = obj" pattern

There were still a couple of places where we could use this handy
multiple assignment to save a line.

ΔSLOC = -3
9dd3f230 — Leonardo Hernández Hernández 1 year, 10 months ago
Merge remote-tracking branch 'upstream/main' into wlroots-next
eda0613c — Devin J. Pohly 1 year, 10 months ago
Separate drag icon from layers array and Lyr enum

If we treat the drag icon as distinct from other layers (it doesn't have
contents that are interactive, focusable, etc.), then we can iterate
over layers meaningfully with a simple for loop.

ΔSLOC: -8
733114f0 — Leonardo Hernández Hernández 1 year, 10 months ago
schedule a frame after commmiting gamma

not doing it, may freeze the output or do not actually change the gamma until
creating a client
fdb66ccf — Leonardo Hernández Hernández 1 year, 10 months ago
use detached output states to set gamma
6095ff84 — Leonardo Hernández Hernández 1 year, 10 months ago
Revert "use wlr_scene_output_build_state() to set gamma"

This reverts commit 65f68e76437275a0c1c25279af646f726e213b6d.
68a17f96 — Devin J. Pohly 1 year, 10 months ago
Don't bother with ignoring SIGCHLD

It added complexity, especially with the differences in behavior between
handled and ignored signals across an exec().
9c592da0 — Devin J. Pohly 1 year, 10 months ago
Reset ignored signal handler in spawn() as well
df11b7a7 — Devin J. Pohly 1 year, 10 months ago
fix startup_cmd SIGCHLD handler

Ignored handlers are not reset by exec() calls
1e1811f9 — Leonardo Hernández Hernández 1 year, 11 months ago
drop KDE idle support

use ext-idle-notify-v1 instead
Next
Do not follow this link