From d9757b61bfb7dcfaf3d903092435a1aaff52b7ed Mon Sep 17 00:00:00 2001 From: Vaxry Date: Thu, 22 Feb 2024 17:33:16 +0000 Subject: xdg: manually schedule initial configures chasing wlroots fixes #4801 --- src/events/Popups.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/events/Popups.cpp') diff --git a/src/events/Popups.cpp b/src/events/Popups.cpp index ae95bc5e..41707b6a 100644 --- a/src/events/Popups.cpp +++ b/src/events/Popups.cpp @@ -228,6 +228,11 @@ void Events::listener_unmapPopupXDG(void* owner, void* data) { void Events::listener_commitPopupXDG(void* owner, void* data) { SXDGPopup* PPOPUP = (SXDGPopup*)owner; + if (PPOPUP->popup->base->initial_commit) { + wlr_xdg_surface_schedule_configure(PPOPUP->popup->base); + return; + } + if (g_pCompositor->windowValidMapped(PPOPUP->parentWindow)) { PPOPUP->lx = PPOPUP->parentWindow->m_vRealPosition.vec().x; PPOPUP->ly = PPOPUP->parentWindow->m_vRealPosition.vec().y; -- cgit v1.2.3