mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2024-11-11 01:55:38 +08:00
1fb121474e
https://github.com/Proxmark/proxmark3/pull/689 OS X has a global menu bar and a per app dock icon. Therefore, all GUI applications launched from a terminal will become focused - even if they don’t show any windows. Thereby the terminal loses focus. Since is it very annoying to re-focus the terminal after each proxmark client launch, this change makes the client unfocusable during launch and restores the regular behaviour when a window is created.
19 lines
No EOL
628 B
C
19 lines
No EOL
628 B
C
//-----------------------------------------------------------------------------
|
|
// (c) 2018 AntiCat
|
|
//
|
|
// This code is licensed to you under the terms of the GNU GPL, version 2 or,
|
|
// at your option, any later version. See the LICENSE.txt file for the text of
|
|
// the license.
|
|
//-----------------------------------------------------------------------------
|
|
// macOS framework bindings
|
|
//-----------------------------------------------------------------------------
|
|
|
|
#ifndef UTIL_DARWIN_H__
|
|
#define UTIL_DARWIN_H__
|
|
|
|
void disableAppNap(const char* reason);
|
|
void enableAppNap();
|
|
void makeUnfocusable();
|
|
void makeFocusable();
|
|
|
|
#endif |