diff options
author | Stivvo <48280463+Stivvo@users.noreply.github.com> | 2020-10-18 18:20:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-18 18:20:13 +0200 |
commit | 96d9f010ded4292c25743a97e704635e143e13d5 (patch) | |
tree | 16a61b75dbdd31b51d7703dbfb78f02385bf73b2 /dwl.c | |
parent | d8f752c9b46f8ef2286cddd45628b6db576b8ddf (diff) | |
parent | f21d3796b842ea944fb05049cd0d6fa2614dce64 (diff) |
Merge pull request #2 from guidocella/handleUnplug
Move sgeom assignment
Diffstat (limited to 'dwl.c')
-rw-r--r-- | dwl.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -695,7 +695,6 @@ cleanupmon(struct wl_listener *listener, void *data) wl_list_remove(&m->link); wlr_output_layout_remove(output_layout, m->wlr_output); - sgeom = *wlr_output_layout_get_box(output_layout, NULL); updatemons(); wl_list_for_each(newmon, &mons, link) { @@ -831,7 +830,6 @@ createmon(struct wl_listener *listener, void *data) * output (such as DPI, scale factor, manufacturer, etc). */ wlr_output_layout_add_auto(output_layout, wlr_output); - sgeom = *wlr_output_layout_get_box(output_layout, NULL); for (size_t i = 0; i < nlayers; ++i) wl_list_init(&m->layers[i]); @@ -2151,6 +2149,7 @@ unmapnotify(struct wl_listener *listener, void *data) void updatemons() { + sgeom = *wlr_output_layout_get_box(output_layout, NULL); Monitor *m; wl_list_for_each(m, &mons, link) { /* Get the effective monitor geometry to use for surfaces */ |