diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-10-14 07:23:42 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-10-14 07:23:42 +0000 |
| commit | 37c9f2d96162aaf96c68fb2ef4cc48bca8a875fc (patch) | |
| tree | 3cd7877dc372ddda4db38cd948083cedf4ebfaed | |
| parent | e6c9efa71d7f22d866264997a165fdbfd50b6252 (diff) | |
fix _NET_WM_STRUT oldschool support
| -rw-r--r-- | openbox/client.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/openbox/client.c b/openbox/client.c index 897a53a8..8734ce49 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -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); } |
