slackware-current/source/x/ibus/571e3b6e4f386abf12d3db70b9468e092c8d72bd.patch
Patrick J Volkerding 061b63f432 Thu Nov 18 21:13:10 UTC 2021
a/bash-5.1.012-x86_64-1.txz:  Upgraded.
a/cryptsetup-2.4.2-x86_64-1.txz:  Upgraded.
a/kernel-generic-5.15.3-x86_64-1.txz:  Upgraded.
a/kernel-huge-5.15.3-x86_64-1.txz:  Upgraded.
a/kernel-modules-5.15.3-x86_64-1.txz:  Upgraded.
d/ccache-4.5.1-x86_64-1.txz:  Upgraded.
d/kernel-headers-5.15.3-x86-1.txz:  Upgraded.
k/kernel-source-5.15.3-noarch-1.txz:  Upgraded.
kde/latte-dock-0.10.4-x86_64-1.txz:  Upgraded.
n/php-7.4.26-x86_64-1.txz:  Upgraded.
  This update fixes bugs and a security issue:
  XML: special character is breaking the path in xml function.
  For more information, see:
    https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-21707
  (* Security fix *)
x/ibus-1.5.25-x86_64-5.txz:  Rebuilt.
  Fixed paths in:
  [PATCH] client/gtk3/ibusimcontext: Fix wrong cursor location in gtk3 apps.
  Thanks to Lockywolf.
xap/audacious-4.1-x86_64-3.txz:  Rebuilt.
  Removed the extra menu entry for the GTK+ version as this can just be
  selected in the settings. Thanks to franzen.
isolinux/initrd.img:  Rebuilt.
kernels/*:  Upgraded.
usb-and-pxe-installers/usbboot.img:  Rebuilt.
2021-11-19 08:59:57 +01:00

27 lines
1,013 B
Diff

From 571e3b6e4f386abf12d3db70b9468e092c8d72bd Mon Sep 17 00:00:00 2001
From: Alynx Zhou <alynx.zhou@gmail.com>
Date: Tue, 24 Aug 2021 10:12:52 +0800
Subject: [PATCH] client/gtk3/ibusimcontext: Fix wrong cursor location in gtk3
apps
---
client/gtk3/ibusimcontext.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/client/gtk3/ibusimcontext.c b/client/gtk3/ibusimcontext.c
index da9a402ff..b1ccede95 100644
--- a/client/gtk3/ibusimcontext.c
+++ b/client/gtk3/ibusimcontext.c
@@ -1497,7 +1497,10 @@ _set_cursor_location_internal (IBusIMContext *ibusimcontext)
#if GTK_CHECK_VERSION (3, 98, 4)
#elif GTK_CHECK_VERSION (2, 91, 0)
- area.y += gdk_window_get_height (ibusimcontext->client_window);
+ if (area.x == -1 && area.y == -1 && area.width == 0 && area.height == 0) {
+ area.x = 0;
+ area.y += gdk_window_get_height (ibusimcontext->client_window);
+ }
#else
if (area.x == -1 && area.y == -1 && area.width == 0 && area.height == 0) {
gint w, h;