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
dd3d988e
Commit
dd3d988e
authored
Jun 01, 2022
by
Jacek Caban
Committed by
Alexandre Julliard
Jun 02, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winemac: Use unixlib for query_drag_exited.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
parent
219eb6ec
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
27 additions
and
6 deletions
+27
-6
dllmain.c
dlls/winemac.drv/dllmain.c
+1
-0
dragdrop.c
dlls/winemac.drv/dragdrop.c
+5
-4
event.c
dlls/winemac.drv/event.c
+11
-0
macdrv.h
dlls/winemac.drv/macdrv.h
+2
-1
unixlib.h
dlls/winemac.drv/unixlib.h
+8
-1
No files found.
dlls/winemac.drv/dllmain.c
View file @
dd3d988e
...
...
@@ -29,6 +29,7 @@ HMODULE macdrv_module = 0;
typedef
NTSTATUS
(
WINAPI
*
kernel_callback
)(
void
*
params
,
ULONG
size
);
static
const
kernel_callback
kernel_callbacks
[]
=
{
macdrv_dnd_query_exited
,
macdrv_ime_query_char_rect
,
macdrv_ime_set_text
,
};
...
...
dlls/winemac.drv/dragdrop.c
View file @
dd3d988e
...
...
@@ -482,14 +482,15 @@ BOOL query_drag_drop(macdrv_query* query)
/**************************************************************************
*
query_drag
_exited
*
macdrv_dnd_query
_exited
*/
BOOL
query_drag_exited
(
macdrv_query
*
query
)
NTSTATUS
WINAPI
macdrv_dnd_query_exited
(
void
*
arg
,
ULONG
size
)
{
HWND
hwnd
=
macdrv_get_window_hwnd
(
query
->
window
);
struct
dnd_query_exited_params
*
params
=
arg
;
HWND
hwnd
=
params
->
hwnd
;
IDropTarget
*
droptarget
;
TRACE
(
"win %p
/%p
\n
"
,
hwnd
,
query
->
window
);
TRACE
(
"win %p
\n
"
,
hwnd
);
droptarget
=
get_droptarget_pointer
(
last_droptarget_hwnd
);
if
(
droptarget
)
...
...
dlls/winemac.drv/event.c
View file @
dd3d988e
...
...
@@ -180,6 +180,17 @@ static void macdrv_sent_text_input(const macdrv_event *event)
/**************************************************************************
* query_drag_exited
*/
static
BOOL
query_drag_exited
(
macdrv_query
*
query
)
{
struct
dnd_query_exited_params
params
;
params
.
hwnd
=
macdrv_get_window_hwnd
(
query
->
window
);
return
macdrv_client_func
(
client_func_dnd_query_exited
,
&
params
,
sizeof
(
params
));
}
/**************************************************************************
* query_ime_char_rect
*/
BOOL
query_ime_char_rect
(
macdrv_query
*
query
)
...
...
dlls/winemac.drv/macdrv.h
View file @
dd3d988e
...
...
@@ -261,7 +261,6 @@ extern BOOL macdrv_pasteboard_has_format(CFTypeRef pasteboard, UINT desired_form
extern
UINT
*
macdrv_get_pasteboard_formats
(
CFTypeRef
pasteboard
,
UINT
*
num_formats
)
DECLSPEC_HIDDEN
;
extern
BOOL
query_drag_operation
(
macdrv_query
*
query
)
DECLSPEC_HIDDEN
;
extern
BOOL
query_drag_exited
(
macdrv_query
*
query
)
DECLSPEC_HIDDEN
;
extern
BOOL
query_drag_drop
(
macdrv_query
*
query
)
DECLSPEC_HIDDEN
;
extern
struct
opengl_funcs
*
macdrv_wine_get_wgl_driver
(
UINT
version
)
DECLSPEC_HIDDEN
;
...
...
@@ -298,6 +297,8 @@ extern NTSTATUS macdrv_notify_icon(void *arg) DECLSPEC_HIDDEN;
extern
NTSTATUS
macdrv_client_func
(
enum
macdrv_client_funcs
func
,
const
void
*
params
,
ULONG
size
)
DECLSPEC_HIDDEN
;
extern
NTSTATUS
WINAPI
macdrv_dnd_query_exited
(
void
*
arg
,
ULONG
size
)
DECLSPEC_HIDDEN
;
/* user helpers */
static
inline
LRESULT
send_message
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wparam
,
LPARAM
lparam
)
...
...
dlls/winemac.drv/unixlib.h
View file @
dd3d988e
...
...
@@ -67,11 +67,18 @@ struct notify_icon_params
/* driver client callbacks exposed with KernelCallbackTable interface */
enum
macdrv_client_funcs
{
client_func_ime_query_char_rect
=
NtUserDriverCallbackFirst
,
client_func_dnd_query_exited
=
NtUserDriverCallbackFirst
,
client_func_ime_query_char_rect
,
client_func_ime_set_text
,
client_func_last
};
/* macdrv_dnd_query_exited params */
struct
dnd_query_exited_params
{
HWND
hwnd
;
};
/* macdrv_ime_query_char_rect result */
struct
ime_query_char_rect_result
{
...
...
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