~ruther/dwl

ref: v0.7/accessnthmonitor dwl/dwl.c -rw-r--r-- 98.9 KiB
2902df94 — David Donahue 1 year, 15 days ago
Prevent updatemons() from removing monitors that have been put to sleep from the layout
Implement support for output power management

This patch is based on the original stale patch by Guido Cella @guidocella.
It has been modified to apply cleanly to the latest v5.0 tag. Since the SLOC
limit is now lifted, this core feature should be merged into dwl upstream.

Thanks to Dima Krasner @dimkr for the cherry-pick.

Closes: #559, #525
784b047b — Rutherther 10 months ago
Check for null monitor in resize function
11baacbe — Rutherther 11 months ago
Add output to layout after enabled state is committed
16076ec5 — Rutherther 11 months ago
fix: make sure selmon doesn't get set to disabled mon
7a46fccd — Peter Hofmann 10 months ago
Run startup_cmd in new session and kill the entire group

When a user's startup_cmd is a little more complex, e.g. a shell script,
and forks off several processes, then killing only the main child pid
might leave unwanted processes behind on exit. Not all children will
notice when their parent or the compositor has quit.

To fix this, put startup_cmd into its own session and process group, and
kill the entire group on exit.
c2e7350f — Forrest Bushstone 10 months ago
Make sure toplevel_from_wlr_surface is called with a valid surface pointer
21205f2f — Leonardo Hernández Hernández 10 months ago
make sure clients share the same layer on floating layout
8f6fca35 — Leonardo Hernández Hernández 1 year, 2 months ago
create a keyboard group for each virtual keyboard
bca077b9 — A Frederick Christensen 10 months ago
Allow negative coordinates in MonitorRules

Monitor/output position (-1, -1) remains as a single indicator value for autoconfigure layout.
Additionally, one minor comment typo is corrected.
0047ff74 — Forrest Bushstone 1 year, 16 days ago
Replicate dwm behavior for sloppyfocus
put wlr_layer_shell top layer below fullscreen

fixes wlr_layer_shell top clients showing over fullscreen clients
properly resize on configurex11
2b171fd5 — Guido Cella 1 year, 1 month ago
fix virtual pointers

When motionabsolute() is called from warpd, event->time_msec is 0, so
motionnotify() doesn't call wlr_cursor_move(). Fix this by explicitly
warping the cursor in this case, like it was done before implementing
pointer constraints.

I don't know if this is a bug in warpd or time_msec is always 0 with
virtual pointers, since the only other software that uses the virtual
pointer protocol I know of is wl-kbptr, and I can't get that to work
with dwl at all.
ea33ce9a — Forrest Bushstone 1 year, 1 month ago
Support pointer constraints and relative pointer protocols

Fixes: https://codeberg.org/dwl/dwl/issues/489
FIxes: https://codeberg.org/dwl/dwl/issues/317
8006e792 — Guido Cella 1 year, 3 months ago
allow toggling the layout before selecting a different one
5ae245be — Leonardo Hernández Hernández 1 year, 2 months ago
fix minimum size

continuation of 4043fc3093a73174cb63653ba9e742b4738f2ee5
298949bb — Guido Cella 1 year, 2 months ago
place child clients above fullscreen clients

When a child window of a fullscreen client is mapped, the fullscreen is
disabled, and if the previously fullscreen client is floating the child
window is rendered below it and cannot be seen, causing confusion,
though it is still focused and interactable.

Fix this by putting children of fullscreen clients in LyrFS instead of
LyrFloat, and by returning before the unset_fullscreen code is called
when they are mapped.

focusstack() now lets you switch focus from a fullscreen client to its
child windows, otherwise if you switch focus from the child window to
the fullscreen client you could not focus the child window again and the
fullscreen client would stay unresponsive.

Child clients are not reparented to LyrFloat after leaving fullscreen,
so you could spawn a child window, focus back the fullscreen client,
unfullscreen it, and the child window would still be drawn above other
floating clients. Avoid dealing with this edge case to keep the line
count low.

These cases can be tested by pressing Ctrl+o in applications with an
open file dialog.
17c5cbbf — Guido Cella 1 year, 2 months ago
make XWayland clients inherit tags and monitors

Revert 3213088 because the linked bug can no longer be reproduced with
wlroots 0.17, and update client_get_parent() so it doesn't segfault with
XWayland surfaces. This also allows reusing the p variable in the next
commit.
45e3694f — Guido Cella 1 year, 2 months ago
remove useless wlr_scene_node_reparent() calls

These don't do anything because wlr_scene_node_reparent() is immediately
called again by setfloating() through setmon(). They are also a source
of confusion because if you change the wlr_scene_node_reparent() call in
applyrules() it takes a while to understand why it doesn't work.
Next
Do not follow this link