Go to file
Rui Matos 5a86286aba monitor-manager-xrandr: Set CRTC config even if it might be redundant
This optimization breaks our use of XRRScreenResources' timestamps to
detect hotplugs in case one of the outputs is disconnected and the
remaining ones don't need any mode, position or transform adjustments.

In that scenario, when applying the new configuration, we resize the X
screen but never call XRRSetCrtcConfig() and since XRRSetScreenSize()
doesn't take a timestamp and the X server doesn't update its last set
timestamp, when we next get a RRScreenChangeNotify and update
ourselves, XRRScreenResources.timestamp will still be smaller than
XRRScreenResources.configTimestamp which makes us think we're seeing a
new hotplug. We just don't enter an endless loop because the screen
size that we keep applying is always the same and the X server
short-circuits and stops sending us RRScreenChangeNotifys.

Always calling XRRSetCrtcConfig() ensures that the last set timestamp
will be bigger than configTimestamp in the next event and thus making
us trigger the monitors-changed signal properly.

Note that the X server already does basically the same checks that
we're removing here, so doing this shouldn't be a significant
efficiency loss. See

http://cgit.freedesktop.org/xorg/xserver/tree/randr/rrcrtc.c?h=server-1.16-branch#n539
2014-12-11 13:42:44 +01:00
data Add hidden -backward bindings to 50-mutter-navigation.xml 2014-08-17 19:29:43 +02:00
doc build: Fix gtk-doc build failure when native backend is disabled 2014-11-15 01:03:29 +08:00
po Updated Turkish translation 2014-12-10 22:22:41 +00:00
src monitor-manager-xrandr: Set CRTC config even if it might be redundant 2014-12-11 13:42:44 +01:00
tools Clean up the source tree 2014-03-18 20:37:35 -04:00
.gitignore Add missing file from test framework 2014-09-12 13:40:33 -04:00
autogen.sh configure.ac: Modernize autoconf/libtool dependencies and macro usage 2014-06-05 18:05:19 +02:00
configure.ac build: Require wayland-server >= 1.6.90 2014-12-10 09:53:46 +01:00
COPYING Updated obsolete FSF postal address in COPYING 2014-01-13 11:35:48 -05:00
Makefile.am build: Move data files to their dedicated subfolder 2014-06-05 10:50:15 +02:00
mutter.doap doap: add <programming-language> 2014-07-31 17:50:28 +02:00
NEWS Bump version to 3.15.2 2014-11-27 13:23:57 +00:00