Correct screen size detection
Created by: kreijack
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:
- compile xinput for X11 ( autogen.sh --with-gui=x11)
- change the resolution to a not default one (like xrandr -s 640x480)
- start xinput_calibrator
- the result is a window size equal to the size of the DEFAULT resolution of the screen, and not the current one
- expected result: a window size equal to the size of the CURRENT resolution of the screen