aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-ui-utils.c
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2010-03-05 02:02:21 +0800
committerSjoerd Simons <sjoerd.simons@collabora.co.uk>2010-03-05 02:12:00 +0800
commit5275d797f7af1296fa9219394c4cf93de2a8d408 (patch)
tree4b4b47939ee6de446621cbedaa038ecedc2ec2da /libempathy-gtk/empathy-ui-utils.c
parentf79f134280bb47d7fd10b958ccf60ca10bd40757 (diff)
downloadgsoc2013-empathy-5275d797f7af1296fa9219394c4cf93de2a8d408.tar
gsoc2013-empathy-5275d797f7af1296fa9219394c4cf93de2a8d408.tar.gz
gsoc2013-empathy-5275d797f7af1296fa9219394c4cf93de2a8d408.tar.bz2
gsoc2013-empathy-5275d797f7af1296fa9219394c4cf93de2a8d408.tar.lz
gsoc2013-empathy-5275d797f7af1296fa9219394c4cf93de2a8d408.tar.xz
gsoc2013-empathy-5275d797f7af1296fa9219394c4cf93de2a8d408.tar.zst
gsoc2013-empathy-5275d797f7af1296fa9219394c4cf93de2a8d408.zip
Force windows to jump to the foreground if we present them
Diffstat (limited to 'libempathy-gtk/empathy-ui-utils.c')
-rw-r--r--libempathy-gtk/empathy-ui-utils.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/libempathy-gtk/empathy-ui-utils.c b/libempathy-gtk/empathy-ui-utils.c
index d6e9ffeef..807b6afaf 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);
}