wlr-foreign-toplevel: send done after property changes

fixes #5753
This commit is contained in:
Vaxry 2024-04-26 13:14:50 +01:00
parent 1d40af64d3
commit d9ec2785cb

View file

@ -207,6 +207,7 @@ void CForeignToplevelWlrManager::onTitle(CWindow* pWindow) {
return; return;
H->resource->sendTitle(pWindow->m_szTitle.c_str()); H->resource->sendTitle(pWindow->m_szTitle.c_str());
H->resource->sendDone();
} }
void CForeignToplevelWlrManager::onClass(CWindow* pWindow) { void CForeignToplevelWlrManager::onClass(CWindow* pWindow) {
@ -218,6 +219,7 @@ void CForeignToplevelWlrManager::onClass(CWindow* pWindow) {
return; return;
H->resource->sendAppId(g_pXWaylandManager->getAppIDClass(pWindow).c_str()); H->resource->sendAppId(g_pXWaylandManager->getAppIDClass(pWindow).c_str());
H->resource->sendDone();
} }
void CForeignToplevelWlrManager::onUnmap(CWindow* pWindow) { void CForeignToplevelWlrManager::onUnmap(CWindow* pWindow) {
@ -229,6 +231,7 @@ void CForeignToplevelWlrManager::onUnmap(CWindow* pWindow) {
return; return;
H->resource->sendClosed(); H->resource->sendClosed();
H->resource->sendDone();
H->closed = true; H->closed = true;
} }
@ -246,6 +249,7 @@ void CForeignToplevelWlrManager::onMoveMonitor(CWindow* pWindow) {
return; return;
H->sendMonitor(PMONITOR); H->sendMonitor(PMONITOR);
H->resource->sendDone();
} }
void CForeignToplevelWlrManager::onFullscreen(CWindow* pWindow) { void CForeignToplevelWlrManager::onFullscreen(CWindow* pWindow) {
@ -257,14 +261,17 @@ void CForeignToplevelWlrManager::onFullscreen(CWindow* pWindow) {
return; return;
H->sendState(); H->sendState();
H->resource->sendDone();
} }
void CForeignToplevelWlrManager::onNewFocus(CWindow* pWindow) { void CForeignToplevelWlrManager::onNewFocus(CWindow* pWindow) {
if (finished) if (finished)
return; return;
if (const auto HOLD = handleForWindow(lastFocus); HOLD) if (const auto HOLD = handleForWindow(lastFocus); HOLD) {
HOLD->sendState(); HOLD->sendState();
HOLD->resource->sendDone();
}
lastFocus = pWindow; lastFocus = pWindow;
@ -273,6 +280,7 @@ void CForeignToplevelWlrManager::onNewFocus(CWindow* pWindow) {
return; return;
H->sendState(); H->sendState();
H->resource->sendDone();
} }
bool CForeignToplevelWlrManager::good() { bool CForeignToplevelWlrManager::good() {