#include "openbox.h"
#include "frame.h"
#include "event.h"
-#include "render/render.h"
+#include "obrender/render.h"
#include <X11/Xlib.h>
#include <glib.h>
if (reconfig) return;
- focus_indicator.top.obwin.type = OB_WINDOW_CLASS_INTERNAL;
- focus_indicator.left.obwin.type = OB_WINDOW_CLASS_INTERNAL;
- focus_indicator.right.obwin.type = OB_WINDOW_CLASS_INTERNAL;
- focus_indicator.bottom.obwin.type = OB_WINDOW_CLASS_INTERNAL;
+ focus_indicator.top.type = OB_WINDOW_CLASS_INTERNAL;
+ focus_indicator.left.type = OB_WINDOW_CLASS_INTERNAL;
+ focus_indicator.right.type = OB_WINDOW_CLASS_INTERNAL;
+ focus_indicator.bottom.type = OB_WINDOW_CLASS_INTERNAL;
attr.override_redirect = True;
attr.background_pixel = BlackPixel(obt_display, ob_screen);
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) {
*/
gint x, y, w, h;
gint wt, wl, wr, wb;
+ gulong ignore_start;
wt = wl = wr = wb = FOCUS_INDICATOR_WIDTH;
w = c->frame->area.width;
h = wt;
+ /* kill enter events cause by this moving */
+ ignore_start = event_start_ignore_all_enters();
+
XMoveResizeWindow(obt_display, focus_indicator.top.window,
x, y, w, h);
a_focus_indicator->texture[0].data.lineart.x1 = 0;
XMapWindow(obt_display, focus_indicator.right.window);
XMapWindow(obt_display, focus_indicator.bottom.window);
+ event_end_ignore_all_enters(ignore_start);
+
visible = TRUE;
}
}