Looking at this again, I'm now testing an even smaller patch (named
vv6):

@@ -92,6 +92,9 @@ calculate_xrandr_refresh_rate (XRRModeIn
   float h_total;
   float v_total;
 
+  if (xmode->hTotal == 0 || xmode->vTotal == 0)
+    return 0.0f;
+
   h_total = (float) xmode->hTotal;
   v_total = (float) xmode->vTotal;

and it seems it still has the same problem. The interesting thing about
this is that the patch is now so small that it shows the remaining
problem (other virtual monitors automatically turned on) is not a bug in
my patch but is a pre-existing bug somewhere.

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to mutter in Ubuntu.
https://bugs.launchpad.net/bugs/2020782

Title:
  Xdcv: Changing display scale setting and reverting it fails

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mutter/+bug/2020782/+subscriptions


-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to