gtk/gdk
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
..
directfb gdk: add gdk_device_get_n_keys() to access the sealed num_keys member 2010-11-24 20:15:29 +01:00
quartz gdk: add gdk_device_get_n_keys() to access the sealed num_keys member 2010-11-24 20:15:29 +01:00
tests Add git.mk to generate .gitignore files 2009-05-04 14:29:21 -04:00
win32 Handle emulated keyboard input that arrives as VK_PACKET 2011-02-20 01:33:00 +02:00
x11 Avoid spurious emissions of monitors-changed 2011-02-24 20:05:45 +01:00
abicheck.sh Don't include __bss_start, _edata and _end symbols in the abichecks 2010-05-30 02:26:32 -04:00
COPYING [ Merges from gtk-1-2 ] 1999-09-28 20:19:13 +00:00
gdk.c Miscellaneous string fixes 2010-08-29 19:05:26 +01:00
gdk.h gdk: Remove GTK_COMPILATION checks from headers 2011-01-03 19:07:07 +01:00
gdk.symbols Export gdk_x11_ functions only on X11 2010-12-27 11:30:07 +02:00
gdkapplaunchcontext.c [annotations] Add allow-none 2010-02-19 17:57:51 -02:00
gdkapplaunchcontext.h fix typo in the type name so the macro becomes usable. 2008-10-15 15:50:10 +00:00
gdkcairo.c Add gdk_cairo_set_source_window 2010-09-27 19:00:10 -04:00
gdkcairo.h Add gdk_cairo_set_source_window 2010-09-27 19:00:10 -04:00
gdkcolor.c Merge in Gdk-custom.c introspection annotations 2009-12-16 17:22:01 -02:00
gdkcolor.h Seal gdk 2010-05-27 16:25:54 +02:00
gdkconfig.h.win32 Define GDK_NATIVE_WINDOW_POINTER on 32-bit Windows, too. It just makes 2008-08-04 22:20:53 +00:00
gdkcursor.c [GI] Add missing (transfer) annotations 2011-01-26 12:49:08 +01:00
gdkcursor.h Add gdk_cursor_get_cursor_type 2010-07-25 12:32:38 +12:00
gdkdisplay.c gdk: Deprecate gdk_display_set_pointer_hooks() 2011-01-03 19:07:07 +01:00
gdkdisplay.h gdk: Deprecate gdk_display_set_pointer_hooks() 2011-01-03 19:07:07 +01:00
gdkdisplaymanager.c Annotate gdk_display_manager_list_displays return value 2010-07-12 12:28:48 -04:00
gdkdisplaymanager.h Revert name change 2008-07-01 22:57:50 +00:00
gdkdnd.c Deprecated gdk_drag_find_window and gdk_drag_get_protocol 2010-12-21 09:54:15 -05:00
gdkdnd.h Fix another typo 2010-12-21 18:06:54 -05:00
gdkdraw.c API: Add gdk_pixmap_get_size() 2010-11-18 17:45:14 +01:00
gdkdrawable.h gdk: Remove GTK_COMPILATION checks from headers 2011-01-03 19:07:07 +01:00
gdkenumtypes.c.template Use templates for glib-mkenums calls instead of complicated commandlines 2007-11-26 17:32:19 +00:00
gdkenumtypes.h.template do not hard code the prefix of the enum, use @ENUMPREFIX@ instead (you 2008-06-23 12:09:15 +00:00
gdkevents.c [gdkevents] Add annotations for GdkEvent getters. 2010-06-08 00:05:58 +02:00
gdkevents.h Deprecate gdk_event_get_graphics exposes 2009-09-09 09:00:15 -04:00
gdkfont.c [docs] Add missing "Deprecated: 2.x" to the api doc comments 2010-01-11 06:25:59 +01:00
gdkfont.h gdk: Remove GTK_COMPILATION checks from headers 2011-01-03 19:07:07 +01:00
gdkgc.c Deprecated all GdkGC functions 2010-08-07 22:08:21 +02:00
gdkgc.h Deprecated all GdkGC functions 2010-08-07 22:08:21 +02:00
gdkglobals.c Add support for enabling only native windows 2009-08-24 15:22:29 +02:00
gdki18n.h Revert name change 2008-07-01 22:57:50 +00:00
gdkimage.c Deprecate all of GdkImage 2010-08-07 22:17:43 +02:00
gdkimage.h Deprecate all of GdkImage 2010-08-07 22:17:43 +02:00
gdkinput.h gdk: add gdk_device_get_n_keys() to access the sealed num_keys member 2010-11-24 20:15:29 +01:00
gdkinternals.h win32: cummulated backport of xp theme fixes from master 2010-08-28 15:14:31 +02:00
gdkintl.h Revert name change 2008-07-01 22:57:50 +00:00
gdkkeynames.c Revert name change 2008-07-01 22:57:50 +00:00
gdkkeys.c Merge in Gdk-custom.c introspection annotations 2009-12-16 17:22:01 -02:00
gdkkeys.h Seal gdk 2010-05-27 16:25:54 +02:00
gdkkeysyms-compat.h gdk: Prefix keys with _KEY by default 2010-09-08 19:07:23 -04:00
gdkkeysyms-update.pl gdk: Prefix keys with _KEY by default 2010-09-08 19:07:23 -04:00
gdkkeysyms.h gdk: Prefix keys with _KEY by default 2010-09-08 19:07:23 -04:00
gdkkeyuni.c Revert name change 2008-07-01 22:57:50 +00:00
gdkmarshalers.list Add signals for offscreen window embedding 2009-06-08 19:39:06 +02:00
gdkmedialib.c Minor fix for GTK+ mediaLib code. 2009-04-29 18:52:32 -05:00
gdkmedialib.h Revert name change 2008-07-01 22:57:50 +00:00
gdkoffscreenwindow.c Revert "Deprecate the GdkRegion API" 2010-05-26 09:25:35 +02:00
gdkpango.c Revert "Deprecate the GdkRegion API" 2010-05-26 09:25:35 +02:00
gdkpango.h Revert name change 2008-07-01 22:57:50 +00:00
gdkpixbuf-drawable.c Make GTK+ build against an external gdk-pixbuf 2010-06-26 02:29:29 -04:00
gdkpixbuf-render.c Do not return values from a function returning void 2010-07-26 11:58:23 +02:00
gdkpixbuf.h Revert name change 2008-07-01 22:57:50 +00:00
gdkpixmap.c API: Add gdk_pixmap_get_size() 2010-11-18 17:45:14 +01:00
gdkpixmap.h API: Add gdk_pixmap_get_size() 2010-11-18 17:45:14 +01:00
gdkpoly-generic.h Merge no-flicker branch into HEAD 2000-03-28 01:24:44 +00:00
gdkpolyreg-generic.c Deprecate GdkRegion symbols that have no Cairo equivalent 2010-06-30 16:25:03 +02:00
gdkprivate.h Make public GDK_WINDOW_TYPE and GDK_WINDOW_DESTROYED use functions calls 2009-09-04 17:59:17 +02:00
gdkproperty.h Deprecate some gdk text conversion routines 2010-12-21 09:54:15 -05:00
gdkrectangle.c Annotate gdk_rectangle_intersect 2010-07-28 16:53:14 +02:00
gdkregion-generic.c gdk: Undeprecate gdk_region_xor() 2010-08-10 18:26:12 +02:00
gdkregion-generic.h Handle a borderline case correctly 2007-04-18 15:19:58 +00:00
gdkregion.h gdk: Undeprecate gdk_region_xor() 2010-08-10 18:26:12 +02:00
gdkrgb.c docs: Fix some docs in gdkrgb 2010-10-06 01:00:35 +02:00
gdkrgb.h gdk: Deprecate GdkRGB functions 2010-08-08 02:59:21 +02:00
gdkscreen.c [annotations] Add allow-none 2010-02-19 17:57:51 -02:00
gdkscreen.h Seal gdk 2010-05-27 16:25:54 +02:00
gdkselection.c [annotations] Add allow-none 2010-02-19 17:57:51 -02:00
gdkselection.h Fix the return type of gdk_selection_property_get 2009-09-02 22:50:05 -04:00
gdkspawn.h Deprecate gdk_spawn apis 2010-12-21 09:54:14 -05:00
gdktestutils.h gdk/gdkapplaunchcontext.h gdk/gdktestutils.h gtk/gtkmountoperation.h 2008-05-30 12:08:30 +00:00
gdktypes.h Revert "Implement GdkRegion in terms of cairo_region_t" 2010-05-26 09:25:55 +02:00
gdkvisual.c Add annotations 2010-09-17 09:47:47 -04:00
gdkvisual.h Seal gdk 2010-05-27 16:25:54 +02:00
gdkwindow.c Remove annotation that breaks the introspection build 2011-02-20 18:47:40 -05:00
gdkwindow.h gdk: Remove GTK_COMPILATION checks from headers 2011-01-03 19:07:07 +01:00
gdkwindowimpl.c Fix make check 2008-07-04 04:02:35 +00:00
gdkwindowimpl.h Add supports_native_bg to GdkWindowImpl 2009-11-05 12:52:12 +01:00
gen-keyname-table.pl Generate N_() calls for translatable key names. 2005-06-10 06:41:04 +00:00
keyname-table.h fix small typo. 2008-10-28 22:55:23 +00:00
keynames.txt Mark arrow keys as translatable 2006-12-21 05:11:00 +00:00
makeenums.pl Add GdkEventSetting event for notification of changes to system settings, 2001-04-02 23:33:47 +00:00
Makefile.am introspection: Only use 0.9.3 API 2010-09-20 10:00:30 -04:00
makefile.msc Update mscv/win32 build 2010-08-27 20:34:23 +02:00
makegdkalias.pl Make PLT-reduction work with gcc4, and don't include everything in 2005-03-16 03:17:27 +00:00
pltcheck.sh Commit a patch by Behdad to fix typos, omissions and other errors in the 2006-09-10 06:39:16 +00:00
testgdk.c Use G_STRLOC instead __LINE__ 2009-10-26 18:19:48 +01:00