From 1ef0d8eb53fcae52afbae74310fbef0cac729951 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Tue, 26 Feb 2008 03:12:57 -0500 Subject: Fixing bug from commit 041d17373e04 Pressing a button and leave/enter would cause the button to show hover mode, not pressed mode. Change the behaviour back to how it used to be for pressing (the button stays pressed when you move outside of its box) and make it work correctly, as commit 041d17373e04 also did for menus. Reverting this behaviour because it seems impossible to do the enter/leave stuff correctly for the close button on maximized windows. Leaving the titlebar contexts doesn't give us an Enter event to go along with it, so even if we check all motion events, the button will flash unpressed when leaving the topright contexts. --- openbox/mouse.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'openbox/mouse.c') diff --git a/openbox/mouse.c b/openbox/mouse.c index 857f6d09..f63d2663 100644 --- a/openbox/mouse.c +++ b/openbox/mouse.c @@ -38,12 +38,6 @@ typedef struct { GSList *actions[OB_NUM_MOUSE_ACTIONS]; /* lists of Action pointers */ } ObMouseBinding; -#define FRAME_CONTEXT(co, cl) ((cl && cl->type != OB_CLIENT_TYPE_DESKTOP) ? \ - co == OB_FRAME_CONTEXT_FRAME : FALSE) -#define CLIENT_CONTEXT(co, cl) ((cl && cl->type == OB_CLIENT_TYPE_DESKTOP) ? \ - co == OB_FRAME_CONTEXT_DESKTOP : \ - co == OB_FRAME_CONTEXT_CLIENT) - /* Array of GSList*s of ObMouseBinding*s. */ static GSList *bound_contexts[OB_FRAME_NUM_CONTEXTS]; /* TRUE when we have a grab on the pointer and need to replay the pointer event -- cgit v1.2.3