gtk2/gdk/x11
Jan Alexander Steffens (heftig) cb53562659 gdkscreen-x11: Fix screen and monitor size calculation
The monitors are already in scaled pixels, so scaling again when retrieving
the screen size is wrong.

With GDK_SCALE unset, the initial monitor sizes are unscaled, and when the
xsettings client sets a scale > 1, the monitor sizes should be updated.

The end result is that the monitor sizes start out wrong, and get
corrected on the first xrandr event, while the screen size starts out
right and becomes wrong after the event.

This patch fixes Firefox misplacing menus and popovers when the xrandr
configuration changes while it is running.

Fix for the X11 side of

https://bugzilla.gnome.org/show_bug.cgi?id=772202
2016-11-10 15:34:39 -05:00
..
gdkapplaunchcontext-x11.c Deprecate more to-be-removed screen apis 2016-10-20 13:44:23 -04:00
gdkasync.c
gdkasync.h
gdkcursor-x11.c Deprecate to-be-removed screen API 2016-10-20 12:06:42 -04:00
gdkdevice-core-x11.c Add and use GDK_CHECK_DEBUG macro 2016-02-28 21:40:30 -05:00
gdkdevice-xi2.c Add and use GDK_CHECK_DEBUG macro 2016-02-28 21:40:30 -05:00
gdkdevicemanager-core-x11.c Make gdk_event_get_pointer_emulated public 2016-05-10 15:16:45 -04:00
gdkdevicemanager-x11.c x11: Don't use g_print for debug output 2016-02-28 21:40:24 -05:00
gdkdevicemanager-xi2.c x11: Fix a trap mixup 2016-08-29 15:51:05 -04:00
gdkdevicemanagerprivate-core.h
gdkdisplay-x11.c x11: Trap possible X error 2016-05-10 21:29:10 -04:00
gdkdisplay-x11.h x11: Port to new monitor api 2016-04-27 23:18:16 -04:00
gdkdisplaymanager-x11.c
gdkdnd-x11.c Deprecate the gdk_window_set_background* functions 2016-10-20 14:51:31 -04:00
gdkeventsource.c x11: drop a useless list 2016-05-01 13:26:35 -04:00
gdkeventsource.h
gdkeventtranslator.c
gdkeventtranslator.h
gdkgeometry-x11.c
gdkglcontext-x11.c gl: Use a uniform to flip R and B colors on GLES 2016-04-25 14:33:36 +01:00
gdkglcontext-x11.h
gdkkeys-x11.c
gdkmain-x11.c Deprecate more to-be-removed screen apis 2016-10-20 13:44:23 -04:00
gdkmonitor-x11.c x11: Port to new monitor api 2016-04-27 23:18:16 -04:00
gdkmonitor-x11.h x11: Port to new monitor api 2016-04-27 23:18:16 -04:00
gdkprivate-x11.h gdk: Allow passing the start coordinates in drag_begin 2015-12-13 10:39:43 -05:00
gdkproperty-x11.c
gdkscreen-x11.c gdkscreen-x11: Fix screen and monitor size calculation 2016-11-10 15:34:39 -05:00
gdkscreen-x11.h Deprecate more to-be-removed screen apis 2016-10-20 13:44:23 -04:00
gdkselection-x11.c x11: Use g_error_matches() 2016-03-20 05:43:02 +01:00
gdksettings.c gdk: Add an X setting for gtk-keynav-use-caret 2016-03-04 22:44:29 -05:00
gdktestutils-x11.c
gdkvisual-x11.c Add and use GDK_CHECK_DEBUG macro 2016-02-28 21:40:30 -05:00
gdkwindow-x11.c Avoid deprecation warnings 2016-11-07 11:24:43 -05:00
gdkwindow-x11.h x11: Fix damage tracking hack 2016-01-08 13:44:36 -05:00
gdkx11applaunchcontext.h
gdkx11cursor.h
gdkx11device-core.h
gdkx11device-xi2.h
gdkx11device.h
gdkx11devicemanager-core.h
gdkx11devicemanager-xi2.h
gdkx11devicemanager-xi.h
gdkx11devicemanager.h
gdkx11display.h
gdkx11displaymanager.h
gdkx11dnd.h
gdkx11glcontext.h
gdkx11keys.h
gdkx11monitor.h x11: Port to new monitor api 2016-04-27 23:18:16 -04:00
gdkx11property.h
gdkx11screen.h
gdkx11selection.h
gdkx11utils.h
gdkx11visual.h
gdkx11window.h
gdkx-autocleanups.h
gdkx.h x11: Port to new monitor api 2016-04-27 23:18:16 -04:00
gdkxftdefaults.c
gdkxid.c
Makefile.am Opt in to structured logging 2016-07-22 23:13:20 -04:00
MwmUtil.h
xsettings-client.c x11: Don't use g_print for debug output 2016-02-28 21:40:24 -05:00
xsettings-client.h