]> Dogcows Code - chaz/openbox/commitdiff
when placing a window, dont use its strut while placing itself.
authorDana Jansens <danakj@orodu.net>
Fri, 5 Jul 2002 19:47:44 +0000 (19:47 +0000)
committerDana Jansens <danakj@orodu.net>
Fri, 5 Jul 2002 19:47:44 +0000 (19:47 +0000)
src/Window.cc

index f1dfe6e8b85d716bd60e97ae9e443aba4fad7308..427cc955d8500695bfcf2c1e652e911869472f7d 100644 (file)
@@ -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();
 
This page took 0.032986 seconds and 4 git commands to generate.