summaryrefslogtreecommitdiffstats
path: root/include/sway/tree/output.h
diff options
context:
space:
mode:
authorLibravatar Brian Ashworth <bosrsf04@gmail.com>2019-02-16 16:14:27 -0500
committerLibravatar Drew DeVault <sir@cmpwn.com>2019-02-18 15:11:48 -0500
commit19586ab768ad2a79cb8342d34e16b25105bc36bd (patch)
treed3e04758fdae3d5a9c452d5326afcbdc26af8fb1 /include/sway/tree/output.h
parenttray: fix memory leaks (diff)
downloadsway-19586ab768ad2a79cb8342d34e16b25105bc36bd.tar.gz
sway-19586ab768ad2a79cb8342d34e16b25105bc36bd.tar.zst
sway-19586ab768ad2a79cb8342d34e16b25105bc36bd.zip
Fix reload freeze when not modsetting current mode
This fixes the issue of the display freezing on reload with wlroots#1545. On master, all output configs are applied on reload. This may cause an output to have its config applied up to three times, instead of just once. The three cases are: output name, output identifier, and wildcard. Not only is this inefficient, but it can cause swaybg to be spawned and immediately killed. However, swaybg requires two roundtrips of wl_display (to obtain needed globals) before it enters its normal event loop. Modesetting will roundtrip the wl_display. Without modesetting, waitpid for killing swaybg could block infinitely due to swaybg being blocked by wl_display_roundtrip. This only configured an output once. It either uses the wildcard config or creates an empty wildcard config and applies that. This also fixes a bug where an output would not be reset when there is no output config to apply to it.
Diffstat (limited to 'include/sway/tree/output.h')
0 files changed, 0 insertions, 0 deletions