Bugfix: Draw bar at the correct position, handle expose events for bars

This commit is contained in:
Michael Stapelberg 2009-03-09 08:24:05 +01:00
parent 00f08cba75
commit 3a34cfc603
2 changed files with 9 additions and 1 deletions

View File

@ -549,6 +549,14 @@ int handle_expose_event(void *data, xcb_connection_t *conn, xcb_expose_event_t *
render_container(conn, stack_win->container);
return 1;
}
/* …or one of the bars? */
i3Screen *screen;
TAILQ_FOREACH(screen, virtual_screens, screens) {
if (screen->bar == event->window) {
render_layout(conn);
}
}
return 1;
}

View File

@ -532,7 +532,7 @@ void render_layout(xcb_connection_t *conn) {
}
render_bars(conn, r_ws, width, &height);
render_internal_bar(conn, r_ws, width, 18);
render_internal_bar(conn, r_ws, width, font->height + 6);
}
xcb_flush(conn);