]> source.dussan.org Git - tigervnc.git/commitdiff
Fix silly typo that caused us to mishandle some SetDesktopSize requests.
authorPierre Ossman <ossman@cendio.se>
Mon, 27 Aug 2012 13:02:47 +0000 (13:02 +0000)
committerPierre Ossman <ossman@cendio.se>
Mon, 27 Aug 2012 13:02:47 +0000 (13:02 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4976 3789f03b-4d11-0410-bbf8-ca57d06f2519

unix/xserver/hw/vnc/XserverDesktop.cc

index 7e068b17b45d87510105b98fe180483d2b00d15b..e777bd30c145095b3779870d55411997bd5ee76e 100644 (file)
@@ -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,