Skip to content
Snippets Groups Projects
Commit b72e7cc8 authored by Olivier Fourdan's avatar Olivier Fourdan
Browse files

Use focus pending with with apps that use WM_FLAG_TAKEFOCUS protocol too (Bug #2561)

(Old svn revision: 23812)
parent 18cb67f1
No related branches found
No related tags found
No related merge requests found
......@@ -533,6 +533,7 @@ clientSetFocus (ScreenInfo *screen_info, Client * c, Time timestamp, unsigned sh
}
if (FLAG_TEST(c->wm_flags, WM_FLAG_TAKEFOCUS))
{
pending_focus = c;
sendClientMessage (c->screen_info, c->window, WM_TAKE_FOCUS, timestamp);
}
}
......@@ -544,6 +545,8 @@ clientSetFocus (ScreenInfo *screen_info, Client * c, Time timestamp, unsigned sh
data[0] = data[1] = None;
client_focus = NULL;
pending_focus = NULL;
if (c2)
{
frameDraw (c2, FALSE);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment