Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
3afff1a6
Commit
3afff1a6
authored
Jan 26, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Jun 13, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
win32u: Add a hwnd parameter to SetCursor driver entry points.
parent
25906eed
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
14 additions
and
15 deletions
+14
-15
cursoricon.c
dlls/win32u/cursoricon.c
+3
-3
driver.c
dlls/win32u/driver.c
+3
-3
android.h
dlls/wineandroid.drv/android.h
+1
-2
window.c
dlls/wineandroid.drv/window.c
+1
-1
macdrv.h
dlls/winemac.drv/macdrv.h
+1
-1
mouse.c
dlls/winemac.drv/mouse.c
+2
-2
mouse.c
dlls/winex11.drv/mouse.c
+1
-1
x11drv.h
dlls/winex11.drv/x11drv.h
+1
-1
gdi_driver.h
include/wine/gdi_driver.h
+1
-1
No files found.
dlls/win32u/cursoricon.c
View file @
3afff1a6
...
@@ -101,8 +101,8 @@ INT WINAPI NtUserShowCursor( BOOL show )
...
@@ -101,8 +101,8 @@ INT WINAPI NtUserShowCursor( BOOL show )
TRACE
(
"%d, count=%d
\n
"
,
show
,
count
);
TRACE
(
"%d, count=%d
\n
"
,
show
,
count
);
if
(
show
&&
!
count
)
user_driver
->
pSetCursor
(
cursor
);
if
(
show
&&
!
count
)
user_driver
->
pSetCursor
(
0
,
cursor
);
else
if
(
!
show
&&
count
==
-
1
)
user_driver
->
pSetCursor
(
0
);
else
if
(
!
show
&&
count
==
-
1
)
user_driver
->
pSetCursor
(
0
,
0
);
return
count
;
return
count
;
}
}
...
@@ -132,7 +132,7 @@ HCURSOR WINAPI NtUserSetCursor( HCURSOR cursor )
...
@@ -132,7 +132,7 @@ HCURSOR WINAPI NtUserSetCursor( HCURSOR cursor )
SERVER_END_REQ
;
SERVER_END_REQ
;
if
(
!
ret
)
return
0
;
if
(
!
ret
)
return
0
;
user_driver
->
pSetCursor
(
show_count
>=
0
?
cursor
:
0
);
user_driver
->
pSetCursor
(
0
,
show_count
>=
0
?
cursor
:
0
);
if
(
!
(
obj
=
get_icon_ptr
(
old_cursor
)))
return
0
;
if
(
!
(
obj
=
get_icon_ptr
(
old_cursor
)))
return
0
;
release_user_handle_ptr
(
obj
);
release_user_handle_ptr
(
obj
);
...
...
dlls/win32u/driver.c
View file @
3afff1a6
...
@@ -738,7 +738,7 @@ static void nulldrv_DestroyCursorIcon( HCURSOR cursor )
...
@@ -738,7 +738,7 @@ static void nulldrv_DestroyCursorIcon( HCURSOR cursor )
{
{
}
}
static
void
nulldrv_SetCursor
(
HCURSOR
cursor
)
static
void
nulldrv_SetCursor
(
H
WND
hwnd
,
H
CURSOR
cursor
)
{
{
}
}
...
@@ -1118,9 +1118,9 @@ static INT loaderdrv_GetDisplayDepth( LPCWSTR name, BOOL is_primary )
...
@@ -1118,9 +1118,9 @@ static INT loaderdrv_GetDisplayDepth( LPCWSTR name, BOOL is_primary )
return
load_driver
()
->
pGetDisplayDepth
(
name
,
is_primary
);
return
load_driver
()
->
pGetDisplayDepth
(
name
,
is_primary
);
}
}
static
void
loaderdrv_SetCursor
(
HCURSOR
cursor
)
static
void
loaderdrv_SetCursor
(
H
WND
hwnd
,
H
CURSOR
cursor
)
{
{
load_driver
()
->
pSetCursor
(
cursor
);
load_driver
()
->
pSetCursor
(
hwnd
,
cursor
);
}
}
static
BOOL
loaderdrv_GetCursorPos
(
POINT
*
pt
)
static
BOOL
loaderdrv_GetCursorPos
(
POINT
*
pt
)
...
...
dlls/wineandroid.drv/android.h
View file @
3afff1a6
...
@@ -86,13 +86,12 @@ extern pthread_mutex_t win_data_mutex DECLSPEC_HIDDEN;
...
@@ -86,13 +86,12 @@ extern pthread_mutex_t win_data_mutex DECLSPEC_HIDDEN;
extern
INT
ANDROID_GetKeyNameText
(
LONG
lparam
,
LPWSTR
buffer
,
INT
size
)
DECLSPEC_HIDDEN
;
extern
INT
ANDROID_GetKeyNameText
(
LONG
lparam
,
LPWSTR
buffer
,
INT
size
)
DECLSPEC_HIDDEN
;
extern
UINT
ANDROID_MapVirtualKeyEx
(
UINT
code
,
UINT
maptype
,
HKL
hkl
)
DECLSPEC_HIDDEN
;
extern
UINT
ANDROID_MapVirtualKeyEx
(
UINT
code
,
UINT
maptype
,
HKL
hkl
)
DECLSPEC_HIDDEN
;
extern
SHORT
ANDROID_VkKeyScanEx
(
WCHAR
ch
,
HKL
hkl
)
DECLSPEC_HIDDEN
;
extern
SHORT
ANDROID_VkKeyScanEx
(
WCHAR
ch
,
HKL
hkl
)
DECLSPEC_HIDDEN
;
extern
void
ANDROID_SetCursor
(
HCURSOR
handle
)
DECLSPEC_HIDDEN
;
extern
void
ANDROID_SetCursor
(
H
WND
hwnd
,
H
CURSOR
handle
)
DECLSPEC_HIDDEN
;
extern
BOOL
ANDROID_CreateDesktop
(
const
WCHAR
*
name
,
UINT
width
,
UINT
height
)
DECLSPEC_HIDDEN
;
extern
BOOL
ANDROID_CreateDesktop
(
const
WCHAR
*
name
,
UINT
width
,
UINT
height
)
DECLSPEC_HIDDEN
;
extern
BOOL
ANDROID_CreateWindow
(
HWND
hwnd
)
DECLSPEC_HIDDEN
;
extern
BOOL
ANDROID_CreateWindow
(
HWND
hwnd
)
DECLSPEC_HIDDEN
;
extern
void
ANDROID_DestroyWindow
(
HWND
hwnd
)
DECLSPEC_HIDDEN
;
extern
void
ANDROID_DestroyWindow
(
HWND
hwnd
)
DECLSPEC_HIDDEN
;
extern
BOOL
ANDROID_ProcessEvents
(
DWORD
mask
)
DECLSPEC_HIDDEN
;
extern
BOOL
ANDROID_ProcessEvents
(
DWORD
mask
)
DECLSPEC_HIDDEN
;
extern
LRESULT
ANDROID_DesktopWindowProc
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wp
,
LPARAM
lp
)
DECLSPEC_HIDDEN
;
extern
LRESULT
ANDROID_DesktopWindowProc
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wp
,
LPARAM
lp
)
DECLSPEC_HIDDEN
;
extern
void
ANDROID_SetCursor
(
HCURSOR
handle
)
DECLSPEC_HIDDEN
;
extern
void
ANDROID_SetLayeredWindowAttributes
(
HWND
hwnd
,
COLORREF
key
,
BYTE
alpha
,
extern
void
ANDROID_SetLayeredWindowAttributes
(
HWND
hwnd
,
COLORREF
key
,
BYTE
alpha
,
DWORD
flags
)
DECLSPEC_HIDDEN
;
DWORD
flags
)
DECLSPEC_HIDDEN
;
extern
void
ANDROID_SetParent
(
HWND
hwnd
,
HWND
parent
,
HWND
old_parent
)
DECLSPEC_HIDDEN
;
extern
void
ANDROID_SetParent
(
HWND
hwnd
,
HWND
parent
,
HWND
old_parent
)
DECLSPEC_HIDDEN
;
...
...
dlls/wineandroid.drv/window.c
View file @
3afff1a6
...
@@ -1446,7 +1446,7 @@ static BOOL get_icon_info( HICON handle, ICONINFOEXW *ret )
...
@@ -1446,7 +1446,7 @@ static BOOL get_icon_info( HICON handle, ICONINFOEXW *ret )
/***********************************************************************
/***********************************************************************
* ANDROID_SetCursor
* ANDROID_SetCursor
*/
*/
void
ANDROID_SetCursor
(
HCURSOR
handle
)
void
ANDROID_SetCursor
(
H
WND
hwnd
,
H
CURSOR
handle
)
{
{
static
HCURSOR
last_cursor
;
static
HCURSOR
last_cursor
;
static
DWORD
last_cursor_change
;
static
DWORD
last_cursor_change
;
...
...
dlls/winemac.drv/macdrv.h
View file @
3afff1a6
...
@@ -159,7 +159,7 @@ extern void macdrv_WindowPosChanged(HWND hwnd, HWND insert_after, UINT swp_flags
...
@@ -159,7 +159,7 @@ extern void macdrv_WindowPosChanged(HWND hwnd, HWND insert_after, UINT swp_flags
extern
void
macdrv_DestroyCursorIcon
(
HCURSOR
cursor
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_DestroyCursorIcon
(
HCURSOR
cursor
)
DECLSPEC_HIDDEN
;
extern
BOOL
macdrv_GetCursorPos
(
LPPOINT
pos
)
DECLSPEC_HIDDEN
;
extern
BOOL
macdrv_GetCursorPos
(
LPPOINT
pos
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_SetCapture
(
HWND
hwnd
,
UINT
flags
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_SetCapture
(
HWND
hwnd
,
UINT
flags
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_SetCursor
(
HCURSOR
cursor
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_SetCursor
(
H
WND
hwnd
,
H
CURSOR
cursor
)
DECLSPEC_HIDDEN
;
extern
BOOL
macdrv_SetCursorPos
(
INT
x
,
INT
y
)
DECLSPEC_HIDDEN
;
extern
BOOL
macdrv_SetCursorPos
(
INT
x
,
INT
y
)
DECLSPEC_HIDDEN
;
extern
BOOL
macdrv_RegisterHotKey
(
HWND
hwnd
,
UINT
mod_flags
,
UINT
vkey
)
DECLSPEC_HIDDEN
;
extern
BOOL
macdrv_RegisterHotKey
(
HWND
hwnd
,
UINT
mod_flags
,
UINT
vkey
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_UnregisterHotKey
(
HWND
hwnd
,
UINT
modifiers
,
UINT
vkey
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_UnregisterHotKey
(
HWND
hwnd
,
UINT
modifiers
,
UINT
vkey
)
DECLSPEC_HIDDEN
;
...
...
dlls/winemac.drv/mouse.c
View file @
3afff1a6
...
@@ -744,12 +744,12 @@ static BOOL get_icon_info(HICON handle, ICONINFOEXW *ret)
...
@@ -744,12 +744,12 @@ static BOOL get_icon_info(HICON handle, ICONINFOEXW *ret)
/***********************************************************************
/***********************************************************************
* SetCursor (MACDRV.@)
* SetCursor (MACDRV.@)
*/
*/
void
macdrv_SetCursor
(
HCURSOR
cursor
)
void
macdrv_SetCursor
(
H
WND
hwnd
,
H
CURSOR
cursor
)
{
{
CFStringRef
cursor_name
=
NULL
;
CFStringRef
cursor_name
=
NULL
;
CFArrayRef
cursor_frames
=
NULL
;
CFArrayRef
cursor_frames
=
NULL
;
TRACE
(
"%p
\n
"
,
cursor
);
TRACE
(
"%p
%p
\n
"
,
hwnd
,
cursor
);
if
(
cursor
)
if
(
cursor
)
{
{
...
...
dlls/winex11.drv/mouse.c
View file @
3afff1a6
...
@@ -1402,7 +1402,7 @@ void X11DRV_DestroyCursorIcon( HCURSOR handle )
...
@@ -1402,7 +1402,7 @@ void X11DRV_DestroyCursorIcon( HCURSOR handle )
/***********************************************************************
/***********************************************************************
* SetCursor (X11DRV.@)
* SetCursor (X11DRV.@)
*/
*/
void
X11DRV_SetCursor
(
HCURSOR
handle
)
void
X11DRV_SetCursor
(
H
WND
hwnd
,
H
CURSOR
handle
)
{
{
if
(
InterlockedExchangePointer
(
(
void
**
)
&
last_cursor
,
handle
)
!=
handle
||
if
(
InterlockedExchangePointer
(
(
void
**
)
&
last_cursor
,
handle
)
!=
handle
||
NtGetTickCount
()
-
last_cursor_change
>
100
)
NtGetTickCount
()
-
last_cursor_change
>
100
)
...
...
dlls/winex11.drv/x11drv.h
View file @
3afff1a6
...
@@ -213,7 +213,7 @@ extern UINT X11DRV_ImeToAsciiEx( UINT vkey, UINT vsc, const BYTE *state,
...
@@ -213,7 +213,7 @@ extern UINT X11DRV_ImeToAsciiEx( UINT vkey, UINT vsc, const BYTE *state,
extern
SHORT
X11DRV_VkKeyScanEx
(
WCHAR
wChar
,
HKL
hkl
)
DECLSPEC_HIDDEN
;
extern
SHORT
X11DRV_VkKeyScanEx
(
WCHAR
wChar
,
HKL
hkl
)
DECLSPEC_HIDDEN
;
extern
void
X11DRV_NotifyIMEStatus
(
HWND
hwnd
,
UINT
status
)
DECLSPEC_HIDDEN
;
extern
void
X11DRV_NotifyIMEStatus
(
HWND
hwnd
,
UINT
status
)
DECLSPEC_HIDDEN
;
extern
void
X11DRV_DestroyCursorIcon
(
HCURSOR
handle
)
DECLSPEC_HIDDEN
;
extern
void
X11DRV_DestroyCursorIcon
(
HCURSOR
handle
)
DECLSPEC_HIDDEN
;
extern
void
X11DRV_SetCursor
(
HCURSOR
handle
)
DECLSPEC_HIDDEN
;
extern
void
X11DRV_SetCursor
(
H
WND
hwnd
,
H
CURSOR
handle
)
DECLSPEC_HIDDEN
;
extern
BOOL
X11DRV_SetCursorPos
(
INT
x
,
INT
y
)
DECLSPEC_HIDDEN
;
extern
BOOL
X11DRV_SetCursorPos
(
INT
x
,
INT
y
)
DECLSPEC_HIDDEN
;
extern
BOOL
X11DRV_GetCursorPos
(
LPPOINT
pos
)
DECLSPEC_HIDDEN
;
extern
BOOL
X11DRV_GetCursorPos
(
LPPOINT
pos
)
DECLSPEC_HIDDEN
;
extern
BOOL
X11DRV_ClipCursor
(
const
RECT
*
clip
,
BOOL
reset
)
DECLSPEC_HIDDEN
;
extern
BOOL
X11DRV_ClipCursor
(
const
RECT
*
clip
,
BOOL
reset
)
DECLSPEC_HIDDEN
;
...
...
include/wine/gdi_driver.h
View file @
3afff1a6
...
@@ -298,7 +298,7 @@ struct user_driver_funcs
...
@@ -298,7 +298,7 @@ struct user_driver_funcs
void
(
*
pNotifyIMEStatus
)(
HWND
,
UINT
);
void
(
*
pNotifyIMEStatus
)(
HWND
,
UINT
);
/* cursor/icon functions */
/* cursor/icon functions */
void
(
*
pDestroyCursorIcon
)(
HCURSOR
);
void
(
*
pDestroyCursorIcon
)(
HCURSOR
);
void
(
*
pSetCursor
)(
HCURSOR
);
void
(
*
pSetCursor
)(
H
WND
,
H
CURSOR
);
BOOL
(
*
pGetCursorPos
)(
LPPOINT
);
BOOL
(
*
pGetCursorPos
)(
LPPOINT
);
BOOL
(
*
pSetCursorPos
)(
INT
,
INT
);
BOOL
(
*
pSetCursorPos
)(
INT
,
INT
);
BOOL
(
*
pClipCursor
)(
const
RECT
*
,
BOOL
);
BOOL
(
*
pClipCursor
)(
const
RECT
*
,
BOOL
);
...
...
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