diff options
author | Lasse Holmstedt <lasse.holmstedt@nokia.com> | 2011-05-19 14:30:44 (GMT) |
---|---|---|
committer | Lasse Holmstedt <lasse.holmstedt@nokia.com> | 2011-05-19 14:32:33 (GMT) |
commit | aea5e35f57d061b133d2fa613d10f5e0118f5706 (patch) | |
tree | 29316fc826ab2d730ce4964f5deab3723c201904 | |
parent | 7cfd06ee22a875d7658ce6668b418e6f8c6f6480 (diff) | |
download | Qt-aea5e35f57d061b133d2fa613d10f5e0118f5706.zip Qt-aea5e35f57d061b133d2fa613d10f5e0118f5706.tar.gz Qt-aea5e35f57d061b133d2fa613d10f5e0118f5706.tar.bz2 |
Don't crash if windowmanager is not initialized
This can happen if there is e.g. no wayland server.
Reviewed-by: sroedal
-rw-r--r-- | src/plugins/platforms/wayland/windowmanager_integration/qwaylandwindowmanagerintegration.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/platforms/wayland/windowmanager_integration/qwaylandwindowmanagerintegration.cpp b/src/plugins/platforms/wayland/windowmanager_integration/qwaylandwindowmanagerintegration.cpp index 8a8e5a9..b93e6d2 100644 --- a/src/plugins/platforms/wayland/windowmanager_integration/qwaylandwindowmanagerintegration.cpp +++ b/src/plugins/platforms/wayland/windowmanager_integration/qwaylandwindowmanagerintegration.cpp @@ -79,6 +79,7 @@ void QWaylandWindowManagerIntegration::wlHandleListenerGlobal(wl_display *displa void QWaylandWindowManagerIntegration::mapClientToProcess(long long processId) { - wl_windowmanager_map_client_to_process(mWaylandWindowManager, (uint32_t) processId); + if (mWaylandWindowManager) + wl_windowmanager_map_client_to_process(mWaylandWindowManager, (uint32_t) processId); } |