tias / xinput_calibrator

A generic touchscreen calibration program for X.Org
http://www.freedesktop.org/wiki/Software/xinput_calibrator
Other
136 stars 105 forks source link

Correct screen size detection #51

Closed kreijack closed 10 years ago

kreijack commented 11 years ago

The XRandR api was used in a such way to get the DEFAULT size instead the current one. This patch create a helper function (detect_display_size()) which detects the current size of the screen; it is called both in the GuiCalibratorX11() constructor and in the redraw() method.

How reproduce the problem: 1) compile xinput for X11 ( autogen.sh --with-gui=x11) 2) change the resolution to a not default one (like xrandr -s 640x480) 3) start xinput_calibrator 4) the result is a window size equal to the size of the DEFAULT resolution of the screen, and not the current one 5) expected result: a window size equal to the size of the CURRENT resolution of the screen

vvjcarter commented 11 years ago

I second the pull request, experiencing the same problem as reported in issue #53