mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-21 05:18:06 +01:00
- Fixed a bug that crashed wmaker when closing a window if multiple screens
were managed by wmaker (Valery Kotchiev <aggregator@nospam.dk>) - Fixed a problem that crashed wmaker when trying to read an unexisting WMState.<number> file on multihead system. - Fixed problem with keyboard shortcuts executed an every screen for multihead systems.
This commit is contained in:
@@ -419,10 +419,19 @@ wRootMenuPerformShortcut(XEvent *event)
|
||||
Shortcut *ptr;
|
||||
int modifiers;
|
||||
int done = 0;
|
||||
|
||||
Window dummy;
|
||||
int foo;
|
||||
|
||||
if (wScreenCount>1 &&
|
||||
XQueryPointer(dpy, event->xkey.root, &dummy, &dummy, &foo, &foo, &foo,
|
||||
&foo, &foo)==False) {
|
||||
/* Pointer is not on this screen. */
|
||||
return True;
|
||||
}
|
||||
|
||||
/* ignore CapsLock */
|
||||
modifiers = event->xkey.state & ValidModMask;
|
||||
|
||||
|
||||
for (ptr = shortcutList; ptr!=NULL; ptr = ptr->next) {
|
||||
if (ptr->keycode==0)
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user