do not grab server during manage

REVIEW: 125474
This commit is contained in:
Thomas Lübking 2015-02-06 16:20:46 +01:00
parent 7a38b21f49
commit f3cfbacb1e

View file

@ -50,12 +50,9 @@ bool Client::manage(xcb_window_t w, bool isMapped)
{
StackingUpdatesBlocker stacking_blocker(workspace());
grabXServer();
Xcb::WindowAttributes attr(w);
Xcb::WindowGeometry windowGeometry(w);
if (attr.isNull() || windowGeometry.isNull()) {
ungrabXServer();
return false;
}
@ -641,8 +638,6 @@ bool Client::manage(xcb_window_t w, bool isMapped)
delete session;
ungrabXServer();
client_rules.discardTemporary();
applyWindowRules(); // Just in case
RuleBook::self()->discardUsed(this, false); // Remove ApplyNow rules