[Xfce4-commits] <xfwm4:master> Fix panel plugins such as verve not receiving focus in focus follow mouse mode (bug #6617).
Olivier Fourdan
noreply at xfce.org
Fri Sep 9 12:32:01 CEST 2011
Updating branch refs/heads/master
to 3f76f971e61fa781c1eb2c43b0411c4148ec4275 (commit)
from d89fc9d0718fb9496c9b866cc05d62d65d604467 (commit)
commit 3f76f971e61fa781c1eb2c43b0411c4148ec4275
Author: Olivier Fourdan <fourdan at xfce.org>
Date: Fri Sep 9 12:25:36 2011 +0200
Fix panel plugins such as verve not receiving focus in focus follow mouse mode (bug #6617).
src/client.c | 9 +++------
src/client.h | 3 +--
src/netwm.c | 4 ++--
3 files changed, 6 insertions(+), 10 deletions(-)
diff --git a/src/client.c b/src/client.c
index 6fe0715..68fcf75 100644
--- a/src/client.c
+++ b/src/client.c
@@ -883,7 +883,7 @@ clientMoveResizeWindow (Client * c, XWindowChanges * wc, unsigned long mask)
}
else
{
- clientActivate (c, getXServerTime (display_info), FALSE);
+ clientActivate (c, getXServerTime (display_info));
}
}
}
@@ -2569,7 +2569,7 @@ clientToggleShowDesktop (ScreenInfo *screen_info)
}
void
-clientActivate (Client * c, guint32 timestamp, gboolean source_is_application)
+clientActivate (Client * c, guint32 timestamp)
{
ScreenInfo *screen_info;
Client *focused;
@@ -2607,10 +2607,7 @@ clientActivate (Client * c, guint32 timestamp, gboolean source_is_application)
}
clientRaise (sibling, None);
clientShow (sibling, TRUE);
- if (source_is_application || screen_info->params->click_to_focus)
- {
- clientSetFocus (screen_info, c, timestamp, NO_FOCUS_FLAG);
- }
+ clientSetFocus (screen_info, c, timestamp, NO_FOCUS_FLAG);
clientSetLastRaise (c);
}
else
diff --git a/src/client.h b/src/client.h
index 10137f7..6b501a6 100644
--- a/src/client.h
+++ b/src/client.h
@@ -392,8 +392,7 @@ void clientWithdrawAll (Client *,
void clientClearAllShowDesktop (ScreenInfo *);
void clientToggleShowDesktop (ScreenInfo *);
void clientActivate (Client *,
- guint32,
- gboolean);
+ guint32);
void clientClose (Client *);
void clientKill (Client *);
void clientTerminate (Client *);
diff --git a/src/netwm.c b/src/netwm.c
index fcd6123..f95567c 100644
--- a/src/netwm.c
+++ b/src/netwm.c
@@ -1401,13 +1401,13 @@ clientHandleNetActiveWindow (Client *c, guint32 timestamp, gboolean source_is_ap
}
else
{
- clientActivate (c, ev_time, source_is_application);
+ clientActivate (c, ev_time);
}
}
else
{
/* The request is either from a pager or an older client, use the most accurate timestamp */
- clientActivate (c, getXServerTime (display_info), source_is_application);
+ clientActivate (c, getXServerTime (display_info));
}
}
More information about the Xfce4-commits
mailing list