]> Dogcows Code - chaz/openbox/commitdiff
fix _NET_WM_STRUT oldschool support
authorDana Jansens <danakj@orodu.net>
Tue, 14 Oct 2003 07:23:42 +0000 (07:23 +0000)
committerDana Jansens <danakj@orodu.net>
Tue, 14 Oct 2003 07:23:42 +0000 (07:23 +0000)
openbox/client.c

index 897a53a82d28856cfec07c60cfabb87dd740ede6..8734ce491596352bfc03b92e01c36454b348d762 100644 (file)
@@ -1541,10 +1541,19 @@ void client_update_strut(ObClient *self)
     if (!got &&
         PROP_GETA32(self->window, net_wm_strut, cardinal, &data, &num)) {
         if (num == 4) {
+            const Rect *a;
+
             got = TRUE;
+
+            /* use the screen's width/height */
+            a = screen_physical_area();
+
             STRUT_PARTIAL_SET(strut,
                               data[0], data[2], data[1], data[3],
-                              0, 0, 0, 0, 0, 0, 0, 0);
+                              a->y, a->y + a->height - 1,
+                              a->x, a->x + a->width - 1,
+                              a->y, a->y + a->height - 1,
+                              a->x, a->x + a->width - 1);
         }
         g_free(data);
     }
This page took 0.02599 seconds and 4 git commands to generate.