Author Topic: Cursor position changes on Window Focus Loss  (Read 404 times)

photometer

  • Community Member
  • Posts: 56
  • Hero Points: 0
Cursor position changes on Window Focus Loss
« on: August 21, 2020, 03:49:56 pm »
This happens on Windows V25.2 (have not checked it on Linux).
Symptom-1:
I am editing a file somewhere in the middle of the file. I have a dual monitor. So, I select an app on the second monitor, thus the SE window loses focus. I can see that SE is still showing the line that I am working on, in the SE window. If I click back on the SE window to resume my coding, the cursor will jump to top of the file.
Symptom-2:
SE moves the cursor to top of the file as soon as the SE window loses focus.

Reproducibility:
Around once a week. I generally restart SE and the issue goes away. However today even after restarting three times, I see this issue.

photometer

  • Community Member
  • Posts: 56
  • Hero Points: 0
Re: Cursor position changes on Window Focus Loss
« Reply #1 on: August 21, 2020, 04:39:41 pm »
I rebooted my computer and still see this issue. It is very annoying. I am using the retrace macro to get back to the current cursor position. Btw, I see this issue even if the retrace macro is not running.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 5784
  • Hero Points: 461
Re: Cursor position changes on Window Focus Loss
« Reply #2 on: August 21, 2020, 11:23:15 pm »
Please post your user.cfg.xml. Maybe there's an option that makes this happen.

photometer

  • Community Member
  • Posts: 56
  • Hero Points: 0
Re: Cursor position changes on Window Focus Loss
« Reply #3 on: August 25, 2020, 01:55:26 am »
I have opened a case CAS-72614-7WPM and uploaded my user.cfg.xml

Additional piece of information: My source code is on NFS and has high latency. My tag files are on the local file-system. I am wondering if this issue happens when Background tagging is working.

photometer

  • Community Member
  • Posts: 56
  • Hero Points: 0
Re: Cursor position changes on Window Focus Loss
« Reply #4 on: August 25, 2020, 10:12:35 pm »
Another information:
If the SE loses focus, the SE icon on the bottom windows bar will be flashing as shown in the attachment. Also, I see the green clock icon on the bottom of SE and it would be saying Updating workspace tag file


photometer

  • Community Member
  • Posts: 56
  • Hero Points: 0
Re: Cursor position changes on Window Focus Loss
« Reply #5 on: August 26, 2020, 06:32:33 pm »
I can confirm this issue persists on v25 Beta3

Dennis

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 3276
  • Hero Points: 463
Re: Cursor position changes on Window Focus Loss
« Reply #6 on: August 26, 2020, 07:01:24 pm »
Check [config]/logs/stack.log to verify that you are not encountering a Slick-C problem.

What programming language are you working in when this happens?

SlickEdit Support

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 339
  • Hero Points: 26
Re: Cursor position changes on Window Focus Loss
« Reply #7 on: August 26, 2020, 07:21:13 pm »
Hi photometer,

Did you save and load the macro we sent you this morning?

Best,
SlickEdit Support

SlickEdit Support

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 339
  • Hero Points: 26
Re: Cursor position changes on Window Focus Loss
« Reply #8 on: August 26, 2020, 08:48:34 pm »
Apologies photometer!

We sent you the wrong instructions.

With the macro file saved to your local machine, in SlickEdit you will need to load this file via Macro-->Load Module, navigating to the file to load it.  The editor should then display "Module(s) Loaded" on the status bar.

Regards,
SlickEdit Support

photometer

  • Community Member
  • Posts: 56
  • Hero Points: 0
Re: Cursor position changes on Window Focus Loss
« Reply #9 on: August 27, 2020, 05:00:06 pm »
I have downloaded and loaded the macro. Am I supposed to see some kind of popup when the cursor jumps to top? Do I need to load the macro every time I start the SE application?

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 5784
  • Hero Points: 461
Re: Cursor position changes on Window Focus Loss
« Reply #10 on: August 27, 2020, 05:22:02 pm »
This macro will remain loaded unless you delete vslick.sta, change your config directory, or update to beta 4 (not available).

If this macro detects a line number change during a timer feature, it will display a pop up debug window with the function name.