#include <string.h>
#include "proxgui.h"
#include <QtGui>
+
+extern "C" {
+#include "util_darwin.h"
+}
//#include <ctime>
bool g_useOverlays = false;
return;
if (!plotwidget)
+ {
+#if defined(__MACH__) && defined(__APPLE__)
+ makeFocusable();
+#endif
plotwidget = new ProxWidget();
+ }
plotwidget->show();
}
//start proxmark thread after starting event loop
QTimer::singleShot(200, this, SLOT(_StartProxmarkThread()));
+#if defined(__MACH__) && defined(__APPLE__)
+ //Prevent the terminal from loosing focus during launch by making the client unfocusable
+ makeUnfocusable();
+#endif
+
plotapp->exec();
}