2179
2179
/* FIXME: This is a hack to avoid performance regressions
2180
2180
* and must be removed in 0.9.6 */
2181
if (tv.tv_usec - priv->lastConfigureRequest.tv_usec > 30000)
2181
if (tv.tv_usec - priv->lastConfigureRequest.tv_usec > 300000)
2183
2183
compLogMessage ("core", CompLogLevelWarn, "failed to receive ConfigureNotify event from request at %i (now: %i)\n",
2184
2184
priv->lastConfigureRequest.tv_usec, tv.tv_usec);
3848
3848
* if serverPrev was recently restacked */
3849
3849
if (window->serverPrev)
3851
bool pendingRestacks = false;
3853
foreach (XWCValueMask &xwcvm, sibling->priv->pendingConfigures)
3855
if (xwcvm.second & (CWSibling | CWStackMode))
3857
pendingRestacks = true;
3862
if (!sibling && window->serverPrev)
3853
XWindowChanges lxwc;
3865
3854
unsigned int valueMask = CWStackMode;
3867
xwc.stack_mode = Below;
3856
lxwc.stack_mode = Below;
3869
3858
/* Below with no sibling puts the window at the bottom
3870
3859
* of the stack */
3871
XConfigureWindow (screen->dpy (), ROOTPARENT (window), valueMask, &xwc);
3860
XConfigureWindow (screen->dpy (), ROOTPARENT (window), valueMask, &lxwc);
3873
3862
if (serverFrame)
3874
priv->addPendingConfigure (xwc, CWStackMode);
3863
priv->addPendingConfigure (lxwc, CWStackMode);
3876
3865
/* Update the list of windows last sent to the server */
3877
3866
screen->unhookServerWindow (window);
3878
3867
screen->insertServerWindow (window, 0);
3880
else if (sibling->priv->id != window->serverPrev->priv->id ||
3883
mask |= CWSibling | CWStackMode;
3885
xwc->stack_mode = Above;
3886
xwc->sibling = ROOTPARENT (sibling);
3871
bool pendingRestacks = false;
3873
foreach (XWCValueMask &xwcvm, sibling->priv->pendingConfigures)
3875
if (xwcvm.second & (CWSibling | CWStackMode))
3877
pendingRestacks = true;
3882
if (sibling->priv->id != window->serverPrev->priv->id || pendingRestacks)
3884
mask |= CWSibling | CWStackMode;
3886
xwc->stack_mode = Above;
3887
xwc->sibling = ROOTPARENT (sibling);
3889
3891
else if (sibling)
6503
6505
if (priv->serverInput.left != i->left ||
6504
6506
priv->serverInput.right != i->right ||
6505
6507
priv->serverInput.top != i->top ||
6506
priv->serverInput.bottom != i->bottom)
6508
priv->serverInput.bottom != i->bottom ||
6509
priv->border.left != b->left ||
6510
priv->border.right != b->right ||
6511
priv->border.top != b->top ||
6512
priv->border.bottom != b->bottom)
6508
6514
unsigned long data[4];