]> Dogcows Code - chaz/openbox/commitdiff
Merge branch 'backport' into work
authorMikael Magnusson <mikachu@gmail.com>
Wed, 19 Nov 2008 16:43:56 +0000 (17:43 +0100)
committerMikael Magnusson <mikachu@gmail.com>
Wed, 19 Nov 2008 16:43:56 +0000 (17:43 +0100)
1  2 
openbox/focus_cycle_indicator.c
openbox/frame.c

index 495a72305be16d2d86d1fe738e4015b2e13b46eb,670f48ec71e764ad808e24474c0f610d35f82cfb..5d7ecb3d0f5084a08229e642e37955b733794506
@@@ -127,12 -127,18 +127,18 @@@ void focus_cycle_indicator_shutdown(gbo
      stacking_remove(INTERNAL_AS_WINDOW(&focus_indicator.right));
      stacking_remove(INTERNAL_AS_WINDOW(&focus_indicator.bottom));
  
 -    XDestroyWindow(ob_display, focus_indicator.top.window);
 -    XDestroyWindow(ob_display, focus_indicator.left.window);
 -    XDestroyWindow(ob_display, focus_indicator.right.window);
 -    XDestroyWindow(ob_display, focus_indicator.bottom.window);
 +    XDestroyWindow(obt_display, focus_indicator.top.window);
 +    XDestroyWindow(obt_display, focus_indicator.left.window);
 +    XDestroyWindow(obt_display, focus_indicator.right.window);
 +    XDestroyWindow(obt_display, focus_indicator.bottom.window);
  }
  
+ void focus_cycle_update_indicator(ObClient *c)
+ {
+         if (visible)
+             focus_cycle_draw_indicator(c);
+ }
  void focus_cycle_draw_indicator(ObClient *c)
  {
      if (!c && visible) {
diff --cc openbox/frame.c
index 8a7b1aef441f6206624d2af5893169fb80013a71,704560bdd95aa2edbf6d1f8a95763521faa1d2e8..30630fbb53c3806598026d367c48b281e0c61ba2
@@@ -850,10 -851,10 +850,10 @@@ void frame_adjust_area(ObFrame *self, g
          /* 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(self->client);
+             focus_cycle_update_indicator(self->client);
      }
      if (resized && (self->decorations & OB_FRAME_DECOR_TITLEBAR))
 -        XResizeWindow(ob_display, self->label, self->label_width,
 +        XResizeWindow(obt_display, self->label, self->label_width,
                        ob_rr_theme->label_height);
  
  }
This page took 0.03423 seconds and 4 git commands to generate.