make-bar-always-below-other-windows.patch 1012 B

12345678910111213141516171819202122232425
  1. From 7e357c6694a2e41cdb9395da551145f0069f828f Mon Sep 17 00:00:00 2001
  2. From: dm9pZCAq <46228973+dm9pZCAq@users.noreply.github.com>
  3. Date: Sat, 31 Aug 2024 20:06:06 +0300
  4. Subject: [PATCH] make bar always below other windows
  5. Url: https://github.com/LemonBoy/bar/pull/250
  6. ---
  7. lemonbar.c | 2 +-
  8. 1 file changed, 1 insertion(+), 1 deletion(-)
  9. diff --git a/lemonbar.c b/lemonbar.c
  10. index 83d9677..029c675 100644
  11. --- a/lemonbar.c
  12. +++ b/lemonbar.c
  13. @@ -1318,7 +1318,7 @@ init (char *wm_name)
  14. // Make sure that the window really gets in the place it's supposed to be
  15. // Some WM such as Openbox need this
  16. - xcb_configure_window(c, mon->window, XCB_CONFIG_WINDOW_X | XCB_CONFIG_WINDOW_Y, (const uint32_t []){ mon->x, mon->y });
  17. + xcb_configure_window(c, mon->window, XCB_CONFIG_WINDOW_X | XCB_CONFIG_WINDOW_Y | XCB_CONFIG_WINDOW_STACK_MODE, (const uint32_t []){ mon->x, mon->y, XCB_STACK_MODE_BELOW });
  18. // Set the WM_NAME atom to the user specified value
  19. if (wm_name)