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
5f5807cb
Commit
5f5807cb
authored
Jan 11, 2017
by
Ken Thomases
Committed by
Alexandre Julliard
Jan 11, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winemac: Periodically check for pasteboard changes using a timer.
Signed-off-by:
Ken Thomases
<
ken@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
525c0b17
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
clipboard.c
dlls/winemac.drv/clipboard.c
+6
-0
No files found.
dlls/winemac.drv/clipboard.c
View file @
5f5807cb
...
...
@@ -1664,6 +1664,7 @@ static void grab_win32_clipboard(BOOL changed)
last_clipboard_update
=
GetTickCount64
();
set_win32_clipboard_formats_from_mac_pasteboard
(
types
);
CloseClipboard
();
SetTimer
(
clipboard_hwnd
,
1
,
CLIPBOARD_UPDATE_DELAY
,
NULL
);
}
...
...
@@ -1713,9 +1714,14 @@ static LRESULT CALLBACK clipboard_wndproc(HWND hwnd, UINT msg, WPARAM wp, LPARAM
case
WM_RENDERFORMAT
:
render_format
(
wp
);
break
;
case
WM_TIMER
:
if
(
!
is_clipboard_owner
)
break
;
grab_win32_clipboard
(
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