From 62636ea3c1198fe0232842f73dead608a96de171 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Fri, 13 May 2022 12:21:32 +0800 Subject: [PATCH] Fix disabling frame synchronization on child frames * src/xfns.c (Fx_create_frame): Disable GTK 3's own frame synchronization on child frames, since the CM doesn't send synchronization events to them. --- src/xfns.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/xfns.c b/src/xfns.c index 6eddf3a4949..7b5273e280a 100644 --- a/src/xfns.c +++ b/src/xfns.c @@ -4551,6 +4551,9 @@ This function is an internal primitive--use `make-frame' instead. */) struct x_display_info *dpyinfo = NULL; Lisp_Object parent, parent_frame; struct kboard *kb; +#ifdef HAVE_GTK3 + GdkWindow *gwin; +#endif parms = Fcopy_alist (parms); @@ -4977,6 +4980,10 @@ This function is an internal primitive--use `make-frame' instead. */) if (EQ (x_gtk_resize_child_frames, Qresize_mode)) gtk_container_set_resize_mode (GTK_CONTAINER (FRAME_GTK_OUTER_WIDGET (f)), GTK_RESIZE_IMMEDIATE); +#endif +#ifdef HAVE_GTK3 + gwin = gtk_widget_get_window (FRAME_GTK_OUTER_WIDGET (f)); + gdk_x11_window_set_frame_sync_enabled (gwin, false); #endif unblock_input (); } -- 2.39.2