summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormaniac <maniac@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-02-15 15:42:23 +0000
committermaniac <maniac@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-02-15 15:42:23 +0000
commit8c8fbed4f2bd33ffadcecafe7037cef4d3ae62f1 (patch)
treee0f60a81f42d5f888451b29b97890a1e0603ed40
parent136ec2bce2f71a2911d5e9db74efec30cdbbee1f (diff)
downloadmarex-dev-8c8fbed4f2bd33ffadcecafe7037cef4d3ae62f1.tar.gz
marex-dev-8c8fbed4f2bd33ffadcecafe7037cef4d3ae62f1.tar.bz2
beryl-core: fixed moving maximized windows to another viewport if initiated from another X client
git-svn-id: file:///beryl/trunk@4081 d7aaf104-2d23-0410-ae22-9d23157bf5a3
-rw-r--r--beryl-core/src/window.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/beryl-core/src/window.c b/beryl-core/src/window.c
index ba6f08f..a9fe18f 100644
--- a/beryl-core/src/window.c
+++ b/beryl-core/src/window.c
@@ -3482,6 +3482,7 @@ addWindowSizeChanges(CompWindow * w,
if (w->state & CompWindowStateMaximizedVertMask)
{
+ oldY = oldY % w->screen->height;
if (oldY < y + workArea.y + w->input.top)
{
xwc->y = y + workArea.y + w->input.top;
@@ -3510,6 +3511,7 @@ addWindowSizeChanges(CompWindow * w,
if (w->state & CompWindowStateMaximizedHorzMask)
{
+ oldX = oldX % w->screen->width;
if (oldX < x + workArea.x + w->input.left)
{
xwc->x = x + workArea.x + w->input.left;