Commit: patch 9.2.0922: Wayland: modeless selection not redrawn
Christian Brabandt <[email protected]> Fri, 7 Aug 2026 22:15:05 +0200
| Newsgroups | gmane.editors.vim.devel |
|---|---|
| Message-ID | <[email protected]> |
patch 9.2.0922: Wayland: modeless selection not redrawn Commit: https://github.com/vim/vim/commit/60e57c8c22457e20d050041f985d1957825b0a6d Author: Christoffer Aasted <[email protected]> Date: Fri Aug 7 20:01:34 2026 +0000 patch 9.2.0922: Wayland: modeless selection not redrawn Problem: Modeless mouse selection on Wayland may not redraw while Vim is waiting for input, causing the selection highlight to lag behind mouse movement (lilydjwg). Solution: Flush pending GUI updates while a modeless selection is in progress (Christoffer Aasted). * X11 was not affected. * Tested FEAT_TINY, 'clipboard', 'mouse' settings. fixes: #20969 closes: #20971 Signed-off-by: Christoffer Aasted <[email protected]> Signed-off-by: Christian Brabandt <[email protected]> diff --git a/src/gui_gtk_x11.c b/src/gui_gtk_x11.c index 6b56a1ee5..2e60484ee 100644 --- a/src/gui_gtk_x11.c +++ b/src/gui_gtk_x11.c @@ -6909,7 +6909,13 @@ gui_mch_wait_for_chars(long wtime) * situations, sort of race condition). */ if (!input_available()) + { g_main_context_iteration(NULL, TRUE); +#ifdef GDK_WINDOWING_WAYLAND + if (gui.is_wayland && clip_star.state == SELECT_IN_PROGRESS) + gui_may_flush(); +#endif + } // Got char, return immediately if (input_available()) diff --git a/src/version.c b/src/version.c index 098640446..5f5600db7 100644 --- a/src/version.c +++ b/src/version.c @@ -763,6 +763,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 922, /**/ 921, /**/ -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/vim_dev/E1wsQy9-000hwK-2C%40256bit.org.