SlickEdit Community

Archived Read Only Forums => SlickEdit 2018 v23 Beta Discussion => Topic started by: Exolon on September 24, 2018, 09:31:09 am

Title: Open file from command line - Focus not set to vs
Post by: Exolon on September 24, 2018, 09:31:09 am
I have a single instance of VS running and want to open a file from the command line. After typing "vs <file>" SlickEdit come in the foreground and opens the file, but unfortunately, it does not get the focus correctly. Every time I have to grab my mouse and set the focus to the editor window.

My system:

OS Version: Ubuntu 16.04.5 LTS
Kernel Level: 4.4.0-134-generic
Processor Architecture: x86_64

Title: Re: Open file from command line - Focus not set to vs
Post by: patrick on September 25, 2018, 12:49:45 pm
Reproduced it.  It's not consistent with what we do on other platforms. I'll have to look at some different window managers on linux and see if it's WM specific or just happens in general.  Thanks for the report.
Title: Re: Open file from command line - Focus not set to vs
Post by: patrick on September 25, 2018, 02:51:58 pm
What window manager are you using? The default Unity, or something else?

On Ubuntu 17.10, I can only see this problem with GNOME, which seems to be partly due to the focus stealing prevention they baked in.  My 16.04 VM needs to be re-installed, so I won't be able to reproduce on your version till later today.
Title: Re: Open file from command line - Focus not set to vs
Post by: Exolon on September 26, 2018, 06:45:00 am
Thanks for the information.

I'm using Xfwm4.
Title: Re: Open file from command line - Focus not set to vs
Post by: patrick on September 26, 2018, 05:58:31 pm
This is fixed for the next drop.
Title: Re: Open file from command line - Focus not set to vs
Post by: patrick on September 27, 2018, 05:00:27 pm
Qualification: this is fixed for XFCE4/xfwm for the next drop.  For GNOME, the editor gets the focus now, but doesn't always get raised above other overlapping windows.