Skip to content

Commit

Permalink
Revert "grid: fix left or right tiled windows rendering oversize and …
Browse files Browse the repository at this point in the history
…over edges"

This reverts commit e3034b7.
  • Loading branch information
lukefromdc committed Mar 8, 2018
1 parent 80096c9 commit 85569f4
Showing 1 changed file with 5 additions and 16 deletions.
21 changes: 5 additions & 16 deletions src/grid/grid.c
Original file line number Diff line number Diff line change
Expand Up @@ -342,22 +342,11 @@ gridCommonWindow (CompWindow *cw,
constrainSize (cw, &gs->desiredSlot, &gs->desiredRect);
DEBUG_RECT (gs->desiredRect);
}
/*tiled left or right: this worked without any changes here */
/*These are a special case with CSD apps due to GTK behavior */
if (where == GridLeft || where == GridRight){
xwc.x = gs->desiredRect.x;
xwc.y = gs->desiredRect.y;
xwc.width = gs->desiredRect.width;
xwc.height = gs->desiredRect.height;
}
/*Quarter-tiled, top-tiled, or bottom tiled */
/*FIXME: in the top and bottom tiled cases width set here is NOT applied */
else{
xwc.x = gs->desiredRect.x - cw->clientFrame.left;
xwc.y = gs->desiredRect.y - cw->clientFrame.top;
xwc.width = gs->desiredRect.width + cw->clientFrame.left + cw->clientFrame.right;
xwc.height = gs->desiredRect.height + cw->clientFrame.top + cw->clientFrame.bottom;
}

xwc.x = gs->desiredRect.x - cw->clientFrame.left;
xwc.y = gs->desiredRect.y - cw->clientFrame.top;
xwc.width = gs->desiredRect.width + cw->clientFrame.left + cw->clientFrame.right;
xwc.height = gs->desiredRect.height + cw->clientFrame.top + cw->clientFrame.bottom;

if (cw->mapNum)
sendSyncRequest (cw);
Expand Down

0 comments on commit 85569f4

Please sign in to comment.