change how the pointer is moved.. try make this more consistant when warping at high speeds.
This commit is contained in:
parent
551a17d256
commit
b1223a2acc
1 changed files with 3 additions and 3 deletions
|
@ -3115,12 +3115,12 @@ void BlackboxWindow::doWorkspaceWarping(int x_root, int y_root,
|
||||||
if (focus)
|
if (focus)
|
||||||
setInputFocus();
|
setInputFocus();
|
||||||
|
|
||||||
int dest_x;
|
int dest_x = x_root;
|
||||||
if (x_root <= 0) {
|
if (x_root <= 0) {
|
||||||
dest_x = screen->getRect().right() - 1;
|
dest_x += screen->getRect().width() - 1;
|
||||||
dx += screen->getRect().width() - 1;
|
dx += screen->getRect().width() - 1;
|
||||||
} else {
|
} else {
|
||||||
dest_x = 0;
|
dest_x -= screen->getRect().width() - 1;
|
||||||
dx -= screen->getRect().width() - 1;
|
dx -= screen->getRect().width() - 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue