mirror of
https://github.com/debauchee/barrier.git
synced 2026-02-08 12:53:53 +08:00
Ignore deprecated warning on Mac
This commit is contained in:
committed by
Andrew Nelless
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
|
||||
|
||||
Reference in New Issue
Block a user