create floating windows correctly
This commit is contained in:
parent
51ce922ae1
commit
6dcd6f21b9
3 changed files with 32 additions and 4 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue