summaryrefslogtreecommitdiff
path: root/beryl-plugins/src/move.c
diff options
context:
space:
mode:
authormaniac <maniac@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-01-27 12:20:38 +0000
committermaniac <maniac@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-01-27 12:20:38 +0000
commit40cd4e88f9b732f2d51a7bdbda8986540d2a398d (patch)
treef33d92d96358489fb237a0df1b7634e53a4e4101 /beryl-plugins/src/move.c
parent413d8671d0505ae4e65f03b3a107c30d168b6298 (diff)
downloadmarex-dev-40cd4e88f9b732f2d51a7bdbda8986540d2a398d.tar.gz
marex-dev-40cd4e88f9b732f2d51a7bdbda8986540d2a398d.tar.bz2
move plugin: update server position before snapping back to maximized to make sure the window doesn't get maximized on the wrong head (David Reveman)
git-svn-id: file:///beryl/trunk@3249 d7aaf104-2d23-0410-ae22-9d23157bf5a3
Diffstat (limited to 'beryl-plugins/src/move.c')
-rw-r--r--beryl-plugins/src/move.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/beryl-plugins/src/move.c b/beryl-plugins/src/move.c
index e9aee94..841e61d 100644
--- a/beryl-plugins/src/move.c
+++ b/beryl-plugins/src/move.c
@@ -480,6 +480,10 @@ static void moveHandleMotionEvent(CompScreen * s, int xRoot, int yRoot)
{
int wy;
+ /* update server position before maximizing window
+ again so it is maximized on the correct output */
+ syncWindowPosition(w);
+
maximizeWindow(w, ms->origState);
wy = workArea.y + (w->input.top >> 1);