mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-24 00:13:48 -07:00
fix dwindle + minor logs and comments
This commit is contained in:
@@ -56,7 +56,6 @@ void Events::listener_unmapWindow(wl_listener* listener, void* data) {
|
||||
g_pCompositor->m_pLastFocus = nullptr;
|
||||
|
||||
PWINDOW->m_bMappedX11 = false;
|
||||
PWINDOW->m_bIsMapped = false;
|
||||
|
||||
// remove the fullscreen window status from workspace if we closed it
|
||||
const auto PWORKSPACE = g_pCompositor->getWorkspaceByID(PWINDOW->m_iWorkspaceID);
|
||||
@@ -66,6 +65,9 @@ void Events::listener_unmapWindow(wl_listener* listener, void* data) {
|
||||
|
||||
g_pLayoutManager->getCurrentLayout()->onWindowRemoved(PWINDOW);
|
||||
|
||||
// do this after onWindowRemoved because otherwise it'll think the window is invalid
|
||||
PWINDOW->m_bIsMapped = false;
|
||||
|
||||
// refocus on a new window
|
||||
// TODO: investigate.
|
||||
// If a parent window has focus, any popups (XWayland) will be broken (they will disappear instantly)
|
||||
|
Reference in New Issue
Block a user