Author Topic: Open file from command line - Focus not set to vs  (Read 2352 times)

Exolon

  • Community Member
  • Posts: 46
  • Hero Points: 5
  • https://blog.mdb977.de/
Open file from command line - Focus not set to vs
« 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


patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1818
  • Hero Points: 151
Re: Open file from command line - Focus not set to vs
« Reply #1 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.

patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1818
  • Hero Points: 151
Re: Open file from command line - Focus not set to vs
« Reply #2 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.

Exolon

  • Community Member
  • Posts: 46
  • Hero Points: 5
  • https://blog.mdb977.de/
Re: Open file from command line - Focus not set to vs
« Reply #3 on: September 26, 2018, 06:45:00 AM »
Thanks for the information.

I'm using Xfwm4.

patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1818
  • Hero Points: 151
Re: Open file from command line - Focus not set to vs
« Reply #4 on: September 26, 2018, 05:58:31 PM »
This is fixed for the next drop.

patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1818
  • Hero Points: 151
Re: Open file from command line - Focus not set to vs
« Reply #5 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.