libxfce4panel could position panel plugin menus
Diego Ongaro
ongardie at gmail.com
Fri Sep 28 01:40:09 CEST 2007
On 9/25/07, Diego Ongaro <ongardie at gmail.com> wrote:
> On 9/25/07, Jasper Huijsmans <jasper at xfce.org> wrote:
> > 2007/9/24, Diego Ongaro <ongardie at gmail.com>:
> > > I was able to fairly easily create a wrapper around gtk_menu_popup()
> > > and get the launcher and window list plugins to use that.
> > >
> > > [snip]
> > >
> > > (2) Let libxfce4panel *guess* which way the menu will open based on
> > > the panel's position on the screen. It'll always get it right for
> > > fixed position panels, and it'll get it right most of the time for
> > > floating panels (it might miss those that float near, but not at, the
> > > bottom or right of the screen). Then, when it opens a menu, it will
> > > report the actual direction the menu opened, and the plugin can adjust
> > > the arrow's direction accordingly. This "cache" could even be saved in
> > > the rc file.
> >
> > This sounds perfectly acceptable to me. Not many downsides and it
> > works correctly in most use cases.
> >
>
Ok, so I implemented (2) above (minus the cache concept, as that
seemed unnecessary). I also fulfilled Alexandre's request.
Patches to libxfce4panel, the launcher plugin, and the windowlist
plugin are attached to bug #3576.
http://bugzilla.xfce.org/show_bug.cgi?id=3576
Let's keep comments on the patches in the bug report and use this
thread for any further discussion.
-Diego
More information about the Xfce4-dev
mailing list