mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 04:48:06 +01:00
Fixed 2 focus switching related bugs (Allan Peramaki <aperamak@cc.hut.fi>)
This commit is contained in:
10
src/window.c
10
src/window.c
@@ -2809,17 +2809,17 @@ wWindowResetMouseGrabs(WWindow *wwin)
|
||||
if (!WFLAGP(wwin, no_bind_mouse)) {
|
||||
/* grabs for Meta+drag */
|
||||
wHackedGrabButton(AnyButton, MOD_MASK, wwin->client_win,
|
||||
True, ButtonPressMask, GrabModeSync,
|
||||
GrabModeAsync, None, None);
|
||||
True, ButtonPressMask|ButtonReleaseMask,
|
||||
GrabModeSync, GrabModeAsync, None, None);
|
||||
}
|
||||
|
||||
if (!wwin->flags.focused && !WFLAGP(wwin, no_focusable)
|
||||
&& !wwin->flags.is_gnustep) {
|
||||
/* the passive grabs to focus the window */
|
||||
/* if (wPreferences.focus_mode == WKF_CLICK) */
|
||||
/* if (wPreferences.focus_mode == WKF_CLICK) */
|
||||
XGrabButton(dpy, AnyButton, AnyModifier, wwin->client_win,
|
||||
True, ButtonPressMask, GrabModeSync, GrabModeAsync,
|
||||
None, None);
|
||||
True, ButtonPressMask|ButtonReleaseMask,
|
||||
GrabModeSync, GrabModeAsync, None, None);
|
||||
}
|
||||
XFlush(dpy);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user