diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-07-05 19:47:44 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-07-05 19:47:44 +0000 |
| commit | 6954842d84539c1b345d575a39c5dbd5ab0a1227 (patch) | |
| tree | 3420041fca1045447671a96501d59a46f3f67c21 /src | |
| parent | e15e4a9e03dd7b64004b76ca84b07c12c251f67b (diff) | |
when placing a window, dont use its strut while placing itself.
Diffstat (limited to 'src')
| -rw-r--r-- | src/Window.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Window.cc b/src/Window.cc index f1dfe6e8..427cc955 100644 --- a/src/Window.cc +++ b/src/Window.cc @@ -189,9 +189,6 @@ BlackboxWindow::BlackboxWindow(Blackbox *b, Window w, BScreen *s) { 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 @@ BlackboxWindow::BlackboxWindow(Blackbox *b, Window w, BScreen *s) { 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(); |
