Commit ada53282 authored by Svito's avatar Svito Committed by Adam Jackson

xwayland: Add hack for FWXGA resolution #99574

For some applications (like fullscreen games) it matters for XRandr
resolution to be correctly set and equal to root window resolution.

In XServer there is already hack for this, adapted it for XWayland.

Fixes: Svito's avatarSvitozar Cherepii <>
Tested-by: Svito's avatarSvitozar Cherepii <>
Acked-by: default avatarOlivier Fourdan <>
(cherry picked from commit 1c78bec9)
parent abf3bc68
......@@ -296,6 +296,13 @@ xwayland_cvt(int HDisplay, int VDisplay, float VRefresh, Bool Reduced,
if (Interlaced)
modeinfo.modeFlags |= RR_Interlace;
/* FWXGA hack adapted from hw/xfree86/modes/xf86EdidModes.c, because you can't say 1366 */
if (HDisplay == 1366 && VDisplay == 768) {
modeinfo.width = 1366;
snprintf(name, sizeof name, "%dx%d",
modeinfo.width, modeinfo.height);
modeinfo.nameLength = strlen(name);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment