]> Dogcows Code - chaz/openbox/blobdiff - openbox/screen.c
give the dock a strut and use it
[chaz/openbox] / openbox / screen.c
index 6a300d891a85fa66ed9288d93a32da97220603d6..fd6244665cc99cc8827a90a3ff1745386dec543d 100644 (file)
@@ -1,5 +1,5 @@
 #include "openbox.h"
-#include "slit.h"
+#include "dock.h"
 #include "prop.h"
 #include "startup.h"
 #include "config.h"
@@ -219,7 +219,7 @@ void screen_resize(int w, int h)
     if (ob_state == State_Starting)
        return;
 
-    slit_configure_all();
+    dock_configure();
     screen_update_struts();
 
     for (it = client_list; it; it = it->next)
@@ -497,6 +497,10 @@ void screen_update_struts()
        /* apply to the 'all desktops' strut */
        STRUT_ADD(strut[screen_num_desktops], c->strut);
     }
+
+    for (i = 0; i < screen_num_desktops; ++i)
+        STRUT_ADD(strut[i], dock_strut);
+
     screen_update_area();
 }
 
This page took 0.020489 seconds and 4 git commands to generate.