Add RandR 1.2 support
Thu Dec 13 13:14:50 2007 Søren Sandmann <sandmann@redhat.com> * Add RandR 1.2 support - New monitors_changed signal - New API to get width/height of monitors, and the name of the plug svn path=/trunk/; revision=19173
This commit is contained in:
committed by
Søren Sandmann Pedersen
parent
935d9a6574
commit
053cbe6daf
@ -58,6 +58,10 @@
|
||||
#include <X11/extensions/Xfixes.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_RANDR
|
||||
#include <X11/extensions/Xrandr.h>
|
||||
#endif
|
||||
|
||||
#include <X11/Xatom.h>
|
||||
|
||||
typedef struct _GdkIOClosure GdkIOClosure;
|
||||
@ -2102,6 +2106,16 @@ gdk_event_translate (GdkDisplay *display,
|
||||
}
|
||||
else
|
||||
#endif
|
||||
#ifdef HAVE_RANDR
|
||||
if (xevent->type - display_x11->xrandr_event_base == RRNotify)
|
||||
{
|
||||
XRRNotifyEvent *notify = (XRRNotifyEvent *)xevent;
|
||||
|
||||
if (screen)
|
||||
_gdk_x11_screen_process_monitors_change (screen);
|
||||
}
|
||||
else
|
||||
#endif
|
||||
#if defined(HAVE_XCOMPOSITE) && defined (HAVE_XDAMAGE) && defined (HAVE_XFIXES)
|
||||
if (display_x11->have_xdamage && window_private && window_private->composited &&
|
||||
xevent->type == display_x11->xdamage_event_base + XDamageNotify &&
|
||||
|
||||
Reference in New Issue
Block a user