mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-08 16:25:58 +01:00
Fix fatal aborts with X11 OR windows
This commit is contained in:
parent
86acdcf8b6
commit
71496a0a3c
1 changed files with 5 additions and 3 deletions
|
@ -715,6 +715,8 @@ void Events::listener_destroyWindow(void* owner, void* data) {
|
|||
PWINDOW->hyprListener_mapWindow.removeCallback();
|
||||
PWINDOW->hyprListener_unmapWindow.removeCallback();
|
||||
PWINDOW->hyprListener_destroyWindow.removeCallback();
|
||||
PWINDOW->hyprListener_configureX11.removeCallback();
|
||||
PWINDOW->hyprListener_setOverrideRedirect.removeCallback();
|
||||
|
||||
g_pLayoutManager->getCurrentLayout()->onWindowRemoved(PWINDOW);
|
||||
|
||||
|
@ -970,9 +972,9 @@ void Events::listener_unmanagedSetGeometry(void* owner, void* data) {
|
|||
void Events::listener_setOverrideRedirect(void* owner, void* data) {
|
||||
const auto PWINDOW = (CWindow*)owner;
|
||||
|
||||
if (!PWINDOW->m_bIsMapped && PWINDOW->m_uSurface.xwayland->mapped) {
|
||||
Events::listener_mapWindow(PWINDOW, nullptr);
|
||||
}
|
||||
//if (!PWINDOW->m_bIsMapped && PWINDOW->m_uSurface.xwayland->mapped) {
|
||||
// Events::listener_mapWindow(PWINDOW, nullptr);
|
||||
//}
|
||||
}
|
||||
|
||||
void Events::listener_surfaceXWayland(wl_listener* listener, void* data) {
|
||||
|
|
Loading…
Reference in a new issue