Don't crash if windowmanager is not initialized

This can happen if there is e.g. no wayland server.

Reviewed-by: sroedal
(cherry picked from commit aea5e35f57d061b133d2fa613d10f5e0118f5706)
This commit is contained in:
Lasse Holmstedt 2011-05-19 16:30:44 +02:00 committed by Samuel Rødal
parent ac0eef5d64
commit 611837baec

View File

@ -79,6 +79,7 @@ void QWaylandWindowManagerIntegration::wlHandleListenerGlobal(wl_display *displa
void QWaylandWindowManagerIntegration::mapClientToProcess(long long processId)
{
if (mWaylandWindowManager)
wl_windowmanager_map_client_to_process(mWaylandWindowManager, (uint32_t) processId);
}