Add server grab around initial window pickup loop.

Not really necessary but avoids server grabs in each AddToFamily().
This commit is contained in:
Kim Woelders 2013-11-23 08:20:52 +01:00
parent addfbbc75b
commit dcd1d429b8
1 changed files with 5 additions and 0 deletions

View File

@ -2245,6 +2245,8 @@ EwinsManage(void)
if (!xwins)
return;
EGrabServer();
for (i = 0; i < num; i++)
{
xwin = xwins[i];
@ -2264,6 +2266,9 @@ EwinsManage(void)
else
AddToFamily(NULL, xwin, &attr, 1);
}
EUngrabServer();
XFree(xwins);
}