From 059292a765300c6c3e3a89ffbebe0967a31b9766 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 27 Apr 2006 05:04:49 +0000 Subject: [PATCH] fix build without xfixes --- ChangeLog | 5 +++++ ChangeLog.pre-2-10 | 5 +++++ gdk/x11/gdkscreen-x11.c | 2 ++ 3 files changed, 12 insertions(+) diff --git a/ChangeLog b/ChangeLog index a164575957..6f23773064 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-04-27 Matthias Clasen + + * gdk/x11/gdkscreen-x11.c (_gdk_x11_screen_process_owner_change): + Use XFixes only if it is available. (#339839, Marko Anastasov) + 2006-04-26 Federico Mena Quintero * gtk/gtkdialog.c (gtk_dialog_close): Don't make this conditional diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index a164575957..6f23773064 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,8 @@ +2006-04-27 Matthias Clasen + + * gdk/x11/gdkscreen-x11.c (_gdk_x11_screen_process_owner_change): + Use XFixes only if it is available. (#339839, Marko Anastasov) + 2006-04-26 Federico Mena Quintero * gtk/gtkdialog.c (gtk_dialog_close): Don't make this conditional diff --git a/gdk/x11/gdkscreen-x11.c b/gdk/x11/gdkscreen-x11.c index 70e623a5a0..d33c90a58c 100644 --- a/gdk/x11/gdkscreen-x11.c +++ b/gdk/x11/gdkscreen-x11.c @@ -770,6 +770,7 @@ void _gdk_x11_screen_process_owner_change (GdkScreen *screen, XEvent *event) { +#ifdef HAVE_XFIXES XFixesSelectionNotifyEvent *selection_event = (XFixesSelectionNotifyEvent *)event; GdkScreenX11 *screen_x11 = GDK_SCREEN_X11 (screen); Atom xcm_selection_atom = gdk_x11_atom_to_xatom_for_display (screen_x11->display, @@ -786,6 +787,7 @@ _gdk_x11_screen_process_owner_change (GdkScreen *screen, g_signal_emit_by_name (screen, "composited_changed"); } } +#endif } /**