diff options
| author | Dana Jansens <danakj@orodu.net> | 2008-02-26 03:12:57 -0500 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2008-02-26 03:12:57 -0500 |
| commit | 1ef0d8eb53fcae52afbae74310fbef0cac729951 (patch) | |
| tree | 96fbc6f376c094f04c5b83d587846abebeffd699 /openbox/mouse.c | |
| parent | dd97c9beac2778cddb97603315b21778323a25c7 (diff) | |
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.
Diffstat (limited to 'openbox/mouse.c')
| -rw-r--r-- | openbox/mouse.c | 6 |
1 files changed, 0 insertions, 6 deletions
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 |
