diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-07-25 20:56:23 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-07-26 08:27:07 +1000 |
commit | 27a20a488465468511de9b2307941ac1bc4db8bf (patch) | |
tree | c5c1aff483cb089870ffebec00869347eec29f4c /sway/desktop/xwayland.c | |
parent | Merge pull request #2330 from progandy/set-modifier-locks (diff) | |
download | sway-27a20a488465468511de9b2307941ac1bc4db8bf.tar.gz sway-27a20a488465468511de9b2307941ac1bc4db8bf.tar.zst sway-27a20a488465468511de9b2307941ac1bc4db8bf.zip |
Allow containers to be fullscreen
Diffstat (limited to 'sway/desktop/xwayland.c')
-rw-r--r-- | sway/desktop/xwayland.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/desktop/xwayland.c b/sway/desktop/xwayland.c index 65d4fcd4..390ca580 100644 --- a/sway/desktop/xwayland.c +++ b/sway/desktop/xwayland.c | |||
@@ -357,7 +357,7 @@ static void handle_map(struct wl_listener *listener, void *data) { | |||
357 | view_map(view, xsurface->surface); | 357 | view_map(view, xsurface->surface); |
358 | 358 | ||
359 | if (xsurface->fullscreen) { | 359 | if (xsurface->fullscreen) { |
360 | view_set_fullscreen(view, true); | 360 | container_set_fullscreen(view->swayc, true); |
361 | struct sway_container *ws = container_parent(view->swayc, C_WORKSPACE); | 361 | struct sway_container *ws = container_parent(view->swayc, C_WORKSPACE); |
362 | arrange_windows(ws); | 362 | arrange_windows(ws); |
363 | } else { | 363 | } else { |
@@ -395,7 +395,7 @@ static void handle_request_fullscreen(struct wl_listener *listener, void *data) | |||
395 | if (!xsurface->mapped) { | 395 | if (!xsurface->mapped) { |
396 | return; | 396 | return; |
397 | } | 397 | } |
398 | view_set_fullscreen(view, xsurface->fullscreen); | 398 | container_set_fullscreen(view->swayc, xsurface->fullscreen); |
399 | 399 | ||
400 | struct sway_container *output = container_parent(view->swayc, C_OUTPUT); | 400 | struct sway_container *output = container_parent(view->swayc, C_OUTPUT); |
401 | arrange_windows(output); | 401 | arrange_windows(output); |