Skip to content

Commit

Permalink
Grid: allow for CSD window extents
Browse files Browse the repository at this point in the history
Take GtkFrameExtents into account in computing size of windows in grid
Based on  https://bazaar.launchpad.net/~muktupavels/compiz/gtk-frame-extents/revision/4114/plugins/grid/src/grid.cpp
  • Loading branch information
lukefromdc committed Feb 23, 2018
1 parent 39c1544 commit f51d181
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/grid/grid.c
Original file line number Diff line number Diff line change
Expand Up @@ -343,10 +343,10 @@ gridCommonWindow (CompWindow *cw,
DEBUG_RECT (gs->desiredRect);
}

xwc.x = gs->desiredRect.x;
xwc.y = gs->desiredRect.y;
xwc.width = gs->desiredRect.width;
xwc.height = gs->desiredRect.height;
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 f51d181

Please sign in to comment.