summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--unix/xserver/hw/vnc/XserverDesktop.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/unix/xserver/hw/vnc/XserverDesktop.cc b/unix/xserver/hw/vnc/XserverDesktop.cc
index 7e068b17..e777bd30 100644
--- a/unix/xserver/hw/vnc/XserverDesktop.cc
+++ b/unix/xserver/hw/vnc/XserverDesktop.cc
@@ -886,7 +886,7 @@ unsigned int XserverDesktop::setScreenLayout(int fb_width, int fb_height,
}
/* First we might need to resize the screen */
- if ((fb_width != pScreen->width) || (fb_height == pScreen->height)) {
+ if ((fb_width != pScreen->width) || (fb_height != pScreen->height)) {
/* Try to retain DPI when we resize */
ret = RRScreenSizeSet(pScreen, fb_width, fb_height,
pScreen->mmWidth * fb_width / pScreen->width,