I'm fighting the same focus problem in GTK3+. It seems the Gnome community want us to spend most of the day clicking windows to get them up front. wmctrl doesn't work with my setup. What function was changed from SciTE 2.29 to 3.00 that now causes SciTE to "play nice," for I'd like to revert that logic?
Details follow (for those that are interested):
I was originally using SciTE 2.28, which would dutifully pop forward when I would edit a file from the command-line (I'm using multi-buffers). The update to 3.22 broke this. I'm not as familiar with GTK as I am with QT, so bear with me. You say to use the "gtk_window_present" command, which I see is still present in the code. Where is this "drop code" area that I need to employ this. Better yet, just let me know which function I need to modify so that I can diff between 2.29 and 3.00 and see where I need to make the change. Is it in Scintilla or SciTE?
I tried the wmctrl hack, but I access the server through Exceed on my Windows work machine. wmctrl can not even see the SciTE window (wmctrl -l only shows desktop and panel widgets). So, it looks like my best option is to modify the SciTE source and re-compile. Besides, a text editor is often called from a shell, so "playing nice" with Gnome's bizarre windows policy is counter-productive to how a programmer works with a text editor anyways. At the very least, I'd like to see if I can add a compiler option. Any help would be greatly appreciated!
- Jim