reliable-warping.diff

More reliable warping of Sylpheed to the current workspace - Nicola Fontana, 04/21/2013 01:44 AM

Download (952 Bytes)

View differences:

src/gtkutils.c (copia locale)
961 961
		gdk_window_move(window->window, new_x, new_y);
962 962

  
963 963
	gtk_window_set_skip_taskbar_hint(GTK_WINDOW(window), FALSE);
964

  
965
#ifdef G_OS_WIN32
964 966
	gtk_window_present(GTK_WINDOW(window));
965
#ifdef G_OS_WIN32
966 967
	/* ensure that the window is displayed at the top */
967 968
	gdk_window_show(window->window);
969
#else
970
	/* Hiding and deiconifying a window allows warping Sylpheed
971
	 * to the current workspace on some window manager, most
972
	 * notably Metacity and OpenBox. For details on why a simple
973
	 * call to gtk_window_present() fails check this (looong) bug:
974
	 * http://bugzilla.gnome.org/show_bug.cgi?id=482354
975
	 */
976
	if (GTK_WIDGET_VISIBLE(window)) {
977
		gtk_widget_hide(window);
978
	}
979
	gtk_window_deiconify(GTK_WINDOW(window));
980
	gtk_window_present(GTK_WINDOW(window));
968 981
#endif
969 982
}
970 983