baskerville / bspwm

A tiling window manager based on binary space partitioning
BSD 2-Clause "Simplified" License
7.71k stars 416 forks source link

Window sized do not change when tray appears/disappears #1091

Open jonhoo opened 4 years ago

jonhoo commented 4 years ago

I'm using polybar, and have noticed that if I kill polybar, windows do not expand to fill the newly available space. Even if I open a new split in order to trigger a resize event, the space the bar took up at the bottom of the screen still remains? I do not seem to be able to expand a window into that new space either.

Separately, but probably related, I noticed this morning that starting a tray after windows already exist causes some problems. Specifically, here's what I did:

  1. On (empty) desktop 1, launch Firefox
  2. Switch to (empty) desktop 2 and launch a terminal
  3. In the terminal, run the command to start the tray
  4. Close the terminal
  5. Switch to desktop 1 — notice that the bottom of the Firefox window overlaps with the tray.
  6. Open a new split — notice that Firefox now gets a resize event, and then no longer overlaps with the tray
plitter commented 4 years ago

I remember I had issues with starting polybar, the way I solved my issue was to add padding at the top of the desktop with bspc config top_padding 25, but I guess you could add it to the polybar script that when you start it you first make the padding, then you start polybar and then when you close it you can remove the padding.