summaryrefslogtreecommitdiff
path: root/src/Window.cc
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2002-08-20 18:43:29 +0000
committerDana Jansens <danakj@orodu.net>2002-08-20 18:43:29 +0000
commitb1223a2acc196ec96f208229b877d37f36c9887c (patch)
tree09ba5a310004cd4829b4828abf00284c2cb4d194 /src/Window.cc
parent551a17d2563679eb6ef7c650f1384ee7e48dbc29 (diff)
change how the pointer is moved.. try make this more consistant when warping at high speeds.
Diffstat (limited to 'src/Window.cc')
-rw-r--r--src/Window.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Window.cc b/src/Window.cc
index b73af2b5..d71f4508 100644
--- a/src/Window.cc
+++ b/src/Window.cc
@@ -3115,12 +3115,12 @@ void BlackboxWindow::doWorkspaceWarping(int x_root, int y_root,
if (focus)
setInputFocus();
- int dest_x;
+ int dest_x = x_root;
if (x_root <= 0) {
- dest_x = screen->getRect().right() - 1;
+ dest_x += screen->getRect().width() - 1;
dx += screen->getRect().width() - 1;
} else {
- dest_x = 0;
+ dest_x -= screen->getRect().width() - 1;
dx -= screen->getRect().width() - 1;
}