[vim/vim] remove wayland focus stealing feature (PR #19984)

6 views
Skip to first unread message

Foxe Chen

unread,
Apr 15, 2026, 11:38:49 AM (5 days ago) Apr 15
to vim/vim, Subscribed

Resolves #18795. This feature is pretty much broken and I don't see any good reason for keeping it. Since we have the clipboard provider feature, this feature can be implemented using wl-clipboard (which I guess has a more reliable focus stealing method):

vim9script

def Available(): bool
    return executable("wl-copy") == 1 && executable("wl-paste") == 1
enddef

def Copy(reg: string, type: string, str: list<string>): void
    var args: string = "wl-copy"

    if reg == "*"
        args ..= " -p"
    endif

    system(args, str)
enddef

def Paste(reg: string): tuple<string, list<string>>
    var args: string = "wl-paste --type text/plain"

    if reg == "*"
        args ..= " -p"
    endif

    return ("", systemlist(args))
enddef

v:clipproviders["wl_clipboard"] = {
    available: Available,
    copy: {
        "+": Copy,
        "*": Copy
    },
    paste: {
        "+": Paste,
        "*": Paste
    }
}

set clipmethod=wl_clipboard

You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/19984

Commit Summary

  • 3f12fad remove wayland focus stealing feature

File Changes

(21 files)

Patch Links:


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19984@github.com>

Foxe Chen

unread,
Apr 15, 2026, 11:45:55 AM (5 days ago) Apr 15
to vim/vim, Push

@64-bitman pushed 1 commit.

  • 6e2cc83 remove wayland focus stealing feature


View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19984/before/3f12fad3dfefb61dc229eacc8b0289f0ac72c942/after/6e2cc83d92e2140866818adeb6f273af2d1af178@github.com>

Foxe Chen

unread,
Apr 15, 2026, 12:01:41 PM (5 days ago) Apr 15
to vim/vim, Push

@64-bitman pushed 1 commit.

  • ba3d47d remove wayland focus stealing feature

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19984/before/6e2cc83d92e2140866818adeb6f273af2d1af178/after/ba3d47d912f497a98a61f1b98de740d8e0c8fa39@github.com>

Foxe Chen

unread,
Apr 15, 2026, 12:08:57 PM (5 days ago) Apr 15
to vim/vim, Push

@64-bitman pushed 1 commit.

  • 7b3efc9 remove wayland focus stealing feature

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19984/before/ba3d47d912f497a98a61f1b98de740d8e0c8fa39/after/7b3efc97594cf178cfa8e824ebb58d647bd60c38@github.com>

Christian Brabandt

unread,
2:18 PM (4 hours ago) 2:18 PM
to vim/vim, Subscribed
chrisbra left a comment (vim/vim#19984)

Thanks, let me put this alternative into the docs, in case anybody is relying on the focus-stealing feature


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19984/c4283249229@github.com>

Christian Brabandt

unread,
2:25 PM (4 hours ago) 2:25 PM
to vim/vim, Subscribed

Closed #19984 via d0b6ee3.


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19984/issue_event/24689549614@github.com>

Reply all
Reply to author
Forward
0 new messages