diff options
author | Drew DeVault <sir@cmpwn.com> | 2015-08-15 20:51:40 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2015-08-15 20:51:40 -0400 |
commit | d3d0ba3a4b8a79384ae262d0168ce111c06d4c1b (patch) | |
tree | fcdda75c65f218343eaa1c1fcad2abd28a159cb7 /sway | |
parent | 2732c40813557882a1e5b09fd9cdf592bdcc3247 (diff) | |
parent | 2e92538d7febe73fb1bebd736cf5515bb4783d03 (diff) |
Merge pull request #35 from taiyu-len/master
set maximize flag for handled views
Diffstat (limited to 'sway')
-rw-r--r-- | sway/handlers.c | 3 |
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) { 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); |