Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package fcitx5-qt for openSUSE:Factory 
checked in at 2026-11-28 23:24:56
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/fcitx5-qt (Old)
 and      /work/SRC/openSUSE:Factory/.fcitx5-qt.new.1340718 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "fcitx5-qt"

Sat Nov 28 23:24:56 2026 rev:21 rq:1401229 version:5.1.17

Changes:
--------
--- /work/SRC/openSUSE:Factory/fcitx5-qt/fcitx5-qt.changes      2026-11-27 
19:48:26.987572629 +0100
+++ /work/SRC/openSUSE:Factory/.fcitx5-qt.new.1340718/fcitx5-qt.changes 
2026-11-28 23:26:01.615501494 +0100
@@ -1,0 +2,8 @@
+Sat Nov 28 03:42:03 UTC 2026 - Marguerite Su <[email protected]>
+
+- update to 5.1.17
+  Fix
+  * Only withdraw surrounding text when the update actually evaluated it (#92)
+  * Pass scale as platform scale
+
+-------------------------------------------------------------------

Old:
----
  fcitx5-qt-5.1.16.tar.zst

New:
----
  fcitx5-qt-5.1.17.tar.zst

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ fcitx5-qt.spec ++++++
--- /var/tmp/diff_new_pack.QBKZs0/_old  2026-11-28 23:26:02.303530231 +0100
+++ /var/tmp/diff_new_pack.QBKZs0/_new  2026-11-28 23:26:02.305530314 +0100
@@ -29,7 +29,7 @@
 
 %define build_qt5 1
 Name:           fcitx5-qt
-Version:        5.1.16
+Version:        5.1.17
 Release:        0
 Summary:        Qt library and IM module for fcitx5
 License:        BSD-3-Clause AND LGPL-2.1-or-later
@@ -41,7 +41,11 @@
 BuildRequires:  fcitx5-devel
 BuildRequires:  fdupes
 %if 0%{?suse_version} >= 1550
+%if 0%{?suse_version} == 1600
+BuildRequires:  gcc15-c++
+%else
 BuildRequires:  gcc-c++
+%endif
 %else
 BuildRequires:  gcc13-c++
 %endif
@@ -187,6 +191,10 @@
 export CC=%{_bindir}/gcc-13
 export CXX=%{_bindir}/g++-13
 %endif
+%if 0%{?suse_version} >= 1600 && 0%{?suse_version} < 1699
+export CC=%{_bindir}/gcc-15
+export CXX=%{_bindir}/g++-15
+%endif
 ARGS="-DCMAKE_INSTALL_LIBEXECDIR=%{_libexecdir}"
 %if %{build_qt4}
 ARGS="$ARGS -DENABLE_QT4=ON"

++++++ fcitx5-qt-5.1.16.tar.zst -> fcitx5-qt-5.1.17.tar.zst ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/fcitx5-qt-5.1.16/CMakeLists.txt 
new/fcitx5-qt-5.1.17/CMakeLists.txt
--- old/fcitx5-qt-5.1.16/CMakeLists.txt 2026-09-24 03:35:05.000000000 +0200
+++ new/fcitx5-qt-5.1.17/CMakeLists.txt 2026-11-27 20:21:46.000000000 +0100
@@ -1,5 +1,5 @@
 cmake_minimum_required(VERSION 3.16)
-project(fcitx5-qt VERSION 5.1.16)
+project(fcitx5-qt VERSION 5.1.17)
 set(FCITX5_QT_VERSION ${PROJECT_VERSION})
 
 set(REQUIRED_QT4_VERSION 4.8.0)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/fcitx5-qt-5.1.16/qt5/platforminputcontext/qfcitxplatforminputcontext.cpp 
new/fcitx5-qt-5.1.17/qt5/platforminputcontext/qfcitxplatforminputcontext.cpp
--- 
old/fcitx5-qt-5.1.16/qt5/platforminputcontext/qfcitxplatforminputcontext.cpp    
    2026-09-24 03:35:05.000000000 +0200
+++ 
new/fcitx5-qt-5.1.17/qt5/platforminputcontext/qfcitxplatforminputcontext.cpp    
    2026-11-27 20:21:46.000000000 +0100
@@ -18,6 +18,7 @@
 #include <qpa/qplatformcursor.h>
 #include <qpa/qplatformnativeinterface.h>
 #include <qpa/qplatformscreen.h>
+#include <qpa/qplatformwindow.h>
 #include <qpa/qwindowsysteminterface.h>
 
 #include <cerrno>
@@ -495,7 +496,14 @@
             }
         }
     } while (false);
-    if (!setSurrounding) {
+    // An update that did not ask about the surrounding text says nothing
+    // about it; only one that evaluated it may withdraw it. Clearing on
+    // every update (e.g. a cursor-rectangle-only query after a key press)
+    // drops SurroundingText and breaks deleteSurroundingText against the
+    // cleared copy.
+    if (!setSurrounding &&
+        (queries & (Qt::ImSurroundingText | Qt::ImCursorPosition |
+                    Qt::ImAnchorPosition))) {
         data.surroundingAnchor = -1;
         data.surroundingCursor = -1;
         data.surroundingText = QString();
@@ -608,13 +616,15 @@
     }
 
     qreal scale = inputWindow->devicePixelRatio();
+    qreal platformScale = inputWindow->handle()->devicePixelRatio();
     if (data.capability & FcitxCapabilityFlag_RelativeRect) {
         auto margins = inputWindow->frameMargins();
         r.translate(margins.left(), margins.top());
         r = QRect(r.topLeft() * scale, r.size() * scale);
         if (data.rect != r) {
             data.rect = r;
-            proxy->setCursorRectV2(r.x(), r.y(), r.width(), r.height(), scale);
+            proxy->setCursorRectV2(r.x(), r.y(), r.width(), r.height(),
+                                   platformScale);
         }
         return;
     }

Reply via email to