Newly created gvim window not focused, existing gvim window is focused instead
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 35/100
- Issue-Typ
- Bug
- Klarheit
- Muss geklärt werden
- Aktivitätsstatus
- Veraltet
- Tech-Stack
- macos, vim
- Bereich
- desktop, operating-systems
Rechercherichtung
Beginne damit, das Fokusproblem mit dem Terminal-Befehl gvim unter macOS 11.1 zu reproduzieren, insbesondere bei mehreren Monitoren und Desktops, und vergleiche das Verhalten mit issue #83. Die Arbeit ist abgeschlossen, wenn ein neu erstelltes gvim-Fenster zuverlässig den Fokus erhält statt eines bereits vorhandenen gvim-Fensters.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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:
- Open a terminal.
- Type
gvim. - A new gvim instance popped up.
- 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
- Vorherrschende Sprache
- Vim Script
- Sterne
- 7.9k
- Forks
- 691
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beitragsleitfaden
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus macvim-dev/macvim
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
macvim-dev/macvim#1697 · 5 Kommentare ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
macvim-dev/macvim#1658 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
macvim-dev/macvim#1657 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
macvim-dev/macvim#1655 ·
-
Schwierigkeit 2/5 Ein halber Tag Anfängerfreundlichkeit 72/100
macvim-dev/macvim#1653 ·
Alle Issues in macvim-dev/macvim
Ähnliche Issues
-
`--app` focus through the daemon can pick an off-screen window and refuse with `axElementNotFound` Offenclawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:other issue-rating: 🦞 diamond lobster no-stale P1
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 92/100
CachyOS/cachyos-aur-derived#754 ·
-
bug draftomen size: S
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
andreagrandi/draftomen#681 ·
-
Startup alerts tell the user to click Save and Apply, but the settings button is labelled Save Offenbug good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
alexgorbatchev/simple-ptt#11 ·