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
fce3f9c3
Commit
fce3f9c3
authored
May 03, 2022
by
Jacek Caban
Committed by
Alexandre Julliard
May 04, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Move x11drv_post_drop to xdnd.c.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7cc4d83f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
10 deletions
+22
-10
event.c
dlls/winex11.drv/event.c
+2
-10
x11drv.h
dlls/winex11.drv/x11drv.h
+2
-0
xdnd.c
dlls/winex11.drv/xdnd.c
+18
-0
No files found.
dlls/winex11.drv/event.c
View file @
fce3f9c3
...
...
@@ -1478,16 +1478,8 @@ static HWND find_drop_window( HWND hQueryWnd, LPPOINT lpPt )
static
void
post_drop
(
HWND
hwnd
,
DROPFILES
*
drop
,
ULONG
size
)
{
HDROP
handle
;
if
((
handle
=
GlobalAlloc
(
GMEM_SHARE
,
size
)))
{
DROPFILES
*
ptr
=
GlobalLock
(
handle
);
memcpy
(
ptr
,
drop
,
size
);
ptr
->
fWide
=
TRUE
;
GlobalUnlock
(
handle
);
PostMessageW
(
hwnd
,
WM_DROPFILES
,
(
WPARAM
)
handle
,
0
);
}
drop
->
fWide
=
HandleToUlong
(
hwnd
);
/* abuse fWide to pass window handle */
x11drv_post_drop
(
drop
,
size
);
}
/**********************************************************************
...
...
dlls/winex11.drv/x11drv.h
View file @
fce3f9c3
...
...
@@ -846,6 +846,8 @@ static inline BOOL is_window_rect_mapped( const RECT *rect )
extern
NTSTATUS
x11drv_init
(
void
*
arg
)
DECLSPEC_HIDDEN
;
extern
NTSTATUS
x11drv_clipboard_message
(
void
*
arg
)
DECLSPEC_HIDDEN
;
extern
NTSTATUS
WINAPI
x11drv_post_drop
(
void
*
data
,
ULONG
size
)
DECLSPEC_HIDDEN
;
/* GDI helpers */
static
inline
BOOL
lp_to_dp
(
HDC
hdc
,
POINT
*
points
,
INT
count
)
...
...
dlls/winex11.drv/xdnd.c
View file @
fce3f9c3
...
...
@@ -748,3 +748,21 @@ UINT handle_dnd_event( void *params )
return
0
;
}
}
NTSTATUS
WINAPI
x11drv_post_drop
(
void
*
data
,
ULONG
size
)
{
HDROP
handle
;
if
((
handle
=
GlobalAlloc
(
GMEM_SHARE
,
size
)))
{
DROPFILES
*
ptr
=
GlobalLock
(
handle
);
HWND
hwnd
;
memcpy
(
ptr
,
data
,
size
);
hwnd
=
UlongToHandle
(
ptr
->
fWide
);
ptr
->
fWide
=
TRUE
;
GlobalUnlock
(
handle
);
PostMessageW
(
hwnd
,
WM_DROPFILES
,
(
WPARAM
)
handle
,
0
);
}
return
0
;
}
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