summaryrefslogtreecommitdiff
path: root/src/events/Windows.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-03-21 17:24:41 +0100
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-03-21 17:24:41 +0100
commit6dcd6f21b91c4bc4f3775543ea18a6fef1e5fc1e (patch)
tree289456ea1c470b1110ec415bc7e7c03d210ebbca /src/events/Windows.cpp
parent51ce922ae1dac73181957bb0082a61d7467c19ba (diff)
create floating windows correctly
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);