mirror of
https://github.com/swaywm/sway.git
synced 2024-11-10 12:33:50 +01:00
parent
b5d778dd82
commit
7144fb9fc3
@ -235,8 +235,12 @@ static bool handle_view_created(wlc_handle handle) {
|
|||||||
switch (wlc_view_get_type(handle)) {
|
switch (wlc_view_get_type(handle)) {
|
||||||
// regular view created regularly
|
// regular view created regularly
|
||||||
case 0:
|
case 0:
|
||||||
newview = new_view(focused, handle);
|
if (parent) {
|
||||||
wlc_view_set_state(handle, WLC_BIT_MAXIMIZED, true);
|
newview = new_floating_view(handle);
|
||||||
|
} else {
|
||||||
|
newview = new_view(focused, handle);
|
||||||
|
wlc_view_set_state(handle, WLC_BIT_MAXIMIZED, true);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
// Dmenu keeps viewfocus, but others with this flag don't, for now simulate
|
// Dmenu keeps viewfocus, but others with this flag don't, for now simulate
|
||||||
|
Loading…
Reference in New Issue
Block a user