~ruther/dwl

806ebffe — Stivvo 4 years ago
Merge branch 'handleUnplug' into output-management
fbbc1fd6 — Stivvo 4 years ago
Merge branch 'handleUnplug' of http://olidata.stivvo01.com:3000/Stivvo01/dwl into handleUnplug
d4178b9d — Stivvo 4 years ago
Closemon(), newmon as parameter

This allows to fix output-management: move clients to the monitor on the
left of the disabled one, instead of the leftmost (which might happen to
be the disabled one)

Also using wl_list_foreach() and then brake after the first iteration is
ugly and inefficient
4deeddce — Stivvo 4 years ago
Actually move clients away from a disabled mon

When using wlr-randr every monitor's configuration is reevaluated, so it
must check which monitors are actually being disabled. The only way to
correctly do that is to compare the names.
874a4df3 — Stivvo 4 years ago
Merge branch 'handleUnplug' into output-management
61897269 — Stivvo 4 years ago
Fix crash when unplugging a focused monitor

Just focus a "safe" monitor before trying to to anything risky
7d67b77a — Stivvo 4 years ago
Cleaner if statement
e64259ab — Stivvo 4 years ago
Merge branch 'output-management' of http://olidata.stivvo01.com:3000/Stivvo01/dwl into output-management
42aea0b1 — Stivvo 4 years ago
Handle monitor enable
3c3714aa — Stivvo 4 years ago
Handle monitor enable
4c0d59c1 — Stivvo 4 years ago
Move clients away from a disabled monitor

When a monitor is disabled with wlr_randr, all clients on that monitor
aren't lost but they are moved to the leftmost monitor with the same
method that handles monitor hot unplug
92735286 — Stivvo 4 years ago
Merge branch 'handleUnplug' into output-management
ef7043e4 — Stivvo 4 years ago
closemon()

Separate oputput movement from cleanupmon
db950242 — Stivvo 4 years ago
Merge branch 'handleUnplug' into output-management
7017a0c6 — Stivvo 4 years ago
fix compile error mixed declaration
96d9f010 — Stivvo 4 years ago
Merge pull request #2 from guidocella/handleUnplug

Move sgeom assignment
f21d3796 — Guido Cella 4 years ago
Move sgeom assignment

There is no need to repeat this. This needs to be reculalculated in my
output-management implementation too, and since I'm already calling
updatemons, this patch avoids having to repeat the assignment again.
b30e18fa — Guido Cella 4 years ago
Implement the output management protocol

It allows clients such as wlr-randr to configure the display.
d8f752c9 — Stivvo 4 years ago
Keep client tags on unplug

When unplugging a monitor, each client is moved to the same tag number
as before on the new monitor
bece2259 — Stivvo 4 years ago
Handle monitor unplug

Floating widndows with "x < removed monitor's width" aren't resized
(they used to disappear in negative coordinates).

Actually delete monitors when they are unplugged, recalculate sgeom and
give a new monitor to clients that were on the removed one with setmon()

arrangefloat() funcion has been exploded to save iterations in
cleanupmon().

Also if a monitor that supports auto suspension is turned off, dwl will
count it as unplugged (it will become unreachable and all clients will
be moved to the leftmost monitor). However, if at least one monitor
isn't plugged in, dwl will still crash the same as before.

Unlike sway, when the output configuration is changed and restored,
(unplug + plug the same monitor for example) previous application
positions aren't kept. This is due to the fact that on sway every
workspace is unique among all monitors.
Next
Do not follow this link