Cherry-pick 88dc784
to fix warnings in Wayland input method
This commit is contained in:
2
debian/changelog
vendored
2
debian/changelog
vendored
@ -4,6 +4,8 @@ gtk+3.0 (3.24.0-4) UNRELEASED; urgency=medium
|
||||
d/p/imwayland-Fix-clearing-of-preedit-text-in-webkitgtk.patch:
|
||||
Use the upstream fix for #908120
|
||||
- d/p/Revert-imwayland-clear-preedit-on-focus-out.patch: Remove
|
||||
* d/p/modules-Check-current-context-before-retrieving-surroundi.patch:
|
||||
Cherry-pick 88dc784 to fix warnings in Wayland input method
|
||||
|
||||
-- Simon McVittie <smcv@debian.org> Thu, 13 Sep 2018 08:29:08 +0100
|
||||
|
||||
|
28
debian/patches/modules-Check-current-context-before-retrieving-surroundi.patch
vendored
Normal file
28
debian/patches/modules-Check-current-context-before-retrieving-surroundi.patch
vendored
Normal file
@ -0,0 +1,28 @@
|
||||
From: Carlos Garnacho <carlosg@gnome.org>
|
||||
Date: Fri, 7 Sep 2018 16:54:13 +0200
|
||||
Subject: modules: Check current context before retrieving surrounding
|
||||
|
||||
There may be situations where this might get called while the
|
||||
currently focused context just went away (eg. after setting the
|
||||
text widget unsensitive).
|
||||
|
||||
Bug: https://gitlab.gnome.org/GNOME/gtk/issues/1317
|
||||
Origin: upstream, 3.24.1, commit:88dc784256289820fac148fc5c23d0ad92419881
|
||||
---
|
||||
modules/input/imwayland.c | 3 +++
|
||||
1 file changed, 3 insertions(+)
|
||||
|
||||
diff --git a/modules/input/imwayland.c b/modules/input/imwayland.c
|
||||
index 25144f3..7a9a604 100644
|
||||
--- a/modules/input/imwayland.c
|
||||
+++ b/modules/input/imwayland.c
|
||||
@@ -121,6 +121,9 @@ notify_external_change (GtkIMContextWayland *context)
|
||||
{
|
||||
gboolean result;
|
||||
|
||||
+ if (!global->current)
|
||||
+ return;
|
||||
+
|
||||
context->surrounding_change = ZWP_TEXT_INPUT_V3_CHANGE_CAUSE_OTHER;
|
||||
g_signal_emit_by_name (global->current, "retrieve-surrounding", &result);
|
||||
}
|
1
debian/patches/series
vendored
1
debian/patches/series
vendored
@ -2,6 +2,7 @@ GtkApplication-Fix-CRITICAL-on-shutdown-when-register_ses.patch
|
||||
Fix-portal-path-handling.patch
|
||||
imwayland-Fix-clearing-of-preedit-text.patch
|
||||
imwayland-Fix-clearing-of-preedit-text-in-webkitgtk.patch
|
||||
modules-Check-current-context-before-retrieving-surroundi.patch
|
||||
016_no_offscreen_widgets_grabbing.patch
|
||||
017_no_offscreen_device_grabbing.patch
|
||||
018_gdkenumtypes.c_location.patch
|
||||
|
Reference in New Issue
Block a user