X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fframe.c;h=ec7464a1e2280b22fef99e1dd52801f298740bc5;hb=322fc41e496022b1fdfc4753424146496148f232;hp=fdca7be7a475949c02280707dc017ddb57000945;hpb=f68cf94d35d023a36d434ee51236ed60e925afcf;p=chaz%2Fopenbox diff --git a/openbox/frame.c b/openbox/frame.c index fdca7be7..ec7464a1 100644 --- a/openbox/frame.c +++ b/openbox/frame.c @@ -24,6 +24,7 @@ #include "config.h" #include "framerender.h" #include "mainloop.h" +#include "focus.h" #include "moveresize.h" #include "render/theme.h" @@ -182,17 +183,17 @@ static void frame_free(ObFrame *self) void frame_show(ObFrame *self) { if (!self->visible) { - self->visible = TRUE; - XMapWindow(ob_display, self->window); + self->visible = TRUE; + XMapWindow(ob_display, self->window); } } void frame_hide(ObFrame *self) { if (self->visible) { - self->visible = FALSE; - self->client->ignore_unmaps++; - XUnmapWindow(ob_display, self->window); + self->visible = FALSE; + self->client->ignore_unmaps++; + XUnmapWindow(ob_display, self->window); } } @@ -420,6 +421,11 @@ void frame_adjust_area(ObFrame *self, gboolean moved, PROP_SETA32(self->client->window, kde_net_wm_frame_strut, cardinal, vals, 4); } + + /* if this occurs while we are focus cycling, the indicator needs to + match the changes */ + if (focus_cycle_target == self->client) + focus_cycle_draw_indicator(); } }