1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-20 21:08:08 +01:00

removed FocusFollowMouse

This commit is contained in:
kojima
2001-05-14 14:58:55 +00:00
parent ab61c599f9
commit 205b3f35b9
5 changed files with 11 additions and 15 deletions

View File

@@ -1054,11 +1054,7 @@ handleEnterNotify(XEvent *event)
/* enter to window */
wwin = wWindowFor(event->xcrossing.window);
if (!wwin) {
if (wPreferences.focus_mode==WKF_POINTER
&& event->xcrossing.window==event->xcrossing.root) {
wSetFocusTo(scr, NULL);
}
if (wPreferences.colormap_mode==WKF_POINTER) {
if (wPreferences.colormap_mode==WCM_POINTER) {
wColormapInstallForWindow(scr, NULL);
}
if (scr->autoRaiseTimer
@@ -1074,8 +1070,7 @@ handleEnterNotify(XEvent *event)
*
* set focus if in focus-follows-mouse mode and the event
* is for the frame window and window doesn't have focus yet */
if ((wPreferences.focus_mode==WKF_POINTER
|| wPreferences.focus_mode==WKF_SLOPPY)
if (wPreferences.focus_mode==WKF_SLOPPY
&& wwin->frame->core->window==event->xcrossing.window
&& !scr->flags.doing_alt_tab) {
@@ -1095,7 +1090,7 @@ handleEnterNotify(XEvent *event)
}
/* Install colormap for window, if the colormap installation mode
* is colormap_follows_mouse */
if (wPreferences.colormap_mode==WKF_POINTER) {
if (wPreferences.colormap_mode==WCM_POINTER) {
if (wwin->client_win==event->xcrossing.window)
wColormapInstallForWindow(scr, wwin);
else