diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-05-21 23:56:07 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-05-21 23:56:07 +0000 |
| commit | b8f207892a11b53365c47b4828254269fca5c8e9 (patch) | |
| tree | 50dc4de5f35f7a1e0c275ef49b63941ad6749688 /openbox/event.c | |
| parent | cce3fed748bd2f68522cf76954c62d8f61bb5946 (diff) | |
some repositioning of frame elements for maximized windows.
fix clicking on borders not counting as the button in that corner for full max windows
disable the resize cursors for full max windows
Diffstat (limited to 'openbox/event.c')
| -rw-r--r-- | openbox/event.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/openbox/event.c b/openbox/event.c index bf2fd932..ac0e6ff2 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -810,6 +810,8 @@ static void event_handle_client(ObClient *client, XEvent *e) e->xmotion.x, e->xmotion.y); switch (con) { case OB_FRAME_CONTEXT_TITLEBAR: + case OB_FRAME_CONTEXT_TLCORNER: + case OB_FRAME_CONTEXT_TRCORNER: /* we've left the button area inside the titlebar */ if (client->frame->max_hover || client->frame->desk_hover || client->frame->shade_hover || client->frame->iconify_hover || @@ -861,6 +863,22 @@ static void event_handle_client(ObClient *client, XEvent *e) con = frame_context(client, e->xcrossing.window, e->xcrossing.x, e->xcrossing.y); switch (con) { + case OB_FRAME_CONTEXT_TITLEBAR: + case OB_FRAME_CONTEXT_TLCORNER: + case OB_FRAME_CONTEXT_TRCORNER: + /* we've left the button area inside the titlebar */ + if (client->frame->max_hover || client->frame->desk_hover || + client->frame->shade_hover || client->frame->iconify_hover || + client->frame->close_hover) + { + client->frame->max_hover = FALSE; + client->frame->desk_hover = FALSE; + client->frame->shade_hover = FALSE; + client->frame->iconify_hover = FALSE; + client->frame->close_hover = FALSE; + frame_adjust_state(client->frame); + } + break; case OB_FRAME_CONTEXT_MAXIMIZE: client->frame->max_hover = FALSE; frame_adjust_state(client->frame); |
