XQuartz icon indicating copy to clipboard operation
XQuartz copied to clipboard

Xquartz 2.8.5: Focus on new windows not working reliably

Open sirainen opened this issue 2 years ago • 5 comments

After upgrading to Sonoma, I've noticed that launching X applications no longer brings focus to it. I see there is "Focus on new windows" setting, which I tried disabling and enabling again, but that didn't help. I did notice for a while that it was working, but soon again it stopped working.

Simple steps to reproduce:

  • Start Terminal
  • Type xterm
  • type some text
  • Notice that text goes to Terminal, not xterm

sirainen avatar Nov 29 '23 21:11 sirainen

Related to #328 or #363 or #293 ?

raoultrines avatar Dec 04 '23 10:12 raoultrines

There are some security changes in macOS Sonoma related to switching focus of the active window. XQuartz might need to adapt.

jeremyhu avatar Dec 08 '23 05:12 jeremyhu

I'm also seeing this, one of those things I couldn't put my finger on until now. Another - this is just fyi, since I don't think I have enough understanding of the mechanics of the code to offer a bug report - is that running Emacs client (Linux 26.1, 27.1, 27.2) over X11 to XQuartz server does strange things to frame (window) size. Thanks to the team for this project!

kmpeterson avatar Apr 03 '24 15:04 kmpeterson

I was trying to run xterm -e <my_app>.

I am running Sequoia 15.0.1 with XQuartz 2.8.5. After a restart, XQuartz passes the keyboard focus to xterm once, then stops.

My workaround is open -a XQuartz && xterm -e <my_app>.

This seems to work. If you can forsee any horrible side-effects, please let me know.

Also needs Secure Keyboard Entry disabled if you are running from a Mac terminal.

RichardKirk avatar Oct 31 '24 07:10 RichardKirk

open -a XQuartz && xterm -e

that doesn't work for me. Doesn't get the focus of input fields. Buttons work normal.

wagnst avatar Dec 04 '24 14:12 wagnst