Commit edd490cf authored by Fredy Paquet's avatar Fredy Paquet Committed by Aurélien Pupier
Browse files

Avoid Broadwayd - GtkEntry popup takes 35s after application startup

preventing conversion attempt and timer being started on broadway
backend.

first iteration for #1630



Author:    Fredy Paquet <fredy@opag.ch>
Signed-off-by: Aurélien Pupier's avatarAurélien Pupier <apupier@redhat.com>
parent f7620880
......@@ -112,6 +112,10 @@
#include <gdk/wayland/gdkwayland.h>
#endif
#ifdef GDK_WINDOWING_BROADWAY
#include "broadway/gdkbroadway.h"
#endif
#undef DEBUG_SELECTION
/* Maximum size of a sent chunk, in bytes. Also the default size of
......@@ -1180,6 +1184,25 @@ gtk_selection_convert (GtkWidget *widget,
return TRUE;
}
}
#if defined GDK_WINDOWING_BROADWAY
/* This patch is a workaround to circumvent unimplemented
clipboard functionality in broadwayd. It eliminates
35s delay on popup menu before first clipboard copy,
by preventing conversion to be started.
https://gitlab.gnome.org/GNOME/gtk/issues/1630
*/
if (GDK_IS_BROADWAY_DISPLAY (display))
{
g_debug("gtk_selection_convert: disabled for broadway backend");
gtk_selection_retrieval_report (
info, GDK_NONE, 0, NULL, -1, GDK_CURRENT_TIME);
return FALSE;
}
#endif
/* Otherwise, we need to go through X */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment