diff options
author | Olivier Fourdan <ofourdan@redhat.com> | 2016-03-17 14:39:45 +0100 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2016-03-28 14:09:09 -0400 |
commit | 6e3a6e30a6ac66942a0756a5d079993181f02e34 (patch) | |
tree | 4759b794598c06be94dec8c5bce0102a7083eec6 | |
parent | 418fe365b45a143680d3b4143dc60f7cdc5a3507 (diff) |
xwayland: do not include frequency in mode name
Some applications (e.g. using lwjgl) try to parse the output of the
xrandr command and get confused with the mode name returned by Xwayland,
because it contains "@[frequency]" (e.g. "1024x640@60.0Hz").
Remove the @[frequency] part of the mode name to match what is found in
usual mode names on regular X servers to please those applications.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=94589
Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
-rw-r--r-- | hw/xwayland/xwayland-cvt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/xwayland/xwayland-cvt.c b/hw/xwayland/xwayland-cvt.c index 35665597f..9655e104e 100644 --- a/hw/xwayland/xwayland-cvt.c +++ b/hw/xwayland/xwayland-cvt.c @@ -296,8 +296,8 @@ xwayland_cvt(int HDisplay, int VDisplay, float VRefresh, Bool Reduced, if (Interlaced) modeinfo.modeFlags |= RR_Interlace; - snprintf(name, sizeof name, "%dx%d@%.1fHz", - modeinfo.width, modeinfo.height, VRefresh); + snprintf(name, sizeof name, "%dx%d", + modeinfo.width, modeinfo.height); modeinfo.nameLength = strlen(name); return RRModeGet(&modeinfo, name); |