Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Adam Jackson
xserver
Commits
8964b8d0
Commit
8964b8d0
authored
Nov 22, 2008
by
Jeremy Huddleston
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
XQuartz: More 1.6 server API updates
parent
ad0f2321
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
11 deletions
+23
-11
hw/xquartz/xpr/xprCursor.c
hw/xquartz/xpr/xprCursor.c
+23
-11
No files found.
hw/xquartz/xpr/xprCursor.c
View file @
8964b8d0
...
...
@@ -185,7 +185,7 @@ load_cursor(CursorPtr src, int screen)
* Convert the X cursor representation to native format if possible.
*/
static
Bool
QuartzRealizeCursor
(
ScreenPtr
pScreen
,
CursorPtr
pCursor
)
QuartzRealizeCursor
(
DeviceIntPtr
pDev
,
ScreenPtr
pScreen
,
CursorPtr
pCursor
)
{
if
(
pCursor
==
NULL
||
pCursor
->
bits
==
NULL
)
return
FALSE
;
...
...
@@ -201,7 +201,7 @@ QuartzRealizeCursor(ScreenPtr pScreen, CursorPtr pCursor)
* Free the storage space associated with a realized cursor.
*/
static
Bool
QuartzUnrealizeCursor
(
ScreenPtr
pScreen
,
CursorPtr
pCursor
)
QuartzUnrealizeCursor
(
DeviceIntPtr
pDev
,
ScreenPtr
pScreen
,
CursorPtr
pCursor
)
{
return
TRUE
;
}
...
...
@@ -212,7 +212,7 @@ QuartzUnrealizeCursor(ScreenPtr pScreen, CursorPtr pCursor)
* Set the cursor sprite and position.
*/
static
void
QuartzSetCursor
(
ScreenPtr
pScreen
,
CursorPtr
pCursor
,
int
x
,
int
y
)
QuartzSetCursor
(
DeviceIntPtr
pDev
,
ScreenPtr
pScreen
,
CursorPtr
pCursor
,
int
x
,
int
y
)
{
QuartzCursorScreenPtr
ScreenPriv
=
CURSOR_PRIV
(
pScreen
);
...
...
@@ -245,16 +245,26 @@ QuartzSetCursor(ScreenPtr pScreen, CursorPtr pCursor, int x, int y)
* Move the cursor. This is a noop for us.
*/
static
void
QuartzMoveCursor
(
ScreenPtr
pScreen
,
int
x
,
int
y
)
QuartzMoveCursor
(
DeviceIntPtr
pDev
,
ScreenPtr
pScreen
,
int
x
,
int
y
)
{
}
/* TODO: New for 1.6 ... probably noop */
static
Bool
QuartzDeviceCursorInitialize
(
DeviceIntPtr
pDev
,
ScreenPtr
pScreen
)
{
return
TRUE
;
}
/* TODO: New for 1.6 ... probably noop */
static
void
QuartzDeviceCursorCleanup
(
DeviceIntPtr
pDev
,
ScreenPtr
pScreen
)
{
}
static
miPointerSpriteFuncRec
quartzSpriteFuncsRec
=
{
QuartzRealizeCursor
,
QuartzUnrealizeCursor
,
QuartzSetCursor
,
QuartzMoveCursor
QuartzMoveCursor
,
QuartzDeviceCursorInitialize
,
QuartzDeviceCursorCleanup
};
...
...
@@ -293,7 +303,7 @@ QuartzCrossScreen(ScreenPtr pScreen, Bool entering)
*
*/
static
void
QuartzWarpCursor
(
ScreenPtr
pScreen
,
int
x
,
int
y
)
QuartzWarpCursor
(
DeviceIntPtr
pDev
,
ScreenPtr
pScreen
,
int
x
,
int
y
)
{
if
(
quartzServerVisible
)
{
...
...
@@ -305,8 +315,8 @@ QuartzWarpCursor(ScreenPtr pScreen, int x, int y)
CGWarpMouseCursorPosition
(
CGPointMake
(
sx
+
x
,
sy
+
y
));
}
miPointerWarpCursor
(
pScreen
,
x
,
y
);
miPointerUpdate
(
);
miPointerWarpCursor
(
pDev
,
pScreen
,
x
,
y
);
miPointerUpdate
Sprite
(
pDev
);
}
...
...
@@ -404,13 +414,15 @@ QuartzResumeXCursor(ScreenPtr pScreen, int x, int y)
WindowPtr
pWin
;
CursorPtr
pCursor
;
pWin
=
GetSpriteWindow
();
/* TODO: Tablet? */
pWin
=
GetSpriteWindow
(
darwinPointer
);
if
(
pWin
->
drawable
.
pScreen
!=
pScreen
)
return
;
pCursor
=
GetSpriteCursor
();
pCursor
=
GetSpriteCursor
(
darwinPointer
);
if
(
pCursor
==
NULL
)
return
;
QuartzSetCursor
(
pScreen
,
pCursor
,
x
,
y
);
QuartzSetCursor
(
darwinPointer
,
pScreen
,
pCursor
,
x
,
y
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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