mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 20:38:08 +01:00
- made deiconification not automatically focus window in sloppy focus
- fixed crash with DisableMiniwindows and icon pixmap changes - fixed crash when changing icon of window without WM_CLASS - added IAmAnnoyingAndDontWantWorkspaceNameDisplay - added hysteresys for offscreen menu scrollback - fixed bug with IgnoreFocusClick - fixed crash with windows with width == 1 (Alban Hertroys <dalroi@wit401310.student.utwente.nl>) - added SHEXEC command - fixed resizebarback for SHADOW_RESIZEBAR ( jim knoble jmknoble@pobox.com)
This commit is contained in:
@@ -1552,10 +1552,10 @@ wWindowFocus(WWindow *wwin, WWindow *owin)
|
||||
|
||||
wFrameWindowChangeState(wwin->frame, WS_FOCUSED);
|
||||
|
||||
wWindowResetMouseGrabs(wwin);
|
||||
|
||||
wwin->flags.focused = 1;
|
||||
|
||||
wWindowResetMouseGrabs(wwin);
|
||||
|
||||
UpdateSwitchMenu(wwin->screen_ptr, wwin, ACTION_CHANGE_STATE);
|
||||
|
||||
if (owin == wwin || !owin)
|
||||
@@ -1621,6 +1621,7 @@ wWindowUnfocus(WWindow *wwin)
|
||||
}
|
||||
}
|
||||
wwin->flags.focused = 0;
|
||||
|
||||
wWindowResetMouseGrabs(wwin);
|
||||
|
||||
UpdateSwitchMenu(wwin->screen_ptr, wwin, ACTION_CHANGE_STATE);
|
||||
@@ -2334,7 +2335,7 @@ wWindowResetMouseGrabs(WWindow *wwin)
|
||||
GrabModeAsync, None, None);
|
||||
}
|
||||
|
||||
if (!wwin->flags.focused) {
|
||||
if (!wwin->flags.focused && !WFLAGP(wwin, no_focusable)) {
|
||||
/* the passive grabs to focus the window */
|
||||
if (wPreferences.focus_mode == WKF_CLICK)
|
||||
XGrabButton(dpy, AnyButton, AnyModifier, wwin->client_win,
|
||||
|
||||
Reference in New Issue
Block a user