[Pkg-xfce-devel] Bug#481085: xfce4-quicklauncher-plugin: ignores screen when run in multihead setup with several X screens
Package: xfce4-quicklauncher-plugin
Version: 1.9.4-1.1
Severity: normal
Tags: patch
The configuration, the about window and launched programs don't
respect the screen of the plugin and always launch on the primary
screen (i.e. :0.0 when they should run on :0.1 in an old style multihead
setup).
Attached is a patch which adds 3 lines to the sources which fixes the
problem.
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.24-1-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages xfce4-quicklauncher-plugin depends on:
ii libatk1.0-0 1.22.0-1 The ATK accessibility toolkit
ii libc6 2.7-10 GNU C Library: Shared libraries
ii libcairo2 1.6.4-1+b1 The Cairo 2D vector graphics libra
ii libglib2.0-0 2.16.3-2 The GLib library of C routines
ii libgtk2.0-0 2.12.9-3 The GTK+ graphical user interface
ii libpango1.0-0 1.20.2-2 Layout and rendering of internatio
ii libxfce4util4 4.4.2-2 Utility functions library for Xfce
ii libxfcegui4-4 4.4.2-4 Basic GUI C functions for Xfce4
ii xfce4-panel 4.4.2-4.2 The Xfce4 desktop environment pane
xfce4-quicklauncher-plugin recommends no packages.
-- no debconf information
-------------- next part --------------
--- panel-plugin/main.c.org 2008-05-13 09:29:29.000000000 -0600
+++ panel-plugin/main.c 2008-05-13 09:29:33.000000000 -0600
@@ -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));
xfce_panel_plugin_unblock_menu(plugin);
@@ -160,6 +161,7 @@
GtkWidget *about;
const gchar* authors[2] = {"Bountykiller <masse_nicolas at 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);
@@ -461,7 +463,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
Reply to: