File fix-gtk3_various.patch of Package uim_backports

--- ./gtk2/switcher/gtk.orig.c	2017-08-14 09:07:26.000000000 +0900
+++ ./gtk2/switcher/gtk.c	2020-09-29 02:14:46.440362713 +0900
@@ -242,6 +242,9 @@
 {
   if (custom_enabled) {
     gchar *im_name = get_selected_im_name();
+    if (!im_name) {
+      return;
+    }
 
     uim_scm_callf("custom-set-value!",
 		  "yy",
--- ./gtk2/toolbar/standalone-gtk.orig.c	2017-08-14 09:07:26.000000000 +0900
+++ ./gtk2/toolbar/standalone-gtk.c	2020-09-29 02:18:47.647835492 +0900
@@ -76,6 +76,10 @@
   GdkDevice *device = gtk_get_current_event_device();
 #endif
 
+ /* do nothing unless left mouse button is pressed */
+  if (event->button != 1)
+    return FALSE;
+
   switch (event->type) {
   case GDK_BUTTON_PRESS:
     cursor = gdk_cursor_new(GDK_FLEUR);
openSUSE Build Service is sponsored by