From 2b80b3b398b5ee2b3c94a1ebc5a833c3b0876d2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Tue, 23 Jul 2013 06:40:47 +0200 Subject: [PATCH] Disable detection of ksmserver in sessionmanagement for porting --- sm.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sm.cpp b/sm.cpp index 1e90eb63cf..a4fd611455 100644 --- a/sm.cpp +++ b/sm.cpp @@ -45,9 +45,14 @@ bool SessionManager::saveState(QSessionManager& sm) // before the WM finishes phase 1. Saving in phase 2 is // too late, as possible user interaction may change some things. // Phase2 is still needed though (ICCCM 5.2) +#if KWIN_QT5_PORTING char* sm_vendor = SmcVendor(static_cast< SmcConn >(sm.handle())); bool ksmserver = qstrcmp(sm_vendor, "KDE") == 0; free(sm_vendor); +#else +#warning need to figure out whether the used SessionManager is ksmserver + bool ksmserver = false; +#endif if (!sm.isPhase2()) { Workspace::self()->sessionSaveStarted(); if (ksmserver) // save stacking order etc. before "save file?" etc. dialogs change it