[empathy] Force windows to jump to the foreground if we present them



commit 5275d797f7af1296fa9219394c4cf93de2a8d408
Author: Sjoerd Simons <sjoerd simons collabora co uk>
Date:   Thu Mar 4 18:02:21 2010 +0000

    Force windows to jump to the foreground if we present them

 libempathy-gtk/empathy-ui-utils.c |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/libempathy-gtk/empathy-ui-utils.c b/libempathy-gtk/empathy-ui-utils.c
index d6e9ffe..807b6af 100644
--- a/libempathy-gtk/empathy-ui-utils.c
+++ b/libempathy-gtk/empathy-ui-utils.c
@@ -1373,7 +1373,8 @@ empathy_window_iconify (GtkWindow *window, GtkStatusIcon *status_icon)
 
 	XChangeProperty (dpy,
 			 GDK_WINDOW_XID (gdk_window),
-			 gdk_x11_get_xatom_by_name_for_display (gdk_drawable_get_display (gdk_window),
+			 gdk_x11_get_xatom_by_name_for_display (
+				gdk_drawable_get_display (gdk_window),
 			 "_NET_WM_ICON_GEOMETRY"),
 			 XA_CARDINAL, 32, PropModeReplace,
 			 (guchar *)&data, 4);
@@ -1387,7 +1388,6 @@ void
 empathy_window_present (GtkWindow *window,
 			gboolean   steal_focus)
 {
-	guint32 timestamp;
 	GdkWindow *gdk_window;
 
 	g_return_if_fail (GTK_IS_WINDOW (window));
@@ -1410,8 +1410,7 @@ empathy_window_present (GtkWindow *window,
 			gtk_widget_hide (GTK_WIDGET (window));
 	}
 
-	timestamp = gtk_get_current_event_time ();
-	gtk_window_present_with_time (window, timestamp);
+	gtk_window_present_with_time (window, G_MAXINT32);
 	gtk_window_set_skip_taskbar_hint (window, FALSE);
 	gtk_window_deiconify (window);
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]