async keyboard

svn path=/trunk/kdebase/kwin/; revision=35431
This commit is contained in:
Matthias Ettrich 1999-11-29 14:19:32 +00:00
parent ce152850cb
commit 322bccde7b
3 changed files with 32 additions and 33 deletions

View file

@ -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()

View file

@ -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);
}