April 12, 2026
9:37 a.m.
Zhiyi Zhang (@zhiyi) commented about dlls/winex11.drv/window.c:
return new_state; }
+void get_window_monitors( Display *display, Window window, long *indices ) +{ + unsigned long count, remaining; + long *value; + int format; + Atom type; + + if (!XGetWindowProperty( display, window, x11drv_atom( _NET_WM_FULLSCREEN_MONITORS ), 0, 65536, False, + XA_CARDINAL, &type, &format, &count, &remaining, (unsigned char **)&value )) + { + if (type == XA_CARDINAL && format == 32) memcpy( indices, value, 4 * sizeof(indices) );
Should be `4 * sizeof(*indices)` -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10620#note_135897