mirror of
https://github.com/brl/mutter.git
synced 2024-11-23 08:30:42 -05:00
x11: XMaxRequestSize returns 4-byte units
XMaxRequestSize/XMaxExtendedRequestSize are documented to return
the maximum size in 4-byte units, whereas we are comparing this
to byte lenghts. We can afford 4x the data here.
Since I don't know the payload size of the XChangeProperty request,
be generous and allot 400 bytes for it, we have some to spare.
https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1198
(cherry picked from commit 06d67b6abf
)
This commit is contained in:
parent
e2c61f2739
commit
6f3b7b733a
@ -114,7 +114,7 @@ get_max_request_size (MetaX11Display *display)
|
||||
if (size <= 0)
|
||||
size = XMaxRequestSize (display->xdisplay);
|
||||
|
||||
return size - 100;
|
||||
return (size - 100) * 4;
|
||||
}
|
||||
|
||||
static gboolean
|
||||
|
Loading…
Reference in New Issue
Block a user