summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sway/handlers.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sway/handlers.c b/sway/handlers.c
index 98d4831f..9944be33 100644
--- a/sway/handlers.c
+++ b/sway/handlers.c
@@ -89,6 +89,9 @@ static bool handle_view_created(wlc_handle handle) {
89 swayc_t *focused = get_focused_container(&root_container); 89 swayc_t *focused = get_focused_container(&root_container);
90 swayc_t *view = new_view(focused, handle); 90 swayc_t *view = new_view(focused, handle);
91 if (view) { 91 if (view) {
92 //Set maximize flag for windows.
93 //TODO: floating windows have this unset
94 wlc_view_set_state(handle, WLC_BIT_MAXIMIZED, true);
92 unfocus_all(&root_container); 95 unfocus_all(&root_container);
93 focus_view(view); 96 focus_view(view);
94 arrange_windows(view->parent, -1, -1); 97 arrange_windows(view->parent, -1, -1);