summaryrefslogtreecommitdiff
path: root/src/events/Windows.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/events/Windows.cpp')
-rw-r--r--src/events/Windows.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/events/Windows.cpp b/src/events/Windows.cpp
index 1a21b499..e97e2456 100644
--- a/src/events/Windows.cpp
+++ b/src/events/Windows.cpp
@@ -32,8 +32,10 @@ void Events::listener_mapWindow(wl_listener* listener, void* data) {
wl_signal_add(&PWINDOWSURFACE->events.new_subsurface, &PWINDOW->listen_newSubsurfaceWindow);
- if (g_pXWaylandManager->shouldBeFloated(PWINDOW))
+ if (g_pXWaylandManager->shouldBeFloated(PWINDOW)) {
g_pLayoutManager->getCurrentLayout()->onWindowCreatedFloating(PWINDOW);
+ PWINDOW->m_bIsFloating = true;
+ }
else
g_pLayoutManager->getCurrentLayout()->onWindowCreated(PWINDOW);