aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/events/Popups.cpp
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2022-07-08 11:24:07 +0200
committervaxerski <[email protected]>2022-07-08 11:24:07 +0200
commit491b99c61ea19f2e9048f215eace07e126af890b (patch)
tree0cc2c563ec08f4c19045177b1e647a0cbb8ef70d /src/events/Popups.cpp
parent75a580fedab7f12934d6c2885b48efb3fb00f3f1 (diff)
downloadHyprland-491b99c61ea19f2e9048f215eace07e126af890b.tar.gz
Hyprland-491b99c61ea19f2e9048f215eace07e126af890b.zip
handle unmanaged X11 setGeometry
Diffstat (limited to 'src/events/Popups.cpp')
-rw-r--r--src/events/Popups.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/events/Popups.cpp b/src/events/Popups.cpp
index cfb92f9b..04064696 100644
--- a/src/events/Popups.cpp
+++ b/src/events/Popups.cpp
@@ -92,6 +92,9 @@ void Events::listener_newPopupXDG(void* owner, void* data) {
ASSERT(PWINDOW);
+ if (!PWINDOW->m_bIsMapped)
+ return;
+
Debug::log(LOG, "New layer popup created from XDG window %x -> %s", PWINDOW, PWINDOW->m_szTitle.c_str());
const auto WLRPOPUP = (wlr_xdg_popup*)data;