Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Opening Spacemacs with emacsclient results in input focus but not display focus #7078

Closed
ghost opened this issue Sep 10, 2016 · 2 comments
Closed
Labels
- Bug tracker - Should report upstream stale marked as a stale issue/pr (usually by a bot)

Comments

@ghost
Copy link

ghost commented Sep 10, 2016

Description

When starting Spacemacs via emacsclient, Spacemacs does not receive focus from the window manager, i.e. the Spacemacs window (or "frame", I think, in Emacs terminology) is not brought to the front.

Anton Tarasenko reported a similar issue affecting Emacs in 2011, as did Gyom on EmacsWiki in 2010, so perhaps this is an upstream bug.

Reproduction guide

In Bash on Debian 8 "Jessie" GNU/Linux with Gnome 3, open Spacemacs (GUI rather than terminal). Then open Terminal, maximise the Terminal window, and do as follows:

$ touch foo.txt
$ emacsclient -a "" foo.txt

Observed behaviour:

Spacemacs is not brought to the front, so because Terminal is maximised, the Spacemacs window (i.e. "frame" in Emacs terminology) is not visible. That is, Spacemacs does not receive display focus.

However, Spacemacs does get input focus. For example, if I next type ifoo<Esc> then "foo" is inserted at the beginning of the buffer. I can't actually see that it has been inserted, because Spacemacs is still hidden behind the Terminal, but if I Alt-Tab to Spacemacs, then I can see Spacemacs and can see the inserted text.

Expected behaviour:

The Spacemacs window (i.e. "frame" in Emacs terminology) would receive both display focus and window focus. That is:

  • it would be brought to the front, so that any other windows are behind it, and
  • key-presses from the keyboard would be sent to it.

As described above, the second of these two things happens as desired, but the first does not.

System Info

  • OS: gnu/linux
  • Emacs: 24.4.1
  • Spacemacs: 0.105.22
  • Spacemacs branch: master (rev. 9f9faa4)
  • Graphic display: t
  • Distribution: spacemacs
  • Editing style: vim
  • Completion: helm
  • Layers:
(emacs-lisp finance html markdown org)
@TheBB
Copy link
Collaborator

TheBB commented Sep 12, 2016

Certainly not a Spacemacs bug. I use a wrapper script that fixes it: https://github.com/TheBB/dotfiles/blob/master/scripts/ecli#L5 I have reproed it before with stock Emacs too.

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!

@github-actions github-actions bot added the stale marked as a stale issue/pr (usually by a bot) label Feb 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
- Bug tracker - Should report upstream stale marked as a stale issue/pr (usually by a bot)
Projects
Upstream bugs
To be reported
Development

No branches or pull requests

1 participant