mirror of
https://github.com/0intro/wmii
synced 2024-11-21 13:22:51 +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;
|
||||
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
Block a user