Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Cursor is missing when window focus is changed #3278

Closed

Description

@gerep

I'm using Atom version: 0.121.0 for Linux(Manjaro), this problem wasn't happening on the previous version.

I tried to run atom --safe but the problem persist.

The cursor is gone but I still have the line highlighted.

These are the steps I follow to reproduce the error:

  • Change windows with ALT+TAB and set the focus to this other window, also using ALT+TAB go back to Atom, the cursor is gone.
  • If I make this process but instead of ALT+TAB I click on the window button on my panel, it works because on each click I'm also setting the focus to the window.

Activity

  1. gerep commented on Aug 20, 2014

    @gerep
    Author

    I have updated to the version 0.123.0 and the problem persists

    @izuzak, thanks for the flags

  2. underoot commented on Aug 27, 2014

    @underoot

    I've this problem too! Arch Linux, 64-bit, Atom 0.124.0-5ba86b3

  3. kevinsawicki commented on Aug 27, 2014

    @kevinsawicki
    Contributor

    Do you have the tree view open on the left side when this happens and does it appear to gain focus when switching to the window?

  4. underoot commented on Aug 27, 2014

    @underoot

    Yes, I've open tree view and when i try switch focus to tree and back to editor - cursor appears.

  5. gerep commented on Aug 28, 2014

    @gerep
    Author

    I have updated to the version 0.124.0 and the problem persists

  6. winstliu commented on Aug 29, 2014

    @winstliu
    Contributor

    Sorry if I'm misunderstanding things, but isn't this just #2122?
    (The linked issue references not being able to reproduce 2122, but this doesn't)

  7. alandarev commented on Sep 11, 2014

    @alandarev
    Contributor

    @50Wliu the reason might be same, but holding system buttons as described in #2122 is OK here.

    But once I lose focus of an application and regain it through NOT mouse-clicking, the caret is gone. Mouse click restores the caret.

    @kevinsawicki , toggling tree-view restores caret.. Though it still disappears on focus lose/gain independent whether tree is open.

    P.S. Running Arch Linux with Awesome WM. (might be relevant)

  8. SvetlozarKalchev commented on Sep 11, 2014

    @SvetlozarKalchev

    Linux Mint 16(3.12.2 kernel) here. Atom doesn't seem to lose focus when using Alt-Tab or mouse clicks to change windows. However, it does once I use Show Desktop(mapped to win+D) and return to Atom with it again.

    Where can I see how atom handles focus events?

  9. gerep commented on Sep 11, 2014

    @gerep
    Author

    Fixed with version 0.126.0

    Thanks a lot!

  10. lukad commented on Sep 11, 2014

    @lukad

    I can confirm this.
    Thanks!

  11. alandarev commented on Sep 12, 2014

    @alandarev
    Contributor

    Thank you very much! That relatively small bug was rather frustrating from user experience perspective.

  12. reopened this on Sep 12, 2014
  13. 10 remaining items

  14. seanCodes commented on May 26, 2015

    @seanCodes

    Issue appears for me on Mac OS X 10.10 running Atom 0.201.0. Happens when simply clicking from one tab to another. Cursor disappears and editor doesn't seem to be focused. Switching applications using Cmd+Tab or keybindings (Cmd+Shift+[ or ]), however, works fine.

  15. lesnyrysiek commented on May 26, 2015

    @lesnyrysiek

    Then it has something to do with focus events.

  16. StatelessCat commented on May 31, 2015

    @StatelessCat

    Still the problem on plasma-desktop 5.3.1 :/
    Even with CTRL TAB, Atom dont get back the focus.

    Yes @rustedwolf I think it's related to focus event.

  17. knd775 commented on Jun 2, 2015

    @knd775

    This issue just started occurring for me after a recent update. Same version and env as @seanCodes.

  18. metalelf0 commented on Jun 24, 2015

    @metalelf0

    I have the same problem on OSX 10.10, atom version 0.211, but only when Atom is fullscreen.

    Steps to reproduce:

    • make atom window fullscreen
    • cmd+tab to another open app
    • cmd+tab back to atom
    • typing works, but cursor is not on screen

    Workaround:

    • make atom window fullscreen
    • cmd+tab to another open app
    • cmd+tab back to atom, but hold alt before releasing cmd and tab
    • cursor is now appearing on screen.
  19. apowers commented on Jul 2, 2015

    @apowers

    I have this problem on Ubuntu 14.04 (xfce4) and Atom 1.0.0

    Steps to reproduce:

    Use CTRL+ALT+Left to switch to another workspace.
    Use CTRL+ALT+Right to switch to workspace with Atom
    Typing works but cursor is invisible.
    Hiding the tree view reveals the cursor, unhiding the tree hides the cursor.
    Atom may be in Full Screen or Window mode, same behavior.

    Workarounds

    • Use CTRL+TAB or ALT+# to switch to another tab, cursor is revealed.
    • Click anywhere in the editor window, cursor appears at that position.
    • Press CTRL+SHIFT+P then ESC
    • Press ALT+TAB twice to switch to another application in the same workspace and switch back to Atom. This isn't a reliable fix, sometimes it works and sometimes it doesn't work unless you press F11 to toggle full screen first.
  20. wwwtyro commented on Jul 20, 2015

    @wwwtyro

    I also have this issue. I'm on XFCE. After switching desktops back to the atom editor, I can interact with atom via my keyboard, but the cursor has disappeared. Doesn't reappear until I click it with my mouse.

  21. tiemay commented on Aug 2, 2015

    @tiemay

    @apowers

    • Press ALT+TAB twice to switch to another application in the same workspace and switch back to Atom. This isn't a reliable fix, sometimes it works and sometimes it doesn't work unless you press F11 to toggle full screen first.

    For me, consistently if my mouse is over atom when switching back to atom, the cursor disappears -- if my mouse is outside the atom window when switching back to atom, the cursor appears.

    Kubuntu 14.04
    Atom 1.0.3

  22. mnquintana commented on Aug 12, 2015

    @mnquintana
    Contributor

    This looks like the same issue as #3622 – closing in favor of that issue because it has more comments and helpful GIFs.

  23. lock commented on Jan 21, 2019

    @lock

    This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!

  24. locked as resolved and limited conversation to collaborators on Jan 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buglinux

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions