diff options
author | taiyu <taiyu.len@gmail.com> | 2015-08-15 17:43:45 -0700 |
---|---|---|
committer | taiyu <taiyu.len@gmail.com> | 2015-08-15 17:43:45 -0700 |
commit | 14b7755134373d61f104a2e5c8ebaa3952b83e46 (patch) | |
tree | 464afe4a95276f95f78198751322923f252ff625 /sway | |
parent | 3a21ba020fd0f0628a128070b72f0cf7a6b64a57 (diff) |
set maximize flag for handled views
Diffstat (limited to 'sway')
-rw-r--r-- | sway/handlers.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/handlers.c b/sway/handlers.c index 98d4831f..bb6c9843 100644 --- a/sway/handlers.c +++ b/sway/handlers.c @@ -86,9 +86,13 @@ static void handle_output_focused(wlc_handle output, bool focus) { } static bool handle_view_created(wlc_handle handle) { + swayc_t *focused = get_focused_container(&root_container); swayc_t *view = new_view(focused, handle); if (view) { + //Set maximize flag for windows. + //TODO: floating windows have this unset + wlc_view_set_state(handle, WLC_BIT_MAXIMIZED, true); unfocus_all(&root_container); focus_view(view); arrange_windows(view->parent, -1, -1); |