when placing a window, dont use its strut while placing itself.

This commit is contained in:
Dana Jansens 2002-07-05 19:47:44 +00:00
parent e15e4a9e03
commit 6954842d84

View file

@ -189,9 +189,6 @@ BlackboxWindow::BlackboxWindow(Blackbox *b, Window w, BScreen *s) {
blackbox->saveWindowSearch(frame.plate, this); blackbox->saveWindowSearch(frame.plate, this);
blackbox->saveWindowSearch(client.window, this); blackbox->saveWindowSearch(client.window, this);
screen->addStrut(&client.strut);
updateStrut();
// determine if this is a transient window // determine if this is a transient window
getTransientInfo(); getTransientInfo();
@ -260,6 +257,10 @@ BlackboxWindow::BlackboxWindow(Blackbox *b, Window w, BScreen *s) {
place_window = False; 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) if (decorations & Decor_Titlebar)
createTitlebar(); createTitlebar();