summaryrefslogtreecommitdiff
path: root/src/events/Windows.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-03-22 18:29:13 +0100
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-03-22 18:29:13 +0100
commitaa64af95fedaadc97dce02d4a37d6bad05961c86 (patch)
treec2c7fd4e72651135f574722c1e1dc1b9c7de0a20 /src/events/Windows.cpp
parentdb4b4ec0d3a09b9194b102509b432b5d92b798c6 (diff)
handle inhibit
Diffstat (limited to 'src/events/Windows.cpp')
-rw-r--r--src/events/Windows.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/events/Windows.cpp b/src/events/Windows.cpp
index 040d49da..9b2f7945 100644
--- a/src/events/Windows.cpp
+++ b/src/events/Windows.cpp
@@ -39,7 +39,8 @@ void Events::listener_mapWindow(wl_listener* listener, void* data) {
else
g_pLayoutManager->getCurrentLayout()->onWindowCreated(PWINDOW);
- g_pCompositor->focusWindow(PWINDOW);
+ if (!PWINDOW->m_bIsModal)
+ g_pCompositor->focusWindow(PWINDOW);
Debug::log(LOG, "Map request dispatched, monitor %s, xywh: %f %f %f %f", PMONITOR->szName.c_str(), PWINDOW->m_vRealPosition.x, PWINDOW->m_vRealPosition.y, PWINDOW->m_vRealSize.x, PWINDOW->m_vRealSize.y);
}