c++ - Activate previous process on Mac -
is possible determine previous active process activate it?
mac os x / c++ / carbon.
getnextprocess()
not refer z-order of processes, need real previous.
the original task bring user work when closes info window. window of app gets focus, if any, or there no window focus. unusable.
update. i'm using following workaround: 500ms timer watches getfrontprocess()
not equal getcurrentprocess()
. calling setforegroundprocess()
last stored serial number.
you can zorder of processes this place. last process should 1 looking for. or change code read in reverse.
Comments
Post a Comment