Bug 544265 – GDK assumes XFIXES extension

2008-07-23  Matthias Clasen  <mclasen@redhat.com>

        Bug 544265 – GDK assumes XFIXES extension

        * gdk/x11/gdkcursor-x11.c (_gdk_x11_cursor_update_theme):
        Only call XFixes functions if the server has the extension.
        Reported by Ian Turner.

svn path=/trunk/; revision=20901
This commit is contained in:
Matthias Clasen 2008-07-24 03:38:08 +00:00 committed by Matthias Clasen
parent 1adf1e6ef1
commit 4c7d351053
2 changed files with 15 additions and 1 deletions

View File

@ -1,3 +1,11 @@
2008-07-23 Matthias Clasen <mclasen@redhat.com>
Bug 544265 GDK assumes XFIXES extension
* gdk/x11/gdkcursor-x11.c (_gdk_x11_cursor_update_theme):
Only call XFixes functions if the server has the extension.
Reported by Ian Turner.
2008-07-22 Matthias Clasen <mclasen@redhat.com>
* configure.in: Compare two content types, not content type

View File

@ -40,6 +40,7 @@
#include "gdkprivate-x11.h"
#include "gdkcursor.h"
#include "gdkdisplay-x11.h"
#include "gdkpixmap-x11.h"
#include "gdkx.h"
#include <gdk/gdkpixmap.h>
@ -401,9 +402,14 @@ _gdk_x11_cursor_update_theme (GdkCursor *cursor)
Display *xdisplay;
GdkCursorPrivate *private;
Cursor new_cursor = None;
GdkDisplayX11 *display_x11;
private = (GdkCursorPrivate *) cursor;
xdisplay = GDK_DISPLAY_XDISPLAY (private->display);
display_x11 = GDK_DISPLAY_X11 (private->display);
if (!display_x11->have_xfixes)
return;
if (private->serial == theme_serial)
return;