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
ace09cf3
Commit
ace09cf3
authored
Apr 24, 2022
by
Jacek Caban
Committed by
Alexandre Julliard
Apr 28, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Move XdndLeave event handler to event.c.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e510f865
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
3 deletions
+14
-3
event.c
dlls/winex11.drv/event.c
+8
-1
unixlib.h
dlls/winex11.drv/unixlib.h
+1
-0
x11drv.h
dlls/winex11.drv/x11drv.h
+0
-1
xdnd.c
dlls/winex11.drv/xdnd.c
+5
-1
No files found.
dlls/winex11.drv/event.c
View file @
ace09cf3
...
...
@@ -1920,6 +1920,13 @@ static void handle_xdnd_drop_event( HWND hwnd, XClientMessageEvent *event )
}
static
void
handle_xdnd_leave_event
(
HWND
hwnd
,
XClientMessageEvent
*
event
)
{
UINT
type
=
DND_LEAVE_EVENT
;
handle_dnd_event
(
&
type
);
}
struct
client_message_handler
{
int
atom
;
/* protocol atom */
...
...
@@ -1935,7 +1942,7 @@ static const struct client_message_handler client_messages[] =
{
XATOM_XdndEnter
,
handle_xdnd_enter_event
},
{
XATOM_XdndPosition
,
handle_xdnd_position_event
},
{
XATOM_XdndDrop
,
handle_xdnd_drop_event
},
{
XATOM_XdndLeave
,
X11DRV_XDND_LeaveE
vent
}
{
XATOM_XdndLeave
,
handle_xdnd_leave_e
vent
}
};
...
...
dlls/winex11.drv/unixlib.h
View file @
ace09cf3
...
...
@@ -31,6 +31,7 @@ struct format_entry
enum
dnd_event_type
{
DND_DROP_EVENT
,
DND_LEAVE_EVENT
,
DND_POSITION_EVENT
,
};
...
...
dlls/winex11.drv/x11drv.h
View file @
ace09cf3
...
...
@@ -294,7 +294,6 @@ extern BOOL IME_SetCompositionString(DWORD dwIndex, LPCVOID lpComp,
DWORD
dwReadLen
)
DECLSPEC_HIDDEN
;
extern
void
IME_SetResultString
(
LPWSTR
lpResult
,
DWORD
dwResultlen
)
DECLSPEC_HIDDEN
;
extern
void
X11DRV_XDND_LeaveEvent
(
HWND
hWnd
,
XClientMessageEvent
*
event
)
DECLSPEC_HIDDEN
;
extern
void
handle_dnd_enter_event
(
struct
format_entry
*
formats
,
ULONG
size
)
DECLSPEC_HIDDEN
;
extern
UINT
handle_dnd_event
(
void
*
params
)
DECLSPEC_HIDDEN
;
...
...
dlls/winex11.drv/xdnd.c
View file @
ace09cf3
...
...
@@ -342,7 +342,7 @@ static DWORD handle_drop_event( struct dnd_drop_event_params *params )
*
* Handle an XdndLeave event.
*/
void
X11DRV_XDND_LeaveEvent
(
HWND
hWnd
,
XClientMessageEvent
*
event
)
static
NTSTATUS
handle_leave_event
(
void
)
{
IDropTarget
*
dropTarget
;
...
...
@@ -362,6 +362,7 @@ void X11DRV_XDND_LeaveEvent( HWND hWnd, XClientMessageEvent *event )
}
X11DRV_XDND_FreeDragDropOp
();
return
0
;
}
...
...
@@ -736,6 +737,9 @@ UINT handle_dnd_event( void *params )
case
DND_DROP_EVENT
:
return
handle_drop_event
(
params
);
case
DND_LEAVE_EVENT
:
return
handle_leave_event
();
case
DND_POSITION_EVENT
:
return
handle_position_event
(
params
);
...
...
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