diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2019-01-25 08:29:21 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2019-01-25 08:29:21 +1000 |
commit | 20aa8ee67dc528299dbc8735220a1c081c7ff9f6 (patch) | |
tree | 685de48be3db51fc01510ccf051e2b63a4655fba /sway/desktop/render.c | |
parent | Update for swaywm/wlroots#1402 (diff) | |
download | sway-20aa8ee67dc528299dbc8735220a1c081c7ff9f6.tar.gz sway-20aa8ee67dc528299dbc8735220a1c081c7ff9f6.tar.zst sway-20aa8ee67dc528299dbc8735220a1c081c7ff9f6.zip |
Implement fullscreen global
Diffstat (limited to 'sway/desktop/render.c')
-rw-r--r-- | sway/desktop/render.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sway/desktop/render.c b/sway/desktop/render.c index a38c6a07..fa27500e 100644 --- a/sway/desktop/render.c +++ b/sway/desktop/render.c | |||
@@ -985,7 +985,15 @@ void output_render(struct sway_output *output, struct timespec *when, | |||
985 | goto render_overlay; | 985 | goto render_overlay; |
986 | } | 986 | } |
987 | 987 | ||
988 | struct sway_container *fullscreen_con = workspace->current.fullscreen; | 988 | struct sway_container *fullscreen_con = root->fullscreen_global; |
989 | if (fullscreen_con && fullscreen_con->scratchpad && | ||
990 | !fullscreen_con->workspace) { | ||
991 | fullscreen_con = NULL; | ||
992 | } | ||
993 | if (!fullscreen_con) { | ||
994 | fullscreen_con = workspace->current.fullscreen; | ||
995 | } | ||
996 | |||
989 | if (fullscreen_con) { | 997 | if (fullscreen_con) { |
990 | float clear_color[] = {0.0f, 0.0f, 0.0f, 1.0f}; | 998 | float clear_color[] = {0.0f, 0.0f, 0.0f, 1.0f}; |
991 | 999 | ||