only do sloppy focus/raise if the client is not already focused
Dana Jansens danakj@orodu.net
1 files changed,
5 insertions(+),
3 deletions(-)
jump to
M
openbox/event.c
→
openbox/event.c
@@ -1259,9 +1259,11 @@ static gboolean focus_delay_func(gpointer data)
{ ObClient *c = data; - client_focus(c); - if (config_focus_raise) - client_raise(c); + if (focus_client != c) { + client_focus(c); + if (config_focus_raise) + client_raise(c); + } return FALSE; /* no repeat */ }