>From 8f3fcc9e80fbff04165c6a3f8bcc05b91c270268 Mon Sep 17 00:00:00 2001 From: Madhu Date: Mon, 6 Dec 2021 20:55:45 +0530 Subject: [PATCH] pgtkterm: workaround frame focus on wayland * src/pgktterm.c: (pgtk_focus_frame): force wayland to raise the frame with a call to gtk_window_present_with_time with a faked up timestamp. --- src/pgtkterm.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pgtkterm.c b/src/pgtkterm.c index bf863c8474..499a4dd03a 100644 --- a/src/pgtkterm.c +++ b/src/pgtkterm.c @@ -4381,6 +4381,10 @@ pgtk_focus_frame (struct frame *f, bool noactivate) { block_input (); gtk_widget_grab_focus (wid); + if (FRAME_GTK_OUTER_WIDGET (f)) + { + gtk_window_present_with_time (GTK_WINDOW (FRAME_GTK_OUTER_WIDGET (f)), g_get_monotonic_time () / 1000L); + } unblock_input (); } } -- 2.31.0