Skip to content

Commit

Permalink
Tile-allow for GtkFrameExtents on CSD windows
Browse files Browse the repository at this point in the history
For some reason correction factors were required here. Tested with many themes, seem to work. Results not perfect but quite close
  • Loading branch information
lukefromdc committed Feb 27, 2018
1 parent c3ae8d1 commit b867cf5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/tile/tile.c
Original file line number Diff line number Diff line change
Expand Up @@ -708,11 +708,11 @@ tileSetNewWindowSize (CompWindow *w)

TILE_WINDOW (w);
TILE_SCREEN (w->screen);

xwc.x = tw->newCoords.x;
xwc.y = tw->newCoords.y;
xwc.width = tw->newCoords.width;
xwc.height = tw->newCoords.height;
/*for some reason odd correction factors needed on GtkFrameExtents here*/
xwc.x = tw->newCoords.x - (w->clientFrame.left);
xwc.y = tw->newCoords.y - 2.1 * (w->clientFrame.top);
xwc.width = tw->newCoords.width + 1.1 * (w->clientFrame.left + w->clientFrame.right);
xwc.height = tw->newCoords.height + 1.5 * (w->clientFrame.top + w->clientFrame.bottom);

if (ts->tileType == -1)
{
Expand Down

0 comments on commit b867cf5

Please sign in to comment.