create floating windows correctly

This commit is contained in:
vaxerski
2022-03-21 17:24:41 +01:00
parent 51ce922ae1
commit 6dcd6f21b9
3 changed files with 32 additions and 4 deletions

View File

@@ -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);