ok, so, back out the last commit. owner events are passed thru so we get enter/leave notify events. dont change frame decor from button presses during an interactive grab or while a menu is open
Dana Jansens danakj@orodu.net
2 files changed,
12 insertions(+),
5 deletions(-)
M
openbox/event.c
→
openbox/event.c
@@ -709,8 +709,15 @@ switch (e->type) {
case ButtonPress: case ButtonRelease: /* Wheel buttons don't draw because they are an instant click, so it - is a waste of resources to go drawing it. */ - if (!(e->xbutton.button == 4 || e->xbutton.button == 5)) { + is a waste of resources to go drawing it. + if the user is doing an intereactive thing, or has a menu open then + the mouse is grabbed (possibly) and if we get these events we don't + want to deal with them + */ + if (!(e->xbutton.button == 4 || e->xbutton.button == 5) && + !keyboard_interactively_grabbed() && + !menu_frame_visible) + { con = frame_context(client, e->xbutton.window); con = mouse_button_frame_context(con, e->xbutton.button); switch (con) {