From 77edf8eb69c4dc55cae92189347af64411cbe4a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Tue, 10 Sep 2013 10:55:14 +0200 Subject: [PATCH] Port all XAllowEvents to xcb_allow_events in kwin --- events.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/events.cpp b/events.cpp index 23e2c5e98a..579c53995c 100644 --- a/events.cpp +++ b/events.cpp @@ -1031,7 +1031,7 @@ bool Client::buttonPressEvent(xcb_window_t w, int button, int state, int x, int { if (buttonDown) { if (w == wrapperId()) - XAllowEvents(display(), SyncPointer, CurrentTime); //xTime()); + xcb_allow_events(connection(), XCB_ALLOW_SYNC_POINTER, XCB_TIME_CURRENT_TIME); //xTime()); return true; } @@ -1046,7 +1046,7 @@ bool Client::buttonPressEvent(xcb_window_t w, int button, int state, int x, int // hide splashwindow if the user clicks on it hideClient(true); if (w == wrapperId()) - XAllowEvents(display(), SyncPointer, CurrentTime); //xTime()); + xcb_allow_events(connection(), XCB_ALLOW_SYNC_POINTER, XCB_TIME_CURRENT_TIME); //xTime()); return true; } @@ -1106,13 +1106,13 @@ bool Client::buttonPressEvent(xcb_window_t w, int button, int state, int x, int replay = true; if (w == wrapperId()) // these can come only from a grab - XAllowEvents(display(), replay ? ReplayPointer : SyncPointer, CurrentTime); //xTime()); + xcb_allow_events(connection(), replay ? XCB_ALLOW_REPLAY_POINTER : XCB_ALLOW_SYNC_POINTER, XCB_TIME_CURRENT_TIME); //xTime()); return true; } } if (w == wrapperId()) { // these can come only from a grab - XAllowEvents(display(), ReplayPointer, CurrentTime); //xTime()); + xcb_allow_events(connection(), XCB_ALLOW_REPLAY_POINTER, XCB_TIME_CURRENT_TIME); //xTime()); return true; } if (w == inputId()) { @@ -1206,7 +1206,7 @@ bool Client::buttonReleaseEvent(xcb_window_t w, int /*button*/, int state, int x if (w == decorationId() && !buttonDown) return false; if (w == wrapperId()) { - XAllowEvents(display(), SyncPointer, CurrentTime); //xTime()); + xcb_allow_events(connection(), XCB_ALLOW_SYNC_POINTER, XCB_TIME_CURRENT_TIME); //xTime()); return true; } if (w != frameId() && w != decorationId() && w != inputId() && w != moveResizeGrabWindow())