Small issue and patch for the Panel

Joao Pedrosa joaopedrosa.news at gmail.com
Tue Oct 31 09:26:04 CET 2006


Hi,

Xubuntu's Xfce has a little issue with displaying the
menu of the items of a launcher in the right monitor
in a dual head system (mine ;-).

I decided to try to dig a solution on my own, and
thankfully the solution followed the same idea of the
WindowList plugin.

I created this little patch:

dewd at dewd-desktop:~/t_/test_downloads/xfce/xfce4-panel$ svn diff
plugins/launcher/launcher.c
Index: plugins/launcher/launcher.c
===================================================================
--- plugins/launcher/launcher.c (revisão 23567)
+++ plugins/launcher/launcher.c (cópia de trabalho)
@@ -803,6 +803,8 @@

     gdk_screen_get_monitor_geometry (screen, num, &geom);

+    gtk_menu_set_screen (menu, screen);
+
     if (*x > geom.x + geom.width - req.width)
         *x = geom.x + geom.width - req.width;
     if (*x < geom.x)


See the attach.

Thanks,
Joao
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.xfce.org/pipermail/xfce4-dev/attachments/20061031/d06daaff/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: small_patch.diff
Type: text/x-patch
Size: 446 bytes
Desc: not available
URL: <http://mail.xfce.org/pipermail/xfce4-dev/attachments/20061031/d06daaff/attachment.bin>


More information about the Xfce4-dev mailing list