~compiz-team/compiz-core/compiz-core.fix_748840

« back to all changes in this revision

Viewing changes to plugins/decor/src/decor.cpp

  • Committer: Sam Spilsbury
  • Date: 2011-09-27 15:42:40 UTC
  • mfrom: (2838.2.1)
  • Revision ID: git-v1:94407f6965fd6bff3ec867e00690c0549b44dd11
MergeĀ lp:~compiz-team/compiz-core/compiz-core.fix_860306

Show diffs side-by-side

added added

removed removed

Lines of Context:
1126
1126
    o.at (0).setName ("window", CompOption::TypeInt);
1127
1127
    o.at (0).value ().set ((int) w->id ());
1128
1128
 
 
1129
    xwc.x += w->serverGeometry ().x ();
 
1130
    xwc.y += w->serverGeometry ().y ();
 
1131
 
1129
1132
    w->configureXWindow (mask, &xwc);
1130
1133
    screen->handleCompizEvent ("decor", "window_decorated", o);
1131
1134
    return false;
1549
1552
 
1550
1553
        memset (&xwc, 0, sizeof (XWindowChanges));
1551
1554
 
1552
 
        xwc.x = window->serverGeometry ().x () + moveDx;
1553
 
        xwc.y = window->serverGeometry ().y () + moveDy;
 
1555
        /* Grab the geometry last sent to server at configureXWindow
 
1556
         * time and not here since serverGeometry may be updated by
 
1557
         * the time that we do call configureXWindow */
 
1558
        xwc.x = moveDx;
 
1559
        xwc.y = moveDy;
1554
1560
 
1555
1561
        /* Except if it's fullscreen, maximized or such */
1556
1562
        if (window->state () & CompWindowStateFullscreenMask)