diff options
author | JustKidding <jk@vin.ovh> | 2023-11-12 06:13:33 -0500 |
---|---|---|
committer | JustKidding <jk@vin.ovh> | 2023-11-12 06:13:33 -0500 |
commit | 98c36ce2846436a575cd15ae3ee260efb87efe49 (patch) | |
tree | 67d0038811ce9a135e7e8f693e05d2fa2eef93ce /0001-ozone-wayland-implement-text_input_manager-fixes.patch | |
parent | b28313510259259115a505c7d980958a2a214425 (diff) | |
download | ungoogled-chromium-98c36ce2846436a575cd15ae3ee260efb87efe49.tar.gz ungoogled-chromium-98c36ce2846436a575cd15ae3ee260efb87efe49.tar.bz2 ungoogled-chromium-98c36ce2846436a575cd15ae3ee260efb87efe49.zip |
upgpkg: ungoogled-chromium 119.0.6045.123-1
upstream release
Diffstat (limited to '0001-ozone-wayland-implement-text_input_manager-fixes.patch')
-rw-r--r-- | 0001-ozone-wayland-implement-text_input_manager-fixes.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/0001-ozone-wayland-implement-text_input_manager-fixes.patch b/0001-ozone-wayland-implement-text_input_manager-fixes.patch new file mode 100644 index 0000000..0d4e551 --- /dev/null +++ b/0001-ozone-wayland-implement-text_input_manager-fixes.patch @@ -0,0 +1,42 @@ + +ui/ozone/platform/wayland/host/zwp_text_input_wrapper.h + +# https://github.com/chromium/chromium/commit/de30ba3f21f824be05443d5820b988d226780d68 +Support offset of surrounding text in Lacros wayland client. + +# https://github.com/chromium/chromium/commit/71bba2b7ae8117fdf053563a864d6cff018d7e94 +Support large size surrounding text in Lacros. + +--- +diff --git a/ui/ozone/platform/wayland/host/zwp_text_input_wrapper_v3.cc b/ui/ozone/platform/wayland/host/zwp_text_input_wrapper_v3.cc +index a3ce6e4..83f2c58 100644 +--- a/ui/ozone/platform/wayland/host/zwp_text_input_wrapper_v3.cc ++++ b/ui/ozone/platform/wayland/host/zwp_text_input_wrapper_v3.cc +@@ -147,6 +147,14 @@ void ZWPTextInputWrapperV3::SetSurroundingText( + zwp_text_input_v3_commit(obj_.get()); + } + ++bool ZWPTextInputWrapperV3::HasAdvancedSurroundingTextSupport() const { ++ return false; ++} ++ ++void ZWPTextInputWrapperV3::SetSurroundingTextOffsetUtf16( ++ uint32_t offset_utf16) { ++} ++ + void ZWPTextInputWrapperV3::ResetPendingState() { + commit_string_.clear(); + delete_surrounding_text_before_length_ = 0; +diff --git a/ui/ozone/platform/wayland/host/zwp_text_input_wrapper_v3.h b/ui/ozone/platform/wayland/host/zwp_text_input_wrapper_v3.h +index 204d7e3..5d03a1d 100644 +--- a/ui/ozone/platform/wayland/host/zwp_text_input_wrapper_v3.h ++++ b/ui/ozone/platform/wayland/host/zwp_text_input_wrapper_v3.h +@@ -45,6 +45,8 @@ class ZWPTextInputWrapperV3 : public ZWPTextInputWrapper { + void SetCursorRect(const gfx::Rect& rect) override; + void SetSurroundingText(const std::string& text, + const gfx::Range& selection_range) override; ++ bool HasAdvancedSurroundingTextSupport() const override; ++ void SetSurroundingTextOffsetUtf16(uint32_t offset_utf16) override; + void SetContentType(TextInputType type, + TextInputMode mode, + uint32_t flags, |