Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Christian Rauch
xserver
Commits
15d45ffb
Commit
15d45ffb
authored
Oct 06, 2000
by
Keith Packard
Browse files
kdrive: fix any-edge screen-switching behaviour
parent
fae164a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
hw/kdrive/src/kinput.c
View file @
15d45ffb
...
...
@@ -21,7 +21,7 @@
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $XFree86: xc/programs/Xserver/hw/kdrive/kinput.c,v 1.
5
2000/
08/26 00:24:38
keithp Exp $ */
/* $XFree86: xc/programs/Xserver/hw/kdrive/kinput.c,v 1.
8
2000/
10/06 05:54:09
keithp Exp $ */
#include
"kdrive.h"
#include
"inputstr.h"
...
...
@@ -1380,7 +1380,10 @@ KdCursorOffScreen(ScreenPtr *ppScreen, int *x, int *y)
if
(
n
<
0
)
n
=
screenInfo
.
numScreens
-
1
;
pScreen
=
screenInfo
.
screens
[
n
];
*
x
+=
pScreen
->
width
;
if
(
*
x
<
0
)
*
x
+=
pScreen
->
width
;
if
(
*
y
<
0
)
*
y
+=
pScreen
->
height
;
*
ppScreen
=
pScreen
;
return
TRUE
;
}
...
...
@@ -1389,7 +1392,10 @@ KdCursorOffScreen(ScreenPtr *ppScreen, int *x, int *y)
n
=
pScreen
->
myNum
+
1
;
if
(
n
>=
screenInfo
.
numScreens
)
n
=
0
;
*
x
-=
pScreen
->
width
;
if
(
*
x
>=
pScreen
->
width
)
*
x
-=
pScreen
->
width
;
if
(
*
y
>=
pScreen
->
height
)
*
y
-=
pScreen
->
height
;
pScreen
=
screenInfo
.
screens
[
n
];
*
ppScreen
=
pScreen
;
return
TRUE
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment