do not grab server during manage

REVIEW: 125474
icc-effect-5.14.5
Thomas Lübking 2015-02-06 16:20:46 +01:00
parent 7a38b21f49
commit f3cfbacb1e
1 changed files with 0 additions and 5 deletions

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