You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Repository navigation
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
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.
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.
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.
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.
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.
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.
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!
Activity
gerep commentedon Aug 20, 2014
I have updated to the version 0.123.0 and the problem persists
@izuzak, thanks for the flags
underoot commentedon Aug 27, 2014
I've this problem too! Arch Linux, 64-bit, Atom 0.124.0-5ba86b3
kevinsawicki commentedon Aug 27, 2014
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?
underoot commentedon Aug 27, 2014
Yes, I've open tree view and when i try switch focus to tree and back to editor - cursor appears.
gerep commentedon Aug 28, 2014
I have updated to the version 0.124.0 and the problem persists
winstliu commentedon Aug 29, 2014
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)
alandarev commentedon Sep 11, 2014
@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)
SvetlozarKalchev commentedon Sep 11, 2014
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?
gerep commentedon Sep 11, 2014
Fixed with version 0.126.0
Thanks a lot!
lukad commentedon Sep 11, 2014
I can confirm this.
Thanks!
alandarev commentedon Sep 12, 2014
Thank you very much! That relatively small bug was rather frustrating from user experience perspective.
10 remaining items
seanCodes commentedon May 26, 2015
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.
lesnyrysiek commentedon May 26, 2015
Then it has something to do with focus events.
StatelessCat commentedon May 31, 2015
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.
knd775 commentedon Jun 2, 2015
This issue just started occurring for me after a recent update. Same version and env as @seanCodes.
metalelf0 commentedon Jun 24, 2015
I have the same problem on OSX 10.10, atom version 0.211, but only when Atom is fullscreen.
Steps to reproduce:
Workaround:
apowers commentedon Jul 2, 2015
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
wwwtyro commentedon Jul 20, 2015
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.
tiemay commentedon Aug 2, 2015
@apowers
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
mnquintana commentedon Aug 12, 2015
This looks like the same issue as #3622 – closing in favor of that issue because it has more comments and helpful GIFs.
lock commentedon Jan 21, 2019
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!