diff options
| author | Dana Jansens <danakj@orodu.net> | 2008-01-25 00:35:31 -0500 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2008-01-25 00:48:45 -0500 |
| commit | 3febcbb9ae6a31edbd64a86f0045148bb052fcff (patch) | |
| tree | 3ce99eaba3e7dc241dfc41ac7a9dcdc53f4b3bea /openbox/focus_cycle_indicator.c | |
| parent | aa5f7e7dca0054c0a015e34eeae128890901627f (diff) | |
skip enter events caused by temporarily raising windows during alt-tab. also caused by the focus cycle indicator moving
Diffstat (limited to 'openbox/focus_cycle_indicator.c')
| -rw-r--r-- | openbox/focus_cycle_indicator.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/openbox/focus_cycle_indicator.c b/openbox/focus_cycle_indicator.c index 0aa65a75..7c5d5290 100644 --- a/openbox/focus_cycle_indicator.c +++ b/openbox/focus_cycle_indicator.c @@ -158,6 +158,7 @@ void focus_cycle_draw_indicator(ObClient *c) */ gint x, y, w, h; gint wt, wl, wr, wb; + gulong ignore_start; wt = wl = wr = wb = FOCUS_INDICATOR_WIDTH; @@ -166,6 +167,9 @@ void focus_cycle_draw_indicator(ObClient *c) w = c->frame->area.width; h = wt; + /* kill enter events cause by this moving */ + ignore_start = event_start_ignore_all_enters(); + XMoveResizeWindow(ob_display, focus_indicator.top.win, x, y, w, h); a_focus_indicator->texture[0].data.lineart.x1 = 0; @@ -270,6 +274,8 @@ void focus_cycle_draw_indicator(ObClient *c) XMapWindow(ob_display, focus_indicator.right.win); XMapWindow(ob_display, focus_indicator.bottom.win); + event_end_ignore_all_enters(ignore_start); + visible = TRUE; } } |
