projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e6c9efa
)
fix _NET_WM_STRUT oldschool support
author
Dana Jansens
<danakj@orodu.net>
Tue, 14 Oct 2003 07:23:42 +0000
(07:23 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Tue, 14 Oct 2003 07:23:42 +0000
(07:23 +0000)
openbox/client.c
patch
|
blob
|
history
diff --git
a/openbox/client.c
b/openbox/client.c
index 897a53a82d28856cfec07c60cfabb87dd740ede6..8734ce491596352bfc03b92e01c36454b348d762 100644
(file)
--- 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);
}