File xfce4-quicklauncher-plugin-1.9.4-fix-multiscreen.patch of Package xfce4-panel-plugins

diff -ur xfce4-quicklauncher-plugin-1.9.4.orig/panel-plugin/main.c xfce4-quicklauncher-plugin-1.9.4/panel-plugin/main.c
--- xfce4-quicklauncher-plugin-1.9.4.orig/panel-plugin/main.c	2011-01-01 11:44:18.000000000 +0100
+++ xfce4-quicklauncher-plugin-1.9.4/panel-plugin/main.c	2011-01-01 11:47:16.000000000 +0100
@@ -148,6 +148,7 @@
 	t_qck_launcher_opt_dlg* dlg;
 	xfce_panel_plugin_block_menu(plugin);
 	dlg = create_qck_launcher_dlg();
+        gtk_window_set_screen (GTK_WINDOW (dlg->dialog), gtk_widget_get_screen (plugin));
 	qck_launcher_opt_dlg_set_quicklauncher(quicklauncher);
 	gtk_dialog_run(GTK_DIALOG(dlg->dialog));
 	quicklauncher_save(plugin, quicklauncher);
@@ -161,6 +162,7 @@
 	GtkWidget *about;
 	const gchar* authors[2] = {"Bountykiller <masse_nicolas@yahoo.fr>", NULL};
 	about = gtk_about_dialog_new();
+        gtk_window_set_screen (GTK_WINDOW (about), gtk_widget_get_screen (plugin));
 	gtk_about_dialog_set_name(GTK_ABOUT_DIALOG(about), _("Quicklauncher"));
 	gtk_about_dialog_set_logo(GTK_ABOUT_DIALOG(about), NULL);
 	gtk_about_dialog_set_authors(GTK_ABOUT_DIALOG(about), (const gchar**) authors);
@@ -462,7 +464,7 @@
 		if(launcher->quicklauncher->_last_zoomed_launcher == launcher)
 		{
 			g_return_val_if_fail(launcher->clicked_img, FALSE);
-			xfce_exec(launcher->command, FALSE, FALSE, NULL);
+			xfce_exec_on_screen(gtk_widget_get_screen (box), launcher->command, FALSE, FALSE, NULL);
 			gtk_image_set_from_pixbuf (GTK_IMAGE(launcher->image), launcher->def_img);
 		}
 		else
openSUSE Build Service is sponsored by