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
This commit is contained in:
parent
0ed609590b
commit
a264c2b5cf
1 changed files with 1 additions and 1 deletions
2
utils.h
2
utils.h
|
@ -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();
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue