mirror of
https://github.com/NickHu/sway
synced 2025-01-29 08:34:13 +01:00
set maximize flag for handled views
This commit is contained in:
parent
3a21ba020f
commit
14b7755134
1 changed files with 4 additions and 0 deletions
|
@ -86,9 +86,13 @@ static void handle_output_focused(wlc_handle output, bool focus) {
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool handle_view_created(wlc_handle handle) {
|
static bool handle_view_created(wlc_handle handle) {
|
||||||
|
|
||||||
swayc_t *focused = get_focused_container(&root_container);
|
swayc_t *focused = get_focused_container(&root_container);
|
||||||
swayc_t *view = new_view(focused, handle);
|
swayc_t *view = new_view(focused, handle);
|
||||||
if (view) {
|
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);
|
unfocus_all(&root_container);
|
||||||
focus_view(view);
|
focus_view(view);
|
||||||
arrange_windows(view->parent, -1, -1);
|
arrange_windows(view->parent, -1, -1);
|
||||||
|
|
Loading…
Add table
Reference in a new issue