[Xfce4-commits] <xfwm4:xfce-4.6> 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:54:01 CET 2010


Updating branch refs/heads/xfce-4.6
         to c6dc307f9850281d48772a1307c18d3a4c90519d (commit)
       from 25b6106d533655e85d1f144ecb0383a21f9d5dec (commit)

commit c6dc307f9850281d48772a1307c18d3a4c90519d
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 b6187b0..cbe2775 100644
--- a/src/netwm.c
+++ b/src/netwm.c
@@ -1379,7 +1379,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