mirror of
https://github.com/debauchee/barrier.git
synced 2024-11-23 00:56:21 +03:00
Ignore deprecated warning on Mac
This commit is contained in:
parent
e58bbd197f
commit
ed16db9df6
@ -946,7 +946,10 @@ void MainWindow::setVisible(bool visible)
|
||||
#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1070 // lion
|
||||
// dock hide only supported on lion :(
|
||||
ProcessSerialNumber psn = { 0, kCurrentProcess };
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||
GetCurrentProcess(&psn);
|
||||
#pragma GCC diagnostic pop
|
||||
if (visible)
|
||||
TransformProcessType(&psn, kProcessTransformToForegroundApplication);
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user