Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
61dbfea4
Commit
61dbfea4
authored
May 16, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
May 30, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Assume the internal clip message to be WM_WINE_CLIPCURSOR.
parent
d476a4ca
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
4 additions
and
16 deletions
+4
-16
cursoricon.c
dlls/win32u/cursoricon.c
+0
-1
server_protocol.h
include/wine/server_protocol.h
+1
-3
protocol.def
server/protocol.def
+0
-1
queue.c
server/queue.c
+2
-7
request.h
server/request.h
+1
-2
trace.c
server/trace.c
+0
-1
user.h
server/user.h
+0
-1
No files found.
dlls/win32u/cursoricon.c
View file @
61dbfea4
...
...
@@ -174,7 +174,6 @@ BOOL WINAPI NtUserClipCursor( const RECT *rect )
SERVER_START_REQ
(
set_cursor
)
{
req
->
clip_msg
=
WM_WINE_CLIPCURSOR
;
if
(
rect
)
{
req
->
flags
=
SET_CURSOR_CLIP
;
...
...
include/wine/server_protocol.h
View file @
61dbfea4
...
...
@@ -5334,8 +5334,6 @@ struct set_cursor_request
int
x
;
int
y
;
rectangle_t
clip
;
unsigned
int
clip_msg
;
char
__pad_52
[
4
];
};
struct
set_cursor_reply
{
...
...
@@ -6415,7 +6413,7 @@ union generic_reply
/* ### protocol_version begin ### */
#define SERVER_PROTOCOL_VERSION 77
1
#define SERVER_PROTOCOL_VERSION 77
2
/* ### protocol_version end ### */
...
...
server/protocol.def
View file @
61dbfea4
...
...
@@ -3700,7 +3700,6 @@ struct handle_info
int x; /* cursor position */
int y;
rectangle_t clip; /* cursor clip rectangle */
unsigned int clip_msg; /* message to post on cursor clip changes */
@REPLY
user_handle_t prev_handle; /* previous handle */
int prev_count; /* previous show count */
...
...
server/queue.c
View file @
61dbfea4
...
...
@@ -34,6 +34,7 @@
#include "wingdi.h"
#include "winuser.h"
#include "winternl.h"
#include "ntuser.h"
#include "handle.h"
#include "file.h"
...
...
@@ -467,8 +468,7 @@ static void set_clip_rectangle( struct desktop *desktop, const rectangle_t *rect
}
else
desktop
->
cursor
.
clip
=
top_rect
;
if
(
desktop
->
cursor
.
clip_msg
&&
send_clip_msg
)
post_desktop_message
(
desktop
,
desktop
->
cursor
.
clip_msg
,
rect
!=
NULL
,
0
);
if
(
send_clip_msg
)
post_desktop_message
(
desktop
,
WM_WINE_CLIPCURSOR
,
rect
!=
NULL
,
0
);
/* warp the mouse to be inside the clip rect */
x
=
max
(
min
(
desktop
->
cursor
.
x
,
desktop
->
cursor
.
clip
.
right
-
1
),
desktop
->
cursor
.
clip
.
left
);
...
...
@@ -3294,11 +3294,6 @@ DECL_HANDLER(set_cursor)
if
(
req
->
flags
&
(
SET_CURSOR_CLIP
|
SET_CURSOR_NOCLIP
))
{
struct
desktop
*
desktop
=
input
->
desktop
;
/* only the desktop owner can set the message */
if
(
req
->
clip_msg
&&
get_top_window_owner
(
desktop
)
==
current
->
process
)
desktop
->
cursor
.
clip_msg
=
req
->
clip_msg
;
set_clip_rectangle
(
desktop
,
(
req
->
flags
&
SET_CURSOR_NOCLIP
)
?
NULL
:
&
req
->
clip
,
0
);
}
...
...
server/request.h
View file @
61dbfea4
...
...
@@ -2225,8 +2225,7 @@ C_ASSERT( FIELD_OFFSET(struct set_cursor_request, show_count) == 20 );
C_ASSERT
(
FIELD_OFFSET
(
struct
set_cursor_request
,
x
)
==
24
);
C_ASSERT
(
FIELD_OFFSET
(
struct
set_cursor_request
,
y
)
==
28
);
C_ASSERT
(
FIELD_OFFSET
(
struct
set_cursor_request
,
clip
)
==
32
);
C_ASSERT
(
FIELD_OFFSET
(
struct
set_cursor_request
,
clip_msg
)
==
48
);
C_ASSERT
(
sizeof
(
struct
set_cursor_request
)
==
56
);
C_ASSERT
(
sizeof
(
struct
set_cursor_request
)
==
48
);
C_ASSERT
(
FIELD_OFFSET
(
struct
set_cursor_reply
,
prev_handle
)
==
8
);
C_ASSERT
(
FIELD_OFFSET
(
struct
set_cursor_reply
,
prev_count
)
==
12
);
C_ASSERT
(
FIELD_OFFSET
(
struct
set_cursor_reply
,
prev_x
)
==
16
);
...
...
server/trace.c
View file @
61dbfea4
...
...
@@ -4407,7 +4407,6 @@ static void dump_set_cursor_request( const struct set_cursor_request *req )
fprintf
(
stderr
,
", x=%d"
,
req
->
x
);
fprintf
(
stderr
,
", y=%d"
,
req
->
y
);
dump_rectangle
(
", clip="
,
&
req
->
clip
);
fprintf
(
stderr
,
", clip_msg=%08x"
,
req
->
clip_msg
);
}
static
void
dump_set_cursor_reply
(
const
struct
set_cursor_reply
*
req
)
...
...
server/user.h
View file @
61dbfea4
...
...
@@ -57,7 +57,6 @@ struct global_cursor
int
x
;
/* cursor position */
int
y
;
rectangle_t
clip
;
/* cursor clip rectangle */
unsigned
int
clip_msg
;
/* message to post for cursor clip changes */
unsigned
int
last_change
;
/* time of last position change */
user_handle_t
win
;
/* window that contains the cursor */
};
...
...
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