]> Pileus Git - ~andy/gtk/commit
gdk/x11: don't select RANDR events if the extension is missing
authorJulien Cristau <jcristau@debian.org>
Thu, 23 Dec 2010 12:50:13 +0000 (13:50 +0100)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 3 Jan 2011 17:13:30 +0000 (12:13 -0500)
commitd211c8af6bab2f99aeebb83707d29649f0108364
tree74dde72db50bd4a62734a15b45881fb96b070b35
parent317f8baf6037a49553b6774946c1e35e8f54a5df
gdk/x11: don't select RANDR events if the extension is missing

Prevents an Xlib warning on Xnest, or Xorg with xinerama, or other
non-RANDR-capable xserver.  Reintroduce a have_randr12 field in
GdkDisplayX11 to avoid having to call XRRQuery{Extension,Version} twice,
and don't select randr 1.2 events if that's false.

https://bugzilla.gnome.org/show_bug.cgi?id=634711

Signed-off-by: Julien Cristau <jcristau@debian.org>
gdk/x11/gdkdisplay-x11.c
gdk/x11/gdkdisplay-x11.h
gdk/x11/gdkscreen-x11.c