~ruther/dwl

960c32a7 — Leonardo Hernández Hernández 1 year, 7 months ago
call setfloating in setmon

since in the previous commit we may not applying floating in clients
this is to make sure we do
aea8dd6a — Leonardo Hernández Hernández 1 year, 7 months ago
return early if the client doesn't have monitor in setfloating

there is still a bug, but for now this prevents a segfault

Bug: https://github.com/djpohly/dwl/issues/472
c1d8b77f — Leonardo Hernández Hernández 1 year, 7 months ago
prefer IRC over Discord

I regularly check the discord server, but it is much more likely that I will be
online on IRC, and djpohly does not seem to be active on either.
e5367753 — Ben Collerson 1 year, 7 months ago
just add define
9be85c11 — Ben Collerson 1 year, 9 months ago
tagcount should have been a #define
4b8c1bf3 — Leonardo Hernández Hernández 1 year, 7 months ago
return nothing in xytonode()

we do not use the node
d7569870 — Devin J. Pohly 1 year, 9 months ago
Style: use early-return to clarify code

Use an early return to avoid indenting the main logic instead of
wrapping the tail of a function in an if statement.

No functional change, except for a handful of places where printstatus()
was being called spuriously (tag, toggletag, toggleview).

ΔSLOC: 0
4eb54b55 — Devin J. Pohly 1 year, 9 months ago
No need to send surface.leave/enter events

The scene graph implementation sends these for us, and it does so more
accurately than our overly-simplified approach.  Layer shell surfaces
don't appear to receive these events at all, according to my
WAYLAND_DEBUG experiments with bemenu and dtao.

ΔSLOC: -4
4567979b — Leonardo Hernández Hernández 1 year, 8 months ago
don't resize clients on commit

It creates an infinite commit-resize loop when scale != 1
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
fbd84aca — Devin J. Pohly 1 year, 9 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
eda0613c — Devin J. Pohly 1 year, 9 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
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
5215712c — A Frederick Christensen 1 year, 10 months ago
Stray whitespace fixes
Next
Do not follow this link