when placing a window, dont use its strut while placing itself.
Dana Jansens danakj@orodu.net
1 files changed,
4 insertions(+),
3 deletions(-)
jump to
M
src/Window.cc
→
src/Window.cc
@@ -189,9 +189,6 @@ blackbox->saveWindowSearch(frame.window, this);
blackbox->saveWindowSearch(frame.plate, this); blackbox->saveWindowSearch(client.window, this); - screen->addStrut(&client.strut); - updateStrut(); - // determine if this is a transient window getTransientInfo();@@ -260,6 +257,10 @@ client.rect.intersects(screen->availableArea()))
place_window = False; } + // add the window's strut. note this is done *after* placing the window. + screen->addStrut(&client.strut); + updateStrut(); + if (decorations & Decor_Titlebar) createTitlebar();