Disable (or filter) hot corners

I have a background app that when a specific app is open I want to disable any hot corners. Do I need to "intercept" or "filter" these events? Or perhaps another way to achieve this that I am not thinking about?

Note. The application is written in Objective-C.

+2


source to share


1 answer


I think the answer is "really".

The app has some options for itself, but that doesn't match your desire to do it in a background app to affect another app. These options include capturing the display (s) and possibly adjusting presentation options ( -[NSApplication setPresentationOptions:]

).



You can try to set up the "Quartz Event" and just internalize any mouse movement event that is (or will go outside) the screen corner (s). I don't know if you want to turn off all hot corners or just those corners assigned to a specific function. You can query hot corners using AppleScripts as shown below. Translating this script into a script bridge is left as an exercise for the reader:

tell application "System Events"
    get activity of top left screen corner of expose preferences
end tell

      

+1


source







All Articles