summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorOlivier Fourdan <fourdan@xfce.org>2010-12-03 18:35:31 +0100
committerOlivier Fourdan <fourdan@xfce.org>2010-12-03 18:35:31 +0100
commit92c058c1f11f91716fd6374a195097968b3bd01e (patch)
tree6f0864755198a606b2e8ab3099b9d055fdbe8655 /src
parent8f91562fd3e90b8fc417b76b2b7f86dfecbdb038 (diff)
downloadxfwm4-92c058c1f11f91716fd6374a195097968b3bd01e.tar.gz
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)
Diffstat (limited to 'src')
-rw-r--r--src/netwm.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/netwm.c b/src/netwm.c
index 0a42f02ef..8d6bad0cc 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);