summaryrefslogtreecommitdiffstats
path: root/sway/desktop/xdg_shell_v6.c
diff options
context:
space:
mode:
authorLibravatar Brian Ashworth <RedSoxFan@users.noreply.github.com>2018-07-25 21:30:56 -0400
committerLibravatar GitHub <noreply@github.com>2018-07-25 21:30:56 -0400
commit75ebeb4a167ca218af37fa9041223a6450dc20f4 (patch)
tree47456198945ceea9f105dc9122ebbdf2013872ce /sway/desktop/xdg_shell_v6.c
parentMerge pull request #2330 from progandy/set-modifier-locks (diff)
parentFix indent (diff)
downloadsway-75ebeb4a167ca218af37fa9041223a6450dc20f4.tar.gz
sway-75ebeb4a167ca218af37fa9041223a6450dc20f4.tar.zst
sway-75ebeb4a167ca218af37fa9041223a6450dc20f4.zip
Merge pull request #2356 from RyanDwyer/fullscreen-containers
Allow containers to be fullscreen
Diffstat (limited to 'sway/desktop/xdg_shell_v6.c')
-rw-r--r--sway/desktop/xdg_shell_v6.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/desktop/xdg_shell_v6.c b/sway/desktop/xdg_shell_v6.c
index 46fd4769..5feee3e4 100644
--- a/sway/desktop/xdg_shell_v6.c
+++ b/sway/desktop/xdg_shell_v6.c
@@ -262,7 +262,7 @@ static void handle_request_fullscreen(struct wl_listener *listener, void *data)
262 return; 262 return;
263 } 263 }
264 264
265 view_set_fullscreen(view, e->fullscreen); 265 container_set_fullscreen(view->swayc, e->fullscreen);
266 266
267 struct sway_container *output = container_parent(view->swayc, C_OUTPUT); 267 struct sway_container *output = container_parent(view->swayc, C_OUTPUT);
268 arrange_windows(output); 268 arrange_windows(output);
@@ -333,7 +333,7 @@ static void handle_map(struct wl_listener *listener, void *data) {
333 view_map(view, view->wlr_xdg_surface_v6->surface); 333 view_map(view, view->wlr_xdg_surface_v6->surface);
334 334
335 if (xdg_surface->toplevel->client_pending.fullscreen) { 335 if (xdg_surface->toplevel->client_pending.fullscreen) {
336 view_set_fullscreen(view, true); 336 container_set_fullscreen(view->swayc, true);
337 struct sway_container *ws = container_parent(view->swayc, C_WORKSPACE); 337 struct sway_container *ws = container_parent(view->swayc, C_WORKSPACE);
338 arrange_windows(ws); 338 arrange_windows(ws);
339 } else { 339 } else {