mirror of https://github.com/0intro/wmii
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;
|
||||
ulong n;
|
||||
|
||||
memset(struts, 0, sizeof *struts);
|
||||
memset(struts, 0, sizeof(Rectangle[4]));
|
||||
|
||||
n = getprop_long(w, Net("WM_STRUT_PARTIAL"), "CARDINAL",
|
||||
0L, &strut, Last);
|
||||
|
|
Loading…
Reference in New Issue