Change default argument of grabXKeyboard to XCB_WINDOW_NONE

Summary:
The implementation of grabXKeyboard checks whether the passed in arg
is XCB_WINDOW_NONE and sets the arg to rootWindow. Thus we don't need
to have rootWindow as the default argument, but can have none as the
default arg.

Test Plan: Compiles, test which uses the default arg still passes

Reviewers: #kwin, #plasma

Subscribers: plasma-devel, kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D7857
icc-effect-5.14.5
Martin Flöser 2017-09-17 09:42:17 +02:00
parent 0ed609590b
commit a264c2b5cf
1 changed files with 1 additions and 1 deletions

View File

@ -158,7 +158,7 @@ template <typename T> using ScopedCPointer = QScopedPointer<T, QScopedPointerPod
void KWIN_EXPORT updateXTime();
void KWIN_EXPORT grabXServer();
void KWIN_EXPORT ungrabXServer();
bool KWIN_EXPORT grabXKeyboard(xcb_window_t w = rootWindow());
bool KWIN_EXPORT grabXKeyboard(xcb_window_t w = XCB_WINDOW_NONE);
void KWIN_EXPORT ungrabXKeyboard();
/**