i3bar: don’t use X11 borders to avoid overlapping in hide mode
fixes #923
This commit is contained in:
parent
a5c9b0dedb
commit
990a1ca4c2
|
@ -1048,7 +1048,7 @@ void init_tray(void) {
|
||||||
xcb_root,
|
xcb_root,
|
||||||
-1, -1,
|
-1, -1,
|
||||||
1, 1,
|
1, 1,
|
||||||
1,
|
0,
|
||||||
XCB_WINDOW_CLASS_INPUT_OUTPUT,
|
XCB_WINDOW_CLASS_INPUT_OUTPUT,
|
||||||
root_screen->root_visual,
|
root_screen->root_visual,
|
||||||
selmask,
|
selmask,
|
||||||
|
@ -1338,8 +1338,8 @@ void reconfig_windows(void) {
|
||||||
walk->bar,
|
walk->bar,
|
||||||
xcb_root,
|
xcb_root,
|
||||||
walk->rect.x, walk->rect.y + walk->rect.h - font.height - 6,
|
walk->rect.x, walk->rect.y + walk->rect.h - font.height - 6,
|
||||||
walk->rect.w, font.height + 6,
|
walk->rect.w, font.height + 8,
|
||||||
1,
|
0,
|
||||||
XCB_WINDOW_CLASS_INPUT_OUTPUT,
|
XCB_WINDOW_CLASS_INPUT_OUTPUT,
|
||||||
root_screen->root_visual,
|
root_screen->root_visual,
|
||||||
mask,
|
mask,
|
||||||
|
@ -1608,7 +1608,7 @@ void draw_bars(bool unhide) {
|
||||||
outputs_walk->bargc,
|
outputs_walk->bargc,
|
||||||
mask,
|
mask,
|
||||||
vals_border);
|
vals_border);
|
||||||
xcb_rectangle_t rect_border = { i, 0, ws_walk->name_width + 10, font.height + 4 };
|
xcb_rectangle_t rect_border = { i, 1, ws_walk->name_width + 10, font.height + 4 };
|
||||||
xcb_poly_fill_rectangle(xcb_connection,
|
xcb_poly_fill_rectangle(xcb_connection,
|
||||||
outputs_walk->buffer,
|
outputs_walk->buffer,
|
||||||
outputs_walk->bargc,
|
outputs_walk->bargc,
|
||||||
|
@ -1619,7 +1619,7 @@ void draw_bars(bool unhide) {
|
||||||
outputs_walk->bargc,
|
outputs_walk->bargc,
|
||||||
mask,
|
mask,
|
||||||
vals);
|
vals);
|
||||||
xcb_rectangle_t rect = { i + 1, 1, ws_walk->name_width + 8, font.height + 2 };
|
xcb_rectangle_t rect = { i + 1, 2, ws_walk->name_width + 8, font.height + 2 };
|
||||||
xcb_poly_fill_rectangle(xcb_connection,
|
xcb_poly_fill_rectangle(xcb_connection,
|
||||||
outputs_walk->buffer,
|
outputs_walk->buffer,
|
||||||
outputs_walk->bargc,
|
outputs_walk->bargc,
|
||||||
|
@ -1642,7 +1642,7 @@ void draw_bars(bool unhide) {
|
||||||
outputs_walk->bargc,
|
outputs_walk->bargc,
|
||||||
mask,
|
mask,
|
||||||
vals_border);
|
vals_border);
|
||||||
xcb_rectangle_t rect_border = { i, 0, binding.width + 10, font.height + 4 };
|
xcb_rectangle_t rect_border = { i, 1, binding.width + 10, font.height + 4 };
|
||||||
xcb_poly_fill_rectangle(xcb_connection,
|
xcb_poly_fill_rectangle(xcb_connection,
|
||||||
outputs_walk->buffer,
|
outputs_walk->buffer,
|
||||||
outputs_walk->bargc,
|
outputs_walk->bargc,
|
||||||
|
@ -1654,7 +1654,7 @@ void draw_bars(bool unhide) {
|
||||||
outputs_walk->bargc,
|
outputs_walk->bargc,
|
||||||
mask,
|
mask,
|
||||||
vals);
|
vals);
|
||||||
xcb_rectangle_t rect = { i + 1, 1, binding.width + 8, font.height + 2 };
|
xcb_rectangle_t rect = { i + 1, 2, binding.width + 8, font.height + 2 };
|
||||||
xcb_poly_fill_rectangle(xcb_connection,
|
xcb_poly_fill_rectangle(xcb_connection,
|
||||||
outputs_walk->buffer,
|
outputs_walk->buffer,
|
||||||
outputs_walk->bargc,
|
outputs_walk->bargc,
|
||||||
|
|
Loading…
Reference in New Issue