[R-SIG-Mac] R-GUI Window Not Stealing Focus after Using Mission Control.

Brandon Hurr br@ndon@hurr @end|ng |rom gm@||@com
Thu May 21 02:39:19 CEST 2020


Simon

I mentioned this in 2016 at UseR!, but haven't followed through on my
offer to show you what I mean until today. I use Mission Control via
"Hot Corners" so I can flip between programs quickly. For a long time
I've had this issue where if I am using R-GUI and use Mission Control,
R doesn't steal focus back from the previous program.

What you can hopefully see in the video linked below is me opening an
R script, opening terminal, copying my username, Mission Control
(upper right corner), switch to R (works fine, steals focus), Mission
Control again, switch to Terminal, copy the TTY, Mission Control,
Switch to R (doesn't steal focus from Terminal).

Notice how R is in the upper menu bar, but the R window I selected is
not in the foreground. If you type, you are typing in that window, but
if there is another window in front that covers it, you cannot see it.
If you Mission Control again and select an R window (GUI or editor) it
brings it to the foreground.

It appears to require some sort of interaction (mouse or keyboard) to
cause this to happen. If I merely switch back and forth with Mission
Control without clicking or typing it switches and pulls focus.

Video here:
https://photos.app.goo.gl/aFLb574xV2YxwdRe8

Thanks,
Brandon



More information about the R-SIG-Mac mailing list