macvim-dev / macvim-dev/macvim

Newly created gvim window not focused, existing gvim window is focused instead

Aperta
#1,156 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Lingua principale
Vim Script
Stelle
7.9k
Fork
691
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Describe the bug
When creating a new gvim window via terminal gvim command, sometimes the new pop-up window doesn't gain focus, instead, the pre-existing gvim window is focused. This causes minor annoyance because user would intuitively think he/she is typing into the new window without checking.

I suspect it has something to do with multi-monitor environment and each monitor has a separate desktop number. Sometimes I typed gvim in the terminal and the new gvim window was opened in another monitor. And in that case often the wrong window was focused. Maybe macvim will focus window instance on the desktop with lowest index number?

Not sure if this is related to #83.

I didn't find out the pattern to reliably reproduce the behavior yet.

To Reproduce
Detailed steps to reproduce the behavior:

  1. Open a terminal.
  2. Type gvim.
  3. A new gvim instance popped up.
  4. But the original gvim instance is focused.

Expected behavior
The new gvim instance is focused.

Environment (please complete the following information):

  • Vim version: 8.2.2164
  • OS: macOS 11.1
  • Terminal: iTerm2

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Inizia riproducendo il problema di focus con il comando da terminale gvim su macOS 11.1, soprattutto con più monitor e desktop, e confronta il comportamento con issue #83. Il lavoro è completo quando una finestra gvim appena creata riceve sistematicamente il focus invece di una finestra gvim esistente.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
macos, vim
Ambito
desktop, operating-systems
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.