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
305d89f1
Commit
305d89f1
authored
Sep 14, 2016
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Return the owner window in the close_clipboard request.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
2bf890d9
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
10 deletions
+10
-10
clipboard.c
dlls/user32/clipboard.c
+5
-5
server_protocol.h
include/wine/server_protocol.h
+2
-2
clipboard.c
server/clipboard.c
+1
-1
protocol.def
server/protocol.def
+1
-1
trace.c
server/trace.c
+1
-1
No files found.
dlls/user32/clipboard.c
View file @
305d89f1
...
...
@@ -546,8 +546,8 @@ BOOL WINAPI OpenClipboard( HWND hwnd )
*/
BOOL
WINAPI
CloseClipboard
(
void
)
{
HWND
viewer
=
0
;
BOOL
ret
,
owner
=
FALSE
;
HWND
viewer
=
0
,
owner
=
0
;
BOOL
ret
;
TRACE
(
"() Changed=%d
\n
"
,
bCBHasChanged
);
...
...
@@ -565,7 +565,7 @@ BOOL WINAPI CloseClipboard(void)
if
((
ret
=
!
wine_server_call_err
(
req
)))
{
viewer
=
wine_server_ptr_handle
(
reply
->
viewer
);
owner
=
reply
->
owner
;
owner
=
wine_server_ptr_handle
(
reply
->
owner
)
;
}
}
SERVER_END_REQ
;
...
...
@@ -574,10 +574,10 @@ BOOL WINAPI CloseClipboard(void)
if
(
bCBHasChanged
)
{
if
(
owner
)
USER_Driver
->
pEndClipboardUpdate
();
USER_Driver
->
pEndClipboardUpdate
();
bCBHasChanged
=
FALSE
;
}
if
(
viewer
)
SendNotifyMessageW
(
viewer
,
WM_DRAWCLIPBOARD
,
(
WPARAM
)
GetClipboardOwner
()
,
0
);
if
(
viewer
)
SendNotifyMessageW
(
viewer
,
WM_DRAWCLIPBOARD
,
(
WPARAM
)
owner
,
0
);
return
TRUE
;
}
...
...
include/wine/server_protocol.h
View file @
305d89f1
...
...
@@ -4483,7 +4483,7 @@ struct close_clipboard_reply
{
struct
reply_header
__header
;
user_handle_t
viewer
;
int
owner
;
user_handle_t
owner
;
};
...
...
@@ -6365,6 +6365,6 @@ union generic_reply
struct
terminate_job_reply
terminate_job_reply
;
};
#define SERVER_PROTOCOL_VERSION 51
6
#define SERVER_PROTOCOL_VERSION 51
7
#endif
/* __WINE_WINE_SERVER_PROTOCOL_H */
server/clipboard.c
View file @
305d89f1
...
...
@@ -293,7 +293,7 @@ DECL_HANDLER(close_clipboard)
if
(
req
->
changed
)
clipboard
->
seqno
++
;
reply
->
viewer
=
close_clipboard
(
clipboard
);
reply
->
owner
=
(
clipboard
->
owner_thread
&&
clipboard
->
owner_thread
->
process
==
current
->
process
)
;
reply
->
owner
=
clipboard
->
owner_win
;
}
...
...
server/protocol.def
View file @
305d89f1
...
...
@@ -3171,7 +3171,7 @@ enum caret_state
int changed; /* did it change since the open? */
@REPLY
user_handle_t viewer; /* first clipboard viewer */
int owner; /* is the process already the owner?
*/
user_handle_t owner; /* current clipboard owner
*/
@END
...
...
server/trace.c
View file @
305d89f1
...
...
@@ -3752,7 +3752,7 @@ static void dump_close_clipboard_request( const struct close_clipboard_request *
static
void
dump_close_clipboard_reply
(
const
struct
close_clipboard_reply
*
req
)
{
fprintf
(
stderr
,
" viewer=%08x"
,
req
->
viewer
);
fprintf
(
stderr
,
", owner=%
d
"
,
req
->
owner
);
fprintf
(
stderr
,
", owner=%
08x
"
,
req
->
owner
);
}
static
void
dump_set_clipboard_info_request
(
const
struct
set_clipboard_info_request
*
req
)
...
...
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