Remove nonworking conditionals

Don't pretend that we care about XShape-less builds anymore.
See bug 584637.
This commit is contained in:
Matthias Clasen 2009-06-05 23:06:12 -04:00
parent 4b16b875db
commit c7a0a513f5
3 changed files with 12 additions and 30 deletions

View File

@ -1424,9 +1424,8 @@ if test "x$gdktarget" = "xx11"; then
# Check for shaped window extension # Check for shaped window extension
AC_CHECK_FUNC(XShapeCombineMask, AC_CHECK_FUNC(XShapeCombineMask, :,
AC_DEFINE(HAVE_SHAPE_EXT, 1, [AC_MSG_ERROR([Shape extension not found, check your development headers])])
[Define to 1 if the XShape extension is available]))
# X SYNC check # X SYNC check
gtk_save_CFLAGS="$CFLAGS" gtk_save_CFLAGS="$CFLAGS"

View File

@ -50,9 +50,7 @@
#include <X11/extensions/Xfixes.h> #include <X11/extensions/Xfixes.h>
#endif #endif
#ifdef HAVE_SHAPE_EXT
#include <X11/extensions/shape.h> #include <X11/extensions/shape.h>
#endif
#ifdef HAVE_XCOMPOSITE #ifdef HAVE_XCOMPOSITE
#include <X11/extensions/Xcomposite.h> #include <X11/extensions/Xcomposite.h>
@ -161,10 +159,8 @@ gdk_display_open (const gchar *display_name)
XClassHint *class_hint; XClassHint *class_hint;
gulong pid; gulong pid;
gint i; gint i;
#if defined(HAVE_XFIXES) || defined(HAVE_SHAPE_EXT)
gint ignore; gint ignore;
gint maj, min; gint maj, min;
#endif
xdisplay = XOpenDisplay (display_name); xdisplay = XOpenDisplay (display_name);
if (!xdisplay) if (!xdisplay)
@ -282,7 +278,7 @@ gdk_display_open (const gchar *display_name)
display_x11->have_shapes = FALSE; display_x11->have_shapes = FALSE;
display_x11->have_input_shapes = FALSE; display_x11->have_input_shapes = FALSE;
#ifdef HAVE_SHAPE_EXT
if (XShapeQueryExtension (GDK_DISPLAY_XDISPLAY (display), &ignore, &ignore)) if (XShapeQueryExtension (GDK_DISPLAY_XDISPLAY (display), &ignore, &ignore))
{ {
display_x11->have_shapes = TRUE; display_x11->have_shapes = TRUE;
@ -291,7 +287,6 @@ gdk_display_open (const gchar *display_name)
display_x11->have_input_shapes = (maj == 1 && min >= 1); display_x11->have_input_shapes = (maj == 1 && min >= 1);
#endif #endif
} }
#endif
display_x11->trusted_client = TRUE; display_x11->trusted_client = TRUE;
{ {

View File

@ -57,9 +57,7 @@
#include <string.h> #include <string.h>
#ifdef HAVE_SHAPE_EXT
#include <X11/extensions/shape.h> #include <X11/extensions/shape.h>
#endif
#ifdef HAVE_XCOMPOSITE #ifdef HAVE_XCOMPOSITE
#include <X11/extensions/Xcomposite.h> #include <X11/extensions/Xcomposite.h>
@ -2285,7 +2283,7 @@ gdk_window_set_modal_hint (GdkWindow *window,
if (GDK_WINDOW_IS_MAPPED (window)) if (GDK_WINDOW_IS_MAPPED (window))
gdk_wmspec_change_state (modal, window, gdk_wmspec_change_state (modal, window,
gdk_atom_intern_static_string ("_NET_WM_STATE_MODAL"), gdk_atom_intern_static_string ("_NET_WM_STATE_MODAL"),
NULL); GDK_NONE);
} }
/** /**
@ -2319,8 +2317,8 @@ gdk_window_set_skip_taskbar_hint (GdkWindow *window,
if (GDK_WINDOW_IS_MAPPED (window)) if (GDK_WINDOW_IS_MAPPED (window))
gdk_wmspec_change_state (skips_taskbar, window, gdk_wmspec_change_state (skips_taskbar, window,
gdk_atom_intern_static_string ("_NET_WM_STATE_SKIP_TASKBAR"), gdk_atom_intern_static_string ("_NET_WM_STATE_SKIP_TASKBAR"),
NULL); GDK_NONE);
} }
/** /**
@ -2357,7 +2355,7 @@ gdk_window_set_skip_pager_hint (GdkWindow *window,
if (GDK_WINDOW_IS_MAPPED (window)) if (GDK_WINDOW_IS_MAPPED (window))
gdk_wmspec_change_state (skips_pager, window, gdk_wmspec_change_state (skips_pager, window,
gdk_atom_intern_static_string ("_NET_WM_STATE_SKIP_PAGER"), gdk_atom_intern_static_string ("_NET_WM_STATE_SKIP_PAGER"),
NULL); GDK_NONE);
} }
/** /**
@ -3641,8 +3639,7 @@ do_shape_combine_mask (GdkWindow *window,
GdkWindowObject *private = (GdkWindowObject *)window; GdkWindowObject *private = (GdkWindowObject *)window;
Pixmap pixmap; Pixmap pixmap;
gint xoffset, yoffset; gint xoffset, yoffset;
#ifdef HAVE_SHAPE_EXT
if (GDK_WINDOW_DESTROYED (window)) if (GDK_WINDOW_DESTROYED (window))
return; return;
@ -3680,7 +3677,6 @@ do_shape_combine_mask (GdkWindow *window,
pixmap, pixmap,
ShapeSet); ShapeSet);
} }
#endif /* HAVE_SHAPE_EXT */
} }
static void static void
@ -3739,8 +3735,7 @@ do_shape_combine_region (GdkWindow *window,
{ {
GdkWindowObject *private = (GdkWindowObject *)window; GdkWindowObject *private = (GdkWindowObject *)window;
gint xoffset, yoffset; gint xoffset, yoffset;
#ifdef HAVE_SHAPE_EXT
if (GDK_WINDOW_DESTROYED (window)) if (GDK_WINDOW_DESTROYED (window))
return; return;
@ -3782,7 +3777,6 @@ do_shape_combine_region (GdkWindow *window,
g_free (xrects); g_free (xrects);
} }
#endif /* HAVE_SHAPE_EXT */
} }
static void static void
@ -4353,7 +4347,7 @@ gdk_window_stick (GdkWindow *window)
/* Request stick during viewport scroll */ /* Request stick during viewport scroll */
gdk_wmspec_change_state (TRUE, window, gdk_wmspec_change_state (TRUE, window,
gdk_atom_intern_static_string ("_NET_WM_STATE_STICKY"), gdk_atom_intern_static_string ("_NET_WM_STATE_STICKY"),
NULL); GDK_NONE);
/* Request desktop 0xFFFFFFFF */ /* Request desktop 0xFFFFFFFF */
memset (&xclient, 0, sizeof (xclient)); memset (&xclient, 0, sizeof (xclient));
@ -4404,7 +4398,7 @@ gdk_window_unstick (GdkWindow *window)
/* Request unstick from viewport */ /* Request unstick from viewport */
gdk_wmspec_change_state (FALSE, window, gdk_wmspec_change_state (FALSE, window,
gdk_atom_intern_static_string ("_NET_WM_STATE_STICKY"), gdk_atom_intern_static_string ("_NET_WM_STATE_STICKY"),
NULL); GDK_NONE);
move_to_current_desktop (window); move_to_current_desktop (window);
} }
@ -4904,8 +4898,6 @@ gdk_window_set_functions (GdkWindow *window,
gdk_window_set_mwm_hints (window, &hints); gdk_window_set_mwm_hints (window, &hints);
} }
#ifdef HAVE_SHAPE_EXT
/* /*
* propagate the shapes from all child windows of a GDK window to the parent * propagate the shapes from all child windows of a GDK window to the parent
* window. Shamelessly ripped from Enlightenment's code * window. Shamelessly ripped from Enlightenment's code
@ -5219,13 +5211,10 @@ gdk_propagate_shapes (Display *disp,
g_free (spans); g_free (spans);
} }
#endif /* HAVE_SHAPE_EXT */
static inline void static inline void
do_child_shapes (GdkWindow *window, do_child_shapes (GdkWindow *window,
gboolean merge) gboolean merge)
{ {
#ifdef HAVE_SHAPE_EXT
if (!GDK_WINDOW_DESTROYED (window) && if (!GDK_WINDOW_DESTROYED (window) &&
gdk_display_supports_shapes (GDK_WINDOW_DISPLAY (window))) gdk_display_supports_shapes (GDK_WINDOW_DISPLAY (window)))
{ {
@ -5234,7 +5223,6 @@ do_child_shapes (GdkWindow *window,
merge, merge,
ShapeBounding); ShapeBounding);
} }
#endif
} }
static void static void
@ -5253,7 +5241,7 @@ static inline void
do_child_input_shapes (GdkWindow *window, do_child_input_shapes (GdkWindow *window,
gboolean merge) gboolean merge)
{ {
#if defined(HAVE_SHAPE_EXT) && defined(ShapeInput) #if defined(ShapeInput)
if (!GDK_WINDOW_DESTROYED (window) && if (!GDK_WINDOW_DESTROYED (window) &&
gdk_display_supports_shapes (GDK_WINDOW_DISPLAY (window))) gdk_display_supports_shapes (GDK_WINDOW_DISPLAY (window)))
{ {