summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sway/handlers.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sway/handlers.c b/sway/handlers.c
index c5aee4aa..53dbeb87 100644
--- a/sway/handlers.c
+++ b/sway/handlers.c
@@ -235,8 +235,12 @@ static bool handle_view_created(wlc_handle handle) {
235 switch (wlc_view_get_type(handle)) { 235 switch (wlc_view_get_type(handle)) {
236 // regular view created regularly 236 // regular view created regularly
237 case 0: 237 case 0:
238 newview = new_view(focused, handle); 238 if (parent) {
239 wlc_view_set_state(handle, WLC_BIT_MAXIMIZED, true); 239 newview = new_floating_view(handle);
240 } else {
241 newview = new_view(focused, handle);
242 wlc_view_set_state(handle, WLC_BIT_MAXIMIZED, true);
243 }
240 break; 244 break;
241 245
242 // Dmenu keeps viewfocus, but others with this flag don't, for now simulate 246 // Dmenu keeps viewfocus, but others with this flag don't, for now simulate