Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
L
libvncserver
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rasky
libvncserver
Commits
155f4c10
Commit
155f4c10
authored
Jan 20, 2005
by
dscho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix disappearing cursor
parent
47646a20
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
12 deletions
+12
-12
cursor.c
libvncserver/cursor.c
+7
-4
main.c
libvncserver/main.c
+0
-3
rfbserver.c
libvncserver/rfbserver.c
+5
-5
No files found.
libvncserver/cursor.c
View file @
155f4c10
...
@@ -570,7 +570,7 @@ void rfbShowCursor(rfbClientPtr cl)
...
@@ -570,7 +570,7 @@ void rfbShowCursor(rfbClientPtr cl)
* region gets redrawn.
* region gets redrawn.
*/
*/
void
rfbRedrawAfterHideCursor
(
rfbClientPtr
cl
)
void
rfbRedrawAfterHideCursor
(
rfbClientPtr
cl
,
sraRegionPtr
updateRegion
)
{
{
rfbScreenInfoPtr
s
=
cl
->
screen
;
rfbScreenInfoPtr
s
=
cl
->
screen
;
rfbCursorPtr
c
=
s
->
cursor
;
rfbCursorPtr
c
=
s
->
cursor
;
...
@@ -587,6 +587,9 @@ void rfbRedrawAfterHideCursor(rfbClientPtr cl)
...
@@ -587,6 +587,9 @@ void rfbRedrawAfterHideCursor(rfbClientPtr cl)
sraRegionPtr
rect
;
sraRegionPtr
rect
;
fprintf
(
stderr
,
"%d %d %d %d
\n
"
,
x
,
y
,
x2
,
y2
);
fprintf
(
stderr
,
"%d %d %d %d
\n
"
,
x
,
y
,
x2
,
y2
);
rect
=
sraRgnCreateRect
(
x
,
y
,
x2
,
y2
);
rect
=
sraRgnCreateRect
(
x
,
y
,
x2
,
y2
);
if
(
updateRegion
)
sraRgnOr
(
updateRegion
,
rect
);
else
sraRgnOr
(
cl
->
modifiedRegion
,
rect
);
sraRgnOr
(
cl
->
modifiedRegion
,
rect
);
sraRgnDestroy
(
rect
);
sraRgnDestroy
(
rect
);
}
}
...
@@ -620,7 +623,7 @@ void rfbSetCursor(rfbScreenInfoPtr rfbScreen,rfbCursorPtr c)
...
@@ -620,7 +623,7 @@ void rfbSetCursor(rfbScreenInfoPtr rfbScreen,rfbCursorPtr c)
iterator
=
rfbGetClientIterator
(
rfbScreen
);
iterator
=
rfbGetClientIterator
(
rfbScreen
);
while
((
cl
=
rfbClientIteratorNext
(
iterator
)))
while
((
cl
=
rfbClientIteratorNext
(
iterator
)))
if
(
!
cl
->
enableCursorShapeUpdates
)
if
(
!
cl
->
enableCursorShapeUpdates
)
rfbRedrawAfterHideCursor
(
cl
);
rfbRedrawAfterHideCursor
(
cl
,
0
);
rfbReleaseClientIterator
(
iterator
);
rfbReleaseClientIterator
(
iterator
);
if
(
rfbScreen
->
cursor
->
cleanup
)
if
(
rfbScreen
->
cursor
->
cleanup
)
...
@@ -633,7 +636,7 @@ void rfbSetCursor(rfbScreenInfoPtr rfbScreen,rfbCursorPtr c)
...
@@ -633,7 +636,7 @@ void rfbSetCursor(rfbScreenInfoPtr rfbScreen,rfbCursorPtr c)
while
((
cl
=
rfbClientIteratorNext
(
iterator
)))
{
while
((
cl
=
rfbClientIteratorNext
(
iterator
)))
{
cl
->
cursorWasChanged
=
TRUE
;
cl
->
cursorWasChanged
=
TRUE
;
if
(
!
cl
->
enableCursorShapeUpdates
)
if
(
!
cl
->
enableCursorShapeUpdates
)
rfbRedrawAfterHideCursor
(
cl
);
rfbRedrawAfterHideCursor
(
cl
,
0
);
}
}
rfbReleaseClientIterator
(
iterator
);
rfbReleaseClientIterator
(
iterator
);
...
...
libvncserver/main.c
View file @
155f4c10
...
@@ -50,9 +50,6 @@ char rfbEndianTest = -1;
...
@@ -50,9 +50,6 @@ char rfbEndianTest = -1;
void
rfbIncrClientRef
(
rfbClientPtr
cl
);
void
rfbIncrClientRef
(
rfbClientPtr
cl
);
void
rfbDecrClientRef
(
rfbClientPtr
cl
);
void
rfbDecrClientRef
(
rfbClientPtr
cl
);
/* cursor.c */
void
rfbRedrawAfterHideCursor
(
rfbClientPtr
cl
);
void
rfbLogEnable
(
int
enabled
)
{
void
rfbLogEnable
(
int
enabled
)
{
rfbEnableLogging
=
enabled
;
rfbEnableLogging
=
enabled
;
}
}
...
...
libvncserver/rfbserver.c
View file @
155f4c10
...
@@ -64,7 +64,7 @@
...
@@ -64,7 +64,7 @@
void
rfbShowCursor
(
rfbClientPtr
cl
);
void
rfbShowCursor
(
rfbClientPtr
cl
);
void
rfbHideCursor
(
rfbClientPtr
cl
);
void
rfbHideCursor
(
rfbClientPtr
cl
);
void
rfbRedrawAfterHideCursor
(
rfbClientPtr
cl
);
void
rfbRedrawAfterHideCursor
(
rfbClientPtr
cl
,
sraRegionPtr
updateRegion
);
static
void
rfbProcessClientProtocolVersion
(
rfbClientPtr
cl
);
static
void
rfbProcessClientProtocolVersion
(
rfbClientPtr
cl
);
static
void
rfbProcessClientNormalMessage
(
rfbClientPtr
cl
);
static
void
rfbProcessClientNormalMessage
(
rfbClientPtr
cl
);
...
@@ -828,7 +828,7 @@ rfbProcessClientNormalMessage(cl)
...
@@ -828,7 +828,7 @@ rfbProcessClientNormalMessage(cl)
cl
->
host
);
cl
->
host
);
/* if cursor was drawn, hide the cursor */
/* if cursor was drawn, hide the cursor */
if
(
!
cl
->
enableCursorShapeUpdates
)
if
(
!
cl
->
enableCursorShapeUpdates
)
rfbRedrawAfterHideCursor
(
cl
);
rfbRedrawAfterHideCursor
(
cl
,
0
);
cl
->
enableCursorShapeUpdates
=
TRUE
;
cl
->
enableCursorShapeUpdates
=
TRUE
;
cl
->
cursorWasChanged
=
TRUE
;
cl
->
cursorWasChanged
=
TRUE
;
...
@@ -839,7 +839,7 @@ rfbProcessClientNormalMessage(cl)
...
@@ -839,7 +839,7 @@ rfbProcessClientNormalMessage(cl)
cl
->
host
);
cl
->
host
);
/* if cursor was drawn, hide the cursor */
/* if cursor was drawn, hide the cursor */
if
(
!
cl
->
enableCursorShapeUpdates
)
if
(
!
cl
->
enableCursorShapeUpdates
)
rfbRedrawAfterHideCursor
(
cl
);
rfbRedrawAfterHideCursor
(
cl
,
0
);
cl
->
enableCursorShapeUpdates
=
TRUE
;
cl
->
enableCursorShapeUpdates
=
TRUE
;
cl
->
useRichCursorEncoding
=
TRUE
;
cl
->
useRichCursorEncoding
=
TRUE
;
...
@@ -1217,12 +1217,12 @@ rfbSendFramebufferUpdate(cl, givenUpdateRegion)
...
@@ -1217,12 +1217,12 @@ rfbSendFramebufferUpdate(cl, givenUpdateRegion)
if
(
!
cl
->
enableCursorShapeUpdates
)
{
if
(
!
cl
->
enableCursorShapeUpdates
)
{
if
(
cl
->
cursorX
!=
cl
->
screen
->
cursorX
||
cl
->
cursorY
!=
cl
->
screen
->
cursorY
)
{
if
(
cl
->
cursorX
!=
cl
->
screen
->
cursorX
||
cl
->
cursorY
!=
cl
->
screen
->
cursorY
)
{
rfbRedrawAfterHideCursor
(
cl
);
rfbRedrawAfterHideCursor
(
cl
,
updateRegion
);
LOCK
(
cl
->
screen
->
cursorMutex
);
LOCK
(
cl
->
screen
->
cursorMutex
);
cl
->
cursorX
=
cl
->
screen
->
cursorX
;
cl
->
cursorX
=
cl
->
screen
->
cursorX
;
cl
->
cursorY
=
cl
->
screen
->
cursorY
;
cl
->
cursorY
=
cl
->
screen
->
cursorY
;
UNLOCK
(
cl
->
screen
->
cursorMutex
);
UNLOCK
(
cl
->
screen
->
cursorMutex
);
rfbRedrawAfterHideCursor
(
cl
);
rfbRedrawAfterHideCursor
(
cl
,
updateRegion
);
}
}
rfbShowCursor
(
cl
);
rfbShowCursor
(
cl
);
}
}
...
...
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