When a popup window that has an image is present, moving the cursor is laggy and the cursor flickers or disappears momentarily sometimes.
PNG image data, 1200 x 1200, 8-bit/color RGBA, non-interlacedlet png = '<some image>'
let dim = split(system('gm identify -format "%w %h" '
\ .. shellescape(png)))
let [w, h] = [str2nr(dim[0]), str2nr(dim[1])]
call system('gm convert ' .. shellescape(png)
\ .. ' -depth 8 rgb:/tmp/cat.rgb')
let blob = readblob('/tmp/cat.rgb')
call popup_create('', #{
\ image: #{ data: blob, width: w, height: h },
\ line: 1, col: 1, border: [], padding: [0, 0, 0, 0],
\ })
Demo:
https://github.com/user-attachments/assets/e7e6f2f3-1c72-4109-999c-99c361a16a28
There should be no lag
9.2.612
Operating system: Arch Linux, Wayland
Terminal: kitty 0.47.1 created by Kovid Goyal
$TERM: xterm-kitty
Shell:
GNU bash, version 5.3.12(1)-release (x86_64-pc-linux-gnu)
Copyright (C) 2025 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()