GNOME Bugzilla – Bug 161737
Needs to send a _NET_ACTIVE_WINDOW message when clicked on
Last modified: 2005-01-07 19:20:10 UTC
See bug 161735 for more details; basically Metacity won't be focusing the panel on click unless it receives a _NET_ACTIVE_WINDOW message for the panel. So, in order for the dictionary applet to work, it needs to send such a message.
And how can the applet do that exactly ? Is there an API already in place ?
It's not possible for the applet to do this because it doesn't currently know the GDK_WINDOW_XID of the panel that contains it. So bug 161735 must be fixed first (I already marked it as a dependency...). Once you have that, you can call gdk_window_focus(gdk_window_id, timestamp) in the appropriate button press event.
Created attachment 35590 [details] [review] Request focus when clicked on This patch fixes the problem, though it depends on the patch in bug 161735 being applied first (and thus being accepted first)...
Patch in bug 161735 has been committed; is it okay to commit this patch now?
By all means, go ahead ! :)
committed. :)
Ooops, as Mark pointed out, I should have updated configure.in to depend on the latest libpanel-applet. Okay if I commit the following change? Index: configure.in =================================================================== RCS file: /cvs/gnome/gnome-utils/configure.in,v retrieving revision 1.369 diff -p -u -r1.369 configure.in --- configure.in 21 Dec 2004 14:34:38 -0000 1.369 +++ configure.in 7 Jan 2005 18:57:01 -0000 @@ -31,7 +31,7 @@ LIBGNOMEUI_REQUIRED=2.5.0 LIBGLADE_REQUIRED=2.3.0 LIBBONOBOUI_REQUIRED=2.1.0 GNOMEVFS_REQUIRED=2.8.4 -LIBPANEL_APPLET_REQUIRED=2.8.0 +LIBPANEL_APPLET_REQUIRED=2.9.4 LIBGNOMEPRINT_REQUIRED=2.8.0 LIBGNOMEPRINTUI_REQUIRED=2.8.0
Be my guest ;-)
ok, done. Thanks.