aboutsummaryrefslogtreecommitdiffstats
path: root/sway/desktop
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2018-03-29 15:39:07 -0400
committerLibravatar Drew DeVault <sir@cmpwn.com>2018-03-29 15:40:15 -0400
commit941ca5c8fd289b6ca0178f65b697aa36fb4e71d3 (patch)
tree400f371d30904e4b0609128e438fd03a2f9967ad /sway/desktop
parentMerge pull request #1643 from acrisci/xdg-protocol-header (diff)
downloadsway-941ca5c8fd289b6ca0178f65b697aa36fb4e71d3.tar.gz
sway-941ca5c8fd289b6ca0178f65b697aa36fb4e71d3.tar.zst
sway-941ca5c8fd289b6ca0178f65b697aa36fb4e71d3.zip
Maximize xdg shell surfaces on creation
Makes them look better yo In the future we might want to only do this for tiled windows, and let floating windows do their own thing.
Diffstat (limited to 'sway/desktop')
-rw-r--r--sway/desktop/xdg_shell_v6.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/desktop/xdg_shell_v6.c b/sway/desktop/xdg_shell_v6.c
index 7bc17149..18e7d399 100644
--- a/sway/desktop/xdg_shell_v6.c
+++ b/sway/desktop/xdg_shell_v6.c
@@ -102,6 +102,7 @@ void handle_xdg_shell_v6_surface(struct wl_listener *listener, void *data) {
102 wlr_log(L_DEBUG, "New xdg_shell_v6 toplevel title='%s' app_id='%s'", 102 wlr_log(L_DEBUG, "New xdg_shell_v6 toplevel title='%s' app_id='%s'",
103 xdg_surface->toplevel->title, xdg_surface->toplevel->app_id); 103 xdg_surface->toplevel->title, xdg_surface->toplevel->app_id);
104 wlr_xdg_surface_v6_ping(xdg_surface); 104 wlr_xdg_surface_v6_ping(xdg_surface);
105 wlr_xdg_toplevel_v6_set_maximized(xdg_surface, true);
105 106
106 struct sway_xdg_surface_v6 *sway_surface = 107 struct sway_xdg_surface_v6 *sway_surface =
107 calloc(1, sizeof(struct sway_xdg_surface_v6)); 108 calloc(1, sizeof(struct sway_xdg_surface_v6));