diff options
author | Sam Spilsbury <sam.spilsbury@canonical.com> | 2010-12-04 14:54:48 +0800 |
---|---|---|
committer | Sam Spilsbury <sam.spilsbury@canonical.com> | 2010-12-04 14:54:48 +0800 |
commit | e68bb57c4625f2080b564fa98573644c0342030c (patch) | |
tree | 6f78766c78a4b4b1e21c260f597c91dc0431b3a6 /plugins | |
parent | 4a5ec2bbc9a8024d294c90687a16b1ac39832170 (diff) | |
download | compiz-with-glib-mainloop-e68bb57c4625f2080b564fa98573644c0342030c.tar.gz compiz-with-glib-mainloop-e68bb57c4625f2080b564fa98573644c0342030c.tar.bz2 |
Revert "Constrain windows to workArea when moving for decorations"
This reverts commit d07d0103b7e76a10fb9b360d25c4ec32470eaa53.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/decor/src/decor.cpp | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/plugins/decor/src/decor.cpp b/plugins/decor/src/decor.cpp index 633f628..1207e06 100644 --- a/plugins/decor/src/decor.cpp +++ b/plugins/decor/src/decor.cpp @@ -783,37 +783,12 @@ DecorWindow::update (bool allowDecoration) { XWindowChanges xwc; unsigned int mask = CWX | CWY; - int out = screen->outputDeviceForGeometry (window->serverGeometry ()); - const CompRect &workArea = - screen->outputDevs ().at (out).workArea (); memset (&xwc, 0, sizeof (XWindowChanges)); xwc.x = window->serverGeometry ().x () + moveDx; xwc.y = window->serverGeometry ().y () + moveDy; - /* Constrain to workArea */ - - - if (!workArea.contains (CompRect (xwc.x - window->input ().left, - xwc.y - window->input ().top, - window->inputRect ().width (), - window->inputRect ().height ()))) - { - int tx = MIN (0, xwc.x - window->input ().left - workArea.x ()); - int ty = MIN (0, xwc.y - window->input ().top - workArea.y ()); - - if (!fabs (tx)) - tx = MIN (0, workArea.x2 () - - (xwc.x + window->width () + window->input ().right)); - if (!fabs (ty)) - ty = MIN (0, workArea.y2 () - - (xwc.y + window->height () + window->input ().bottom)); - - xwc.x += tx; - xwc.y += ty; - } - if (window->state () & CompWindowStateFullscreenMask) mask &= ~(CWX | CWY); |