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:
@@ -116,6 +116,7 @@ Changes since version 0.80.2:
|
|||||||
- Updated Spanish translation of WPrefs (Alberto Gimenez <algibe@teleline.es>)
|
- Updated Spanish translation of WPrefs (Alberto Gimenez <algibe@teleline.es>)
|
||||||
- Fixed synchronization problem between hair cursor and mouse cursor in
|
- Fixed synchronization problem between hair cursor and mouse cursor in
|
||||||
wmagnify with mouse cursor at the screen edge (Jon Diercks <jon@diercks.net>)
|
wmagnify with mouse cursor at the screen edge (Jon Diercks <jon@diercks.net>)
|
||||||
|
- Fixed 2 focus switching related bugs (Allan Peramaki <aperamak@cc.hut.fi>)
|
||||||
|
|
||||||
|
|
||||||
Changes since version 0.80.1:
|
Changes since version 0.80.1:
|
||||||
|
|||||||
10
src/window.c
10
src/window.c
@@ -2809,17 +2809,17 @@ wWindowResetMouseGrabs(WWindow *wwin)
|
|||||||
if (!WFLAGP(wwin, no_bind_mouse)) {
|
if (!WFLAGP(wwin, no_bind_mouse)) {
|
||||||
/* grabs for Meta+drag */
|
/* grabs for Meta+drag */
|
||||||
wHackedGrabButton(AnyButton, MOD_MASK, wwin->client_win,
|
wHackedGrabButton(AnyButton, MOD_MASK, wwin->client_win,
|
||||||
True, ButtonPressMask, GrabModeSync,
|
True, ButtonPressMask|ButtonReleaseMask,
|
||||||
GrabModeAsync, None, None);
|
GrabModeSync, GrabModeAsync, None, None);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!wwin->flags.focused && !WFLAGP(wwin, no_focusable)
|
if (!wwin->flags.focused && !WFLAGP(wwin, no_focusable)
|
||||||
&& !wwin->flags.is_gnustep) {
|
&& !wwin->flags.is_gnustep) {
|
||||||
/* the passive grabs to focus the window */
|
/* 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,
|
XGrabButton(dpy, AnyButton, AnyModifier, wwin->client_win,
|
||||||
True, ButtonPressMask, GrabModeSync, GrabModeAsync,
|
True, ButtonPressMask|ButtonReleaseMask,
|
||||||
None, None);
|
GrabModeSync, GrabModeAsync, None, None);
|
||||||
}
|
}
|
||||||
XFlush(dpy);
|
XFlush(dpy);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user