mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 04:48:06 +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:
10
src/menu.c
10
src/menu.c
@@ -1796,9 +1796,9 @@ wMenuScroll(WMenu *menu, XEvent *event)
|
||||
|
||||
WMNextEvent(dpy, &ev);
|
||||
switch (ev.type) {
|
||||
case EnterNotify:
|
||||
case EnterNotify:
|
||||
WMHandleEvent(&ev);
|
||||
case MotionNotify:
|
||||
case MotionNotify:
|
||||
x = (ev.type==MotionNotify) ? ev.xmotion.x_root : ev.xcrossing.x_root;
|
||||
y = (ev.type==MotionNotify) ? ev.xmotion.y_root : ev.xcrossing.y_root;
|
||||
|
||||
@@ -1938,8 +1938,7 @@ menuMouseDown(WObjDescriptor *desc, XEvent *event)
|
||||
smenu = parentMenu(menu);
|
||||
old_frame_x = smenu->frame_x;
|
||||
old_frame_y = smenu->frame_y;
|
||||
}
|
||||
else if (event->xbutton.window == menu->frame->core->window) {
|
||||
} else if (event->xbutton.window == menu->frame->core->window) {
|
||||
/* This is true if the menu was launched with right click on root window */
|
||||
delayed_select = 1;
|
||||
d_data.delayed_select = &delayed_select;
|
||||
@@ -2195,8 +2194,7 @@ menuMouseDown(WObjDescriptor *desc, XEvent *event)
|
||||
}
|
||||
}
|
||||
|
||||
if (((WMenu*)desc->parent)->flags.brother || close_on_exit
|
||||
|| !smenu)
|
||||
if (((WMenu*)desc->parent)->flags.brother || close_on_exit || !smenu)
|
||||
closeCascade(desc->parent);
|
||||
|
||||
/* close the cascade windows that should not remain opened */
|
||||
|
||||
Reference in New Issue
Block a user