change how the pointer is moved.. try make this more consistant when warping at high speeds.

This commit is contained in:
Dana Jansens 2002-08-20 18:43:29 +00:00
parent 551a17d256
commit b1223a2acc

View file

@ -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;
}