gtk2/gdk/x11
Alexander Larsson b0d0bf7f7d Avoid spurious emissions of monitors-changed
The monitor change detection code in _gdk_x11_screen_size_changed() and
process_monitors_change() goes to some length to make sure its only emitted
when there is an actual change to the data visible via the GdkScreen monitors
api.

However, commit 662e69ad added some code that always emits "monitors-changed"
in _gdk_x11_screen_size_changed when we have randr13 and get a ConfigureNotify
on the root window (even though we may already have emitted it in the
RRScreenChangesNotify event!).

As far as I can tell this is due to a comment in the bug referenced by the
commit (https://bugzilla.gnome.org/show_bug.cgi?id=601712#c4) where it says:

  This version of the patch changes GdkDisplay to emit "monitors-changed" when
  the primary monitor changes (see the change in _gdk_x11_screen_size_changed).

And, if you remove this part of the change the signal is not emitted when just
the primary is changed. However, this is not really the right approach. We
should just also check for if the primary changes in process_monitors_change()
to avoid spurious signal emissions.

https://bugzilla.gnome.org/show_bug.cgi?id=643216
(cherry picked from commit 0b0f110152)

Conflicts:

	gdk/x11/gdkscreen-x11.c
2011-02-24 20:05:45 +01:00
..
checksettings.c map "gtk-touchscreen-mode" to the "Gtk/TouchscreenMode" XSettings 2006-02-27 14:08:06 +00:00
gdkapplaunchcontext-x11.c Avoid delays in starting applications 2010-11-29 21:08:59 +01:00
gdkasync.c New approach for grab tracking code 2009-04-02 10:15:30 +02:00
gdkasync.h New approach for grab tracking code 2009-04-02 10:15:30 +02:00
gdkcolor-x11.c Add some missing introspection annotations 2010-02-22 23:47:24 -05:00
gdkcursor-x11.c Take cursor hotspot from pixbuf if available 2010-10-16 01:11:43 -04:00
gdkdisplay-x11.c [GI] Add missing (transfer) annotations 2011-01-26 12:49:08 +01:00
gdkdisplay-x11.h Make DND work better with shaped windows 2010-02-04 19:18:22 -05:00
gdkdnd-x11.c Fix the build without the Composite headers 2011-02-12 08:06:31 -05:00
gdkdrawable-x11.c x11: Query size on real drawable 2010-07-26 11:58:23 +02:00
gdkdrawable-x11.h Fix header inclusions for !srcdir builds 2010-10-16 16:53:44 -04:00
gdkevents-x11.c Deprecate gdk_net_wm_supports 2010-12-21 09:54:14 -05:00
gdkfont-x11.c Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 14:28:52 +00:00
gdkgc-x11.c x11: Deprecate GdkGC functions 2010-08-12 01:54:58 +02:00
gdkgeometry-x11.c Revert "Deprecate the GdkRegion API" 2010-05-26 09:25:35 +02:00
gdkglobals-x11.c Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 14:28:52 +00:00
gdkim-x11.c Fix warning: cast to gchar* 2009-10-30 04:04:28 +01:00
gdkimage-x11.c Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 14:28:52 +00:00
gdkinput-none.c Make disabled xinput work again 2009-05-29 16:45:06 +02:00
gdkinput-x11.c Merge in Gdk-custom.c introspection annotations 2009-12-16 17:22:01 -02:00
gdkinput-xfree.c Add a missing include 2009-11-27 20:59:42 -05:00
gdkinput.c gdk: add gdk_device_get_n_keys() to access the sealed num_keys member 2010-11-24 20:15:29 +01:00
gdkinputprivate.h Select for DeviceStateNotify 2009-09-30 09:21:11 +02:00
gdkkeys-x11.c Document that keymap functions will stop accepting NULL 2010-12-23 10:15:59 -05:00
gdkmain-x11.c Deprecate gdk_set_sm_client_id 2010-12-21 09:54:13 -05:00
gdkpixmap-x11.c Fix a documentation error 2009-08-29 20:23:07 -04:00
gdkpixmap-x11.h Cleanup. (#169648, Fabricio Barros Cabral) 2005-06-12 05:32:25 +00:00
gdkprivate-x11.h Fix header inclusions for !srcdir builds 2010-10-16 16:53:44 -04:00
gdkproperty-x11.c Ensure native windows in gdk_property_change 2009-12-18 18:43:32 -05:00
gdkscreen-x11.c Avoid spurious emissions of monitors-changed 2011-02-24 20:05:45 +01:00
gdkscreen-x11.h Add gdk_screen_get_primary_monitor(). This fixes bug #601712 2009-12-08 11:27:02 -06:00
gdkselection-x11.c Deprecate some gdk text conversion routines 2010-12-21 09:54:15 -05:00
gdksettings.c Expose gtk-auto-mnemonics as an Xsetting 2011-01-23 16:58:50 -05:00
gdkspawn-x11.c gdk_spawn* deprecation docs: Mention actual replacement functions. 2011-01-05 01:34:49 +01:00
gdktestutils-x11.c Bug 633291 - Handle Shift-keys in X11 gdk_test_simulate_key() 2011-02-13 12:34:19 +01:00
gdkvisual-x11.c [GI] Add missing (transfer) annotations 2011-01-26 12:49:08 +01:00
gdkwindow-x11.c Reinstate the implementation of gdk_window_foreign_new_for_display 2010-12-23 11:58:26 -05:00
gdkwindow-x11.h Move bitfield in GdkWindowImplX11 to make struct more compact 2009-04-02 10:15:29 +02:00
gdkx.h Fix a typo 2010-12-21 11:35:38 -05:00
gdkxftdefaults.c Make the initialization of screen_x11->xft_rgba more explicit. (#319627, 2005-10-25 18:11:57 +00:00
gdkxid.c Deprecate gdk_xid_table* functions 2010-12-21 09:54:15 -05:00
gxid_proto.h Initial revision 1997-11-24 22:37:52 +00:00
Makefile.am Make GTK+ build against an external gdk-pixbuf 2010-06-26 02:29:29 -04:00
MwmUtil.h Cleanup. (#169648, Fabricio Barros Cabral) 2005-06-12 05:32:25 +00:00
xsettings-client.c Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 14:28:52 +00:00
xsettings-client.h Change the XSettingsWatchFunc to return a Bool to indicate success. Update 2007-04-10 23:16:30 +00:00
xsettings-common.c Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 14:28:52 +00:00
xsettings-common.h Add some missing symbols. 2007-05-23 17:49:34 +00:00