mirror of
https://github.com/0intro/wmii
synced 2024-11-25 07:09:38 +03:00
fix memset of struts in ewmh_getstrut
This commit is contained in:
parent
ff120c7fee
commit
455972bcd4
@ -20,7 +20,7 @@ ewmh_getstrut(Window *w, Rectangle struts[4]) {
|
|||||||
long *strut;
|
long *strut;
|
||||||
ulong n;
|
ulong n;
|
||||||
|
|
||||||
memset(struts, 0, sizeof *struts);
|
memset(struts, 0, sizeof(Rectangle[4]));
|
||||||
|
|
||||||
n = getprop_long(w, Net("WM_STRUT_PARTIAL"), "CARDINAL",
|
n = getprop_long(w, Net("WM_STRUT_PARTIAL"), "CARDINAL",
|
||||||
0L, &strut, Last);
|
0L, &strut, Last);
|
||||||
|
Loading…
Reference in New Issue
Block a user