summaryrefslogtreecommitdiffstats
path: root/ksmserver/legacy.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ksmserver/legacy.cpp')
-rw-r--r--ksmserver/legacy.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/ksmserver/legacy.cpp b/ksmserver/legacy.cpp
index d7838253b..f754d4126 100644
--- a/ksmserver/legacy.cpp
+++ b/ksmserver/legacy.cpp
@@ -68,8 +68,6 @@ static Atom wm_save_yourself = None;
static Atom wm_protocols = None;
static Atom wm_client_leader = None;
-extern Time qt_x_time;
-
static int winsErrorHandler(Display *, XErrorEvent *ev)
{
if (windowMapPtr) {
@@ -153,7 +151,7 @@ void KSMServer::performLegacySessionSave()
ev.xclient.message_type = wm_protocols;
ev.xclient.format = 32;
ev.xclient.data.l[0] = wm_save_yourself;
- ev.xclient.data.l[1] = qt_x_time;
+ ev.xclient.data.l[1] = GET_QT_X_TIME();
XSelectInput(newdisplay, w, PropertyChangeMask|StructureNotifyMask);
XSendEvent(newdisplay, w, False, 0, &ev);
}