diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-04-17 09:31:34 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-04-17 09:31:34 +1000 |
commit | c685ef081f090d1e15428f55426e02f2274312d0 (patch) | |
tree | e4997c84099e962a0c00a8fea22be30964cecda3 /sway/desktop/output.c | |
parent | Feedback for fullscreen. (diff) | |
download | sway-c685ef081f090d1e15428f55426e02f2274312d0.tar.gz sway-c685ef081f090d1e15428f55426e02f2274312d0.tar.zst sway-c685ef081f090d1e15428f55426e02f2274312d0.zip |
Create sway_workspace struct.
Diffstat (limited to 'sway/desktop/output.c')
-rw-r--r-- | sway/desktop/output.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c index dc2f6380..74919ccd 100644 --- a/sway/desktop/output.c +++ b/sway/desktop/output.c | |||
@@ -22,6 +22,7 @@ | |||
22 | #include "sway/tree/container.h" | 22 | #include "sway/tree/container.h" |
23 | #include "sway/tree/layout.h" | 23 | #include "sway/tree/layout.h" |
24 | #include "sway/tree/view.h" | 24 | #include "sway/tree/view.h" |
25 | #include "sway/tree/workspace.h" | ||
25 | 26 | ||
26 | struct sway_container *output_by_name(const char *name) { | 27 | struct sway_container *output_by_name(const char *name) { |
27 | for (int i = 0; i < root_container.children->length; ++i) { | 28 | for (int i = 0; i < root_container.children->length; ++i) { |
@@ -275,9 +276,9 @@ static void render_output(struct sway_output *output, struct timespec *when, | |||
275 | 276 | ||
276 | struct sway_container *workspace = output_get_active_workspace(output); | 277 | struct sway_container *workspace = output_get_active_workspace(output); |
277 | 278 | ||
278 | if (workspace->fullscreen) { | 279 | if (workspace->sway_workspace->fullscreen) { |
279 | wlr_output_set_fullscreen_surface(wlr_output, | 280 | wlr_output_set_fullscreen_surface(wlr_output, |
280 | workspace->fullscreen->surface); | 281 | workspace->sway_workspace->fullscreen->surface); |
281 | } else { | 282 | } else { |
282 | wlr_output_set_fullscreen_surface(wlr_output, NULL); | 283 | wlr_output_set_fullscreen_surface(wlr_output, NULL); |
283 | render_layer(output, | 284 | render_layer(output, |