changed osascript (not done)

This commit is contained in:
WarmUpTill 2016-06-28 22:12:04 +02:00 committed by GitHub
parent cf5e32561e
commit c538fc48e1

View File

@ -165,6 +165,22 @@ bool Switcher::isWindowFullscreen() {
#ifdef __APPLE__
bool Switcher::isWindowFullscreen() {
//TODO: implement the MAC OS version
string cmd = "osascript -e
'global frontApp, frontAppName, windowTitle
set windowTitle to ""
tell application \"System Events\"
set frontApp to first application process whose frontmost is true
set frontAppName to name of frontApp
tell process frontAppName
tell (1st window whose value of attribute \"AXMain\" is true)
set windowTitle to value of attribute \"AXTitle\"
end tell
end tell
end tell
tell application frontAppName
get bounds of front window
end tell'";
return false;
}
#endif