I did some debugging and found that firstly, XtVaGetValues(toplevel, XtNwidth, &w, XtNheight, &h, NULL) in check_things() didn't get the size of the window, but the size of the remote desktop, and secondly, the mask that XQueryPointer() fetched wouldn't be zero because it includes not only mouse buttons as intended, but keyboard modifiers such as Caps Lock (typically the lock modifier) and Num Lock (mod2 in my case). The problem with the 1×1 window, I found, was more in get_scale_values(). In the end I wound up adding a new, more proper event handler to detect window size changes.
As to why nothing has happened to this bug for this long, well, I do this on a voluntary basis, it didn't seem that critical, and haven't gotten around to taking a closer look until now, also hoping that Karl (upstream) might do something. When you're saying that the unpatched version is completely unusable, do you mean that you always connect to desktops that are larger than your screen and therefore have to enable autoscaling right away? ** Patch added: "My solution" https://bugs.launchpad.net/ubuntu/+source/ssvnc/+bug/1312966/+attachment/4710533/+files/auto-scale.patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1312966 Title: ssvnc creates a 1x1 window with -scale auto To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ssvnc/+bug/1312966/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs