Bugfix: Draw bar at the correct position, handle expose events for bars
This commit is contained in:
parent
00f08cba75
commit
3a34cfc603
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user