[Xfce4-commits] <xfwm4:master> Fix bug #6649, panel won't focus the verve plugin in focus follow mode (this seems like a bug in the plugin / panel that do no use the new format for NET_ACTIVE_WINDOW, but xfwm4 has a workaround for that now)

Olivier Fourdan noreply at xfce.org
Fri Dec 3 18:38:01 CET 2010


Updating branch refs/heads/master
         to 92c058c1f11f91716fd6374a195097968b3bd01e (commit)
       from 8f91562fd3e90b8fc417b76b2b7f86dfecbdb038 (commit)

commit 92c058c1f11f91716fd6374a195097968b3bd01e
Author: Olivier Fourdan <fourdan at xfce.org>
Date:   Fri Dec 3 18:35:31 2010 +0100

    Fix bug #6649, panel won't focus the verve plugin in focus follow mode (this seems like a bug in the plugin / panel that do no use the new format for NET_ACTIVE_WINDOW, but xfwm4 has a workaround for that now)

 src/netwm.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/src/netwm.c b/src/netwm.c
index 0a42f02..8d6bad0 100644
--- a/src/netwm.c
+++ b/src/netwm.c
@@ -1380,7 +1380,11 @@ clientHandleNetActiveWindow (Client *c, guint32 timestamp, gboolean source_is_ap
     screen_info = c->screen_info;
     display_info = screen_info->display_info;
     ev_time = myDisplayGetTime (display_info, timestamp);
-
+    if (!source_is_application && (timestamp == 0))
+    {
+         TRACE ("Client \"%s\" (0x%lx) sent a NET_ACTIVE_WINDOW message with a timestamp of 0", c->name, c->window);
+         source_is_application = TRUE;
+    }
     if (source_is_application)
     {
         current_time = myDisplayGetLastUserTime (display_info);



More information about the Xfce4-commits mailing list