mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-02-23 11:07:10 +01:00
[wxwidgets] Apply fix for copy and paste macOS (#11178)
See wxWidget's Trac #18553
This commit is contained in:
parent
4b7d4f53dd
commit
f2314218cd
@ -1,5 +1,5 @@
|
|||||||
Source: wxwidgets
|
Source: wxwidgets
|
||||||
Version: 3.1.3
|
Version: 3.1.3-1
|
||||||
Homepage: https://github.com/wxWidgets/wxWidgets
|
Homepage: https://github.com/wxWidgets/wxWidgets
|
||||||
Description: wxWidgets is a widget toolkit and tools library for creating graphical user interfaces (GUIs) for cross-platform applications.
|
Description: wxWidgets is a widget toolkit and tools library for creating graphical user interfaces (GUIs) for cross-platform applications.
|
||||||
Build-Depends: zlib, libpng, tiff, expat
|
Build-Depends: zlib, libpng, tiff, expat
|
||||||
|
26
ports/wxwidgets/fix-macos-clipboard.patch
Normal file
26
ports/wxwidgets/fix-macos-clipboard.patch
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
diff --git a/src/osx/carbon/clipbrd.cpp b/src/osx/carbon/clipbrd.cpp
|
||||||
|
index 274e200..6012d37 100644
|
||||||
|
--- a/src/osx/carbon/clipbrd.cpp
|
||||||
|
+++ b/src/osx/carbon/clipbrd.cpp
|
||||||
|
@@ -60,7 +60,11 @@ void wxClipboard::Clear()
|
||||||
|
|
||||||
|
bool wxClipboard::Flush()
|
||||||
|
{
|
||||||
|
- return false;
|
||||||
|
+ wxCHECK_MSG( m_open, false, wxT("clipboard not open") );
|
||||||
|
+
|
||||||
|
+ wxOSXPasteboard::GetGeneralClipboard()->Flush();
|
||||||
|
+
|
||||||
|
+ return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool wxClipboard::Open()
|
||||||
|
@@ -105,6 +109,8 @@ bool wxClipboard::AddData( wxDataObject *data )
|
||||||
|
|
||||||
|
data->WriteToSink(wxOSXPasteboard::GetGeneralClipboard());
|
||||||
|
|
||||||
|
+ Flush();
|
||||||
|
+
|
||||||
|
m_data = data;
|
||||||
|
|
||||||
|
return true;
|
@ -5,7 +5,7 @@ vcpkg_from_github(
|
|||||||
REF v3.1.3
|
REF v3.1.3
|
||||||
SHA512 4ecb5c2d13f9bda7aa3c12e887c351a0004509ec24bdd440542bec67e1b6dca20e7838a01236a71dd3cf2e1ba0653c40878047f406464cb2c9ee07c26d6f2599
|
SHA512 4ecb5c2d13f9bda7aa3c12e887c351a0004509ec24bdd440542bec67e1b6dca20e7838a01236a71dd3cf2e1ba0653c40878047f406464cb2c9ee07c26d6f2599
|
||||||
HEAD_REF master
|
HEAD_REF master
|
||||||
PATCHES disable-platform-lib-dir.patch
|
PATCHES disable-platform-lib-dir.patch fix-macos-clipboard.patch
|
||||||
)
|
)
|
||||||
|
|
||||||
set(OPTIONS)
|
set(OPTIONS)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user