async keyboard
svn path=/trunk/kdebase/kwin/; revision=35431
This commit is contained in:
parent
ce152850cb
commit
322bccde7b
3 changed files with 32 additions and 33 deletions
|
@ -134,9 +134,8 @@ WindowWrapper::WindowWrapper( WId w, Client *parent, const char* name)
|
|||
|
||||
// install a passive grab to catch mouse button events
|
||||
XGrabButton(qt_xdisplay(), AnyButton, AnyModifier, winId(), FALSE,
|
||||
ButtonPressMask, GrabModeSync, GrabModeSync,
|
||||
ButtonPressMask, GrabModeSync, GrabModeAsync,
|
||||
None, None );
|
||||
|
||||
}
|
||||
|
||||
WindowWrapper::~WindowWrapper()
|
||||
|
|
|
@ -687,19 +687,19 @@ void Workspace::grabKey(KeySym keysym, unsigned int mod){
|
|||
XGrabKey(qt_xdisplay(),
|
||||
XKeysymToKeycode(qt_xdisplay(), keysym), mod,
|
||||
qt_xrootwin(), FALSE,
|
||||
GrabModeSync, GrabModeSync);
|
||||
GrabModeAsync, GrabModeSync);
|
||||
XGrabKey(qt_xdisplay(),
|
||||
XKeysymToKeycode(qt_xdisplay(), keysym), mod | LockMask,
|
||||
qt_xrootwin(), FALSE,
|
||||
GrabModeSync, GrabModeSync);
|
||||
GrabModeAsync, GrabModeSync);
|
||||
XGrabKey(qt_xdisplay(),
|
||||
XKeysymToKeycode(qt_xdisplay(), keysym), mod | NumLockMask,
|
||||
qt_xrootwin(), FALSE,
|
||||
GrabModeSync, GrabModeSync);
|
||||
GrabModeAsync, GrabModeSync);
|
||||
XGrabKey(qt_xdisplay(),
|
||||
XKeysymToKeycode(qt_xdisplay(), keysym), mod | LockMask | NumLockMask,
|
||||
qt_xrootwin(), FALSE,
|
||||
GrabModeSync, GrabModeSync);
|
||||
GrabModeAsync, GrabModeSync);
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue