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
d4f8366f
Commit
d4f8366f
authored
Jan 10, 2017
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Periodically check for selection changes using a timer.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
1137e350
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
clipboard.c
dlls/winex11.drv/clipboard.c
+6
-0
No files found.
dlls/winex11.drv/clipboard.c
View file @
d4f8366f
...
...
@@ -1852,6 +1852,7 @@ static BOOL request_selection_contents( Display *display, BOOL changed )
last_size
=
size
;
last_clipboard_update
=
GetTickCount64
();
CloseClipboard
();
SetTimer
(
clipboard_hwnd
,
1
,
SELECTION_UPDATE_DELAY
,
NULL
);
return
TRUE
;
}
...
...
@@ -1888,9 +1889,14 @@ static LRESULT CALLBACK clipboard_wndproc( HWND hwnd, UINT msg, WPARAM wp, LPARA
case
WM_RENDERFORMAT
:
if
(
render_format
(
wp
))
rendered_formats
++
;
break
;
case
WM_TIMER
:
if
(
!
is_clipboard_owner
)
break
;
request_selection_contents
(
thread_display
(),
FALSE
);
break
;
case
WM_DESTROYCLIPBOARD
:
TRACE
(
"WM_DESTROYCLIPBOARD: lost ownership
\n
"
);
is_clipboard_owner
=
FALSE
;
KillTimer
(
hwnd
,
1
);
break
;
}
return
DefWindowProcW
(
hwnd
,
msg
,
wp
,
lp
);
...
...
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