您尚未登录。

#1 2025-02-12 00:21:36

skywatcher
会员
注册时间: 2025-01-26
帖子: 23

hyprland合成器下微信中的fcitx5和鼠标缩放异常

用JaKooLit的arch安装脚本安装hyprland之后,大部分显示效果都很好,除了微信。

开始时微信的字体很小,我在.desktop文件中修改exec为"Exec=env QT_FONT_DPI=144 /opt/wechat/wechat %U",微信的字体显示就相对变大了许多,但是鼠标缩放仍然很奇怪,非常巨大。并且在修改后的情况下,微信中fcitx5的缩放却依旧保持很小,似乎并没有随着微信字体的缩放而一起缩放。但是在其他软件中,包括linuxqq和vscode等软件中,鼠标和fcitx5输入框的缩放都是正常且统一的。我尝试调了fcitx5设置classic user interface中的字体大小,微信中的fcitx5输入框字体不清楚有没有变大,linuxqq中的fcitx5输入框字体确实变的巨大了......

(这里想放微信截图,但是不知道怎么嵌入图片,用img标签加本地图片路径应该嵌不了图片?)

猜测是哪里的缩放设置不正确,但是找不到,变量太多了(汗......

麻烦大佬指教!


以下是fcitx5-dignose的诊断输出:

 # System Info:
1.  `uname -a`:

        Linux msi 6.13.2-arch1-1 #1 SMP PREEMPT_DYNAMIC Sat, 08 Feb 2025 18:54:55 +0000 x86_64 GNU/Linux

2.  `lsb_release -a`:

        LSB Version:	n/a
        Distributor ID:	Arch
        Description:	Arch Linux
        Release:	rolling
        Codename:	n/a

3.  `lsb_release -d`:

        Description:	Arch Linux

4.  `/etc/lsb-release`:

        DISTRIB_ID="Arch"
        DISTRIB_RELEASE="rolling"
        DISTRIB_DESCRIPTION="Arch Linux"

5.  `/etc/os-release`:

        NAME="Arch Linux"
        PRETTY_NAME="Arch Linux"
        ID=arch
        BUILD_ID=rolling
        ANSI_COLOR="38;2;23;147;209"
        HOME_URL="https://archlinux.org/"
        DOCUMENTATION_URL="https://wiki.archlinux.org/"
        SUPPORT_URL="https://bbs.archlinux.org/"
        BUG_REPORT_URL="https://gitlab.archlinux.org/groups/archlinux/-/issues"
        PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/"
        LOGO=archlinux-logo

6.  Desktop Environment:

    Cannot determine desktop environment.

7.  XDG SESSION TYPE:

        XDG_SESSION_TYPE='wayland'

8.  Bash Version:

        BASH_VERSION='5.2.37(1)-release'

# Environment:
1.  DISPLAY:

        DISPLAY=':1'


        WAYLAND_DISPLAY='wayland-1'

2.  Keyboard Layout:

    1.  `setxkbmap`:

            WARNING: Running setxkbmap against an Xwayland server
            xkb_keymap {
            	xkb_keycodes  { include "evdev+aliases(qwerty)"	};
            	xkb_types     { include "complete"	};
            	xkb_compat    { include "complete"	};
            	xkb_symbols   { include "pc+us+inet(evdev)"	};
            	xkb_geometry  { include "pc(pc105)"	};
            };

    2.  `xprop`:

            _XKB_RULES_NAMES(STRING) = "evdev", "pc105", "us", "", ""

3.  Locale:

    1.  All locales:

            C
            C.utf8
            en_US.utf8
            POSIX
            zh_CN.utf8

    2.  Current locale:

            LANG=en_US.UTF-8
            LC_CTYPE="en_US.UTF-8"
            LC_NUMERIC="en_US.UTF-8"
            LC_TIME="en_US.UTF-8"
            LC_COLLATE="en_US.UTF-8"
            LC_MONETARY="en_US.UTF-8"
            LC_MESSAGES="en_US.UTF-8"
            LC_PAPER="en_US.UTF-8"
            LC_NAME="en_US.UTF-8"
            LC_ADDRESS="en_US.UTF-8"
            LC_TELEPHONE="en_US.UTF-8"
            LC_MEASUREMENT="en_US.UTF-8"
            LC_IDENTIFICATION="en_US.UTF-8"
            LC_ALL=

4.  Directories:

    1.  Home:

            /home/skywatcher

    2.  `${XDG_CONFIG_HOME}`:

        Environment variable `XDG_CONFIG_HOME` is not set.

        Current value of `XDG_CONFIG_HOME` is `~/.config` (`/home/skywatcher/.config`).

    3.  Fcitx5 Settings Directory:

        Current fcitx5 settings directory is `~/.config/fcitx5` (`/home/skywatcher/.config/fcitx5`).

5.  Current user:

    The script is run as skywatcher (1000).

# Fcitx State:
1.  executable:

    Found fcitx5 at `/usr/bin/fcitx5`.

2.  version:

    Fcitx version: `5.1.12`

3.  process:

    Found 1 fcitx5 process:

           1236 fcitx5

4.  `fcitx5-remote`:

    `fcitx5-remote` works properly.

5.  DBus interface:

    Using `dbus-send` to check dbus.

    Owner of DBus name `org.fcitx.Fcitx5` is `:1.40`.

    PID of DBus name `org.fcitx.Fcitx5` owner is `1236`.

    Debug information from dbus:

           Group [wayland:] has 5 InputContext(s)
          IC [f047c982cb8e48378e10aa47fe9335b6] program:kitty frontend:wayland_v2 cap:100000072 focus:1
          IC [79fe660f0a214116ac9a722aa0a01414] program:kitty-dropterm frontend:wayland_v2 cap:100000072 focus:0
          IC [795406214a904378aa21a7823ac668e0] program:kitty frontend:wayland_v2 cap:100000072 focus:0
          IC [37e33d8a36f14e76b10707fbcb81b746] program:microsoft-edge frontend:wayland_v2 cap:72 focus:0
          IC [36f6e627c8874749a3412879ac63d614] program: frontend:wayland_v2 cap:100000072 focus:0
        Group [x11::1] has 0 InputContext(s)
        Input Context without group

# Frontends setup:
The environment variable checked by this script only shows the environment under current shell. It is still possible that you did not set the environment to the whole graphic desktop session. You may inspect the actual environment variable of a certain process by using `xargs -0 -L1 /proc/$PID/environ` for a certain process that you find not working.

## Xim:
1.  `${XMODIFIERS}`:

    Environment variable XMODIFIERS is set to "@im=fcitx" correctly.
    Xim Server Name from Environment variable is fcitx.

2.  XIM_SERVERS on root window:

    Xim server name is the same with that set in the environment variable.

## Qt:
1.  qt4 - `${QT4_IM_MODULE}`:

    Environment variable QT_IM_MODULE is set to "fcitx" correctly.

    **`fcitx5-qt4-immodule-probing` not found.**

2.  qt5 - `${QT_IM_MODULE}`:

    Environment variable QT_IM_MODULE is set to "fcitx" correctly.

    Using fcitx5-qt5-immodule-probing to check the actual im module to be used under current environment:

        QT_QPA_PLATFORM=wayland
        QT_IM_MODULE=fcitx
        IM_MODULE_CLASSNAME=fcitx::QFcitxPlatformInputContext

3.  qt6 - `${QT_IM_MODULE}`:

    Environment variable QT_IM_MODULE is set to "fcitx" correctly.

    Using fcitx5-qt6-immodule-probing to check the actual im module to be used under current environment:

        QT_QPA_PLATFORM=wayland
        QT_IM_MODULE=fcitx
        IM_MODULE_CLASSNAME=fcitx::QFcitxPlatformInputContext

4.  Qt IM module files:

    Found fcitx5 im module for qt6: `/usr/lib/qt6/plugins/platforminputcontexts/libfcitx5platforminputcontextplugin.so`.
    Found unknown fcitx qt module: `/usr/lib/qt6/plugins/plasma/kcms/systemsettings/kcm_fcitx5.so`.
    Found fcitx5 im module for qt: `/usr/lib/qt/plugins/platforminputcontexts/libfcitx5platforminputcontextplugin.so`.
    Found fcitx5 qt5 module: `/usr/lib/fcitx5/qt5/libfcitx-quickphrase-editor5.so`.
    Found fcitx5 qt6 module: `/usr/lib/fcitx5/qt6/libfcitx-quickphrase-editor5.so`.

    Following error may not be accurate because guessing Qt version from path depends on how your distribution packages Qt. It is not a critical error if you do not use any Qt application with certain version of Qt or you are using text-input support by Qt under Wayland.
    **Cannot find fcitx5 input method module for Qt4.**

## Gtk:
1.  gtk - `${GTK_IM_MODULE}`:

    **Please set environment variable GTK_IM_MODULE to "fcitx" using the tool your distribution provides or add `export GTK_IM_MODULE=fcitx` to your `~/.xprofile`. See [Input Method Related Environment Variables: GTK_IM_MODULE](http://fcitx-im.org/wiki/Input_method_related_environment_variables#GTK_IM_MODULE).**

    **It is OK to use gtk built-in Wayland im module if your compositor fully supports text-input protocol used by gtk.**

    Using fcitx5-gtk2-immodule-probing to check the actual im module to be used under current environment:

        GTK_IM_MODULE=fcitx5

    Using fcitx5-gtk3-immodule-probing to check the actual im module to be used under current environment:

        GTK_IM_MODULE=wayland

    Using fcitx5-gtk4-immodule-probing to check the actual im module to be used under current environment:

        GTK_IM_MODULE=wayland

2.  `gtk-query-immodules`:

    1.  gtk 2:

        Found `gtk-query-immodules` for gtk `2.24.33` at `/usr/bin/gtk-query-immodules-2.0`.
        Version Line:

            # Created by /usr/bin/gtk-query-immodules-2.0 from gtk+-2.24.33

        Found fcitx5 im modules for gtk `2.24.33`.

            "/usr/lib/gtk-2.0/2.10.0/immodules/im-fcitx5.so" 
            "fcitx" "Fcitx5 (Flexible Input Method Framework5)" "fcitx5" "/usr/locale" "ja:ko:zh:*" 
            "fcitx5" "Fcitx5 (Flexible Input Method Framework5)" "fcitx5" "/usr/locale" "ja:ko:zh:*" 

    2.  gtk 3:

        Found `gtk-query-immodules` for gtk `3.24.48` at `/usr/bin/gtk-query-immodules-3.0`.
        Version Line:

            # Created by /usr/bin/gtk-query-immodules-3.0 from gtk+-3.24.48

        Found fcitx5 im modules for gtk `3.24.48`.

            "/usr/lib/gtk-3.0/3.0.0/immodules/im-fcitx5.so" 
            "fcitx" "Fcitx5 (Flexible Input Method Framework5)" "fcitx5" "/usr/locale" "ja:ko:zh:*" 
            "fcitx5" "Fcitx5 (Flexible Input Method Framework5)" "fcitx5" "/usr/locale" "ja:ko:zh:*" 

3.  Gtk IM module cache:

    1.  gtk 2:

        Found immodules cache for gtk `2.24.33` at `/usr/lib/gtk-2.0/2.10.0/immodules.cache`.
        Version Line:

            # Created by /usr/bin/gtk-query-immodules-2.0 from gtk+-2.24.33

        Found fcitx5 im modules for gtk `2.24.33`.

            "/usr/lib/gtk-2.0/2.10.0/immodules/im-fcitx5.so" 
            "fcitx" "Fcitx5 (Flexible Input Method Framework5)" "fcitx5" "/usr/locale" "ja:ko:zh:*" 
            "fcitx5" "Fcitx5 (Flexible Input Method Framework5)" "fcitx5" "/usr/locale" "ja:ko:zh:*" 

    2.  gtk 3:

        Found immodules cache for gtk `3.24.48` at `/usr/lib/gtk-3.0/3.0.0/immodules.cache`.
        Version Line:

            # Created by /usr/bin/gtk-query-immodules-3.0 from gtk+-3.24.48

        Found fcitx5 im modules for gtk `3.24.48`.

            "/usr/lib/gtk-3.0/3.0.0/immodules/im-fcitx5.so" 
            "fcitx" "Fcitx5 (Flexible Input Method Framework5)" "fcitx5" "/usr/locale" "ja:ko:zh:*" 
            "fcitx5" "Fcitx5 (Flexible Input Method Framework5)" "fcitx5" "/usr/locale" "ja:ko:zh:*" 

4.  Gtk IM module files:

    1.  gtk 2:

        All found Gtk 2 immodule files exist.

    2.  gtk 3:

        All found Gtk 3 immodule files exist.

    3.  gtk 4:

        All found Gtk 4 immodule files exist.

# Configuration:
## Fcitx Addons:
1.  Addon Config Dir:

    Found fcitx5 addon config directory: `/usr/share/fcitx5/addon`.

2.  Addon List:

    1.  Found 27 enabled addons:

            Simplified and Traditional Chinese Translation 5.1.7
            Classic User Interface 5.1.12
            Clipboard 5.1.12
            Cloud Pinyin 5.1.7
            DBus 5.1.12
            DBus Frontend 5.1.12
            Emoji 5.1.12
            Fcitx4 Frontend 5.1.12
            Full width character 5.1.7
            IBus Frontend 5.1.12
            Input method selector 5.1.12
            Keyboard 5.1.12
            KDE Input Method Panel 5.1.12
            Status Notifier 5.1.12
            Notification 5.1.12
            Pinyin 5.1.7
            Extra Pinyin functionality 5.1.7
            Punctuation 5.1.7
            Quick Phrase 5.1.12
            Spell 5.1.12
            Table 5.1.7
            Unicode 5.1.12
            DBus Virtual Keyboard 5.1.12
            Wayland 5.1.12
            Wayland Input method frontend 5.1.12
            XCB 5.1.12
            X Input Method Frontend 5.1.12

    2.  Found 0 disabled addons:

3.  Addon Libraries:

    All libraries for all addons are found.

4.  User Interface:

    Found 3 enabled user interface addons:

        Classic User Interface
        KDE Input Method Panel
        DBus Virtual Keyboard

## Input Methods:
1.  `/home/skywatcher/.config/fcitx5/profile`:

        [Groups/0]
        # Group Name
        Name=默认
        # Layout
        Default Layout=us
        # Default Input Method
        DefaultIM=pinyin

        [Groups/0/Items/0]
        # Name
        Name=keyboard-us
        # Layout
        Layout=

        [Groups/0/Items/1]
        # Name
        Name=pinyin
        # Layout
        Layout=

        [GroupOrder]
        0=默认

# Log:
1.  `date`:

        Tue Feb 11 11:46:35 PM CST 2025

2.  `/home/skywatcher/.config/fcitx5/crash.log`:

    `/home/skywatcher/.config/fcitx5/crash.log` not found.

**Warning: the output of fcitx5-diagnose contains sensitive information, including the distribution name, kernel version, name of currently running programs, etc.**

**Though such information can be helpful to developers for diagnostic purpose, please double check and remove as necessary before posting it online publicly.** 

离线

#2 2025-02-12 09:43:43

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 9,168
个人网站

Re: hyprland合成器下微信中的fcitx5和鼠标缩放异常

图片需要自己找个图床放。

离线

#3 2025-02-12 16:38:04

skywatcher
会员
注册时间: 2025-01-26
帖子: 23

Re: hyprland合成器下微信中的fcitx5和鼠标缩放异常

依云 说:

图片需要自己找个图床放。

网上查了一下,原来是要先存到某个服务器上再把路径放在标签里,谢谢佬

离线

#4 2025-02-12 16:51:30

skywatcher
会员
注册时间: 2025-01-26
帖子: 23

Re: hyprland合成器下微信中的fcitx5和鼠标缩放异常

这是微信截图,微信缩放正常,只有输入法的候选框特别小(截图只截了一部分,会显得微信缩放很大,输入法候选框正常,这是错觉)

微信缩放截图

离线

#5 2025-02-12 17:21:34

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 9,168
个人网站

Re: hyprland合成器下微信中的fcitx5和鼠标缩放异常

你的 fcitx5-diagnose 执行的时候微信没有处于可以打字的状态?

离线

#6 2025-02-13 09:07:03

BRS5672023
会员
注册时间: 2020-07-07
帖子: 145

Re: hyprland合成器下微信中的fcitx5和鼠标缩放异常

这个应该是 xwayland 的问题(看起来应该是设置了 force_zero_scaling),我记得可以通过配置 xresources 来调整 xwayland 的 dpi,见 X ResourcesLoad resource file,而且这样设置了需要的 dpi 后就不需要设置 QT_FONT_DPI 这个环境变量了

离线

#7 2025-02-13 11:32:02

skywatcher
会员
注册时间: 2025-01-26
帖子: 23

Re: hyprland合成器下微信中的fcitx5和鼠标缩放异常

依云 说:

你的 fcitx5-diagnose 执行的时候微信没有处于可以打字的状态?

没有

这个是我刚刚在微信打字状态下用fcitx5-diagnose检测的输出

# System Info:
1.  `uname -a`:

        Linux msi 6.13.2-arch1-1 #1 SMP PREEMPT_DYNAMIC Sat, 08 Feb 2025 18:54:55 +0000 x86_64 GNU/Linux

2.  `lsb_release -a`:

        LSB Version:	n/a
        Distributor ID:	Arch
        Description:	Arch Linux
        Release:	rolling
        Codename:	n/a

3.  `lsb_release -d`:

        Description:	Arch Linux

4.  `/etc/lsb-release`:

        DISTRIB_ID="Arch"
        DISTRIB_RELEASE="rolling"
        DISTRIB_DESCRIPTION="Arch Linux"

5.  `/etc/os-release`:

        NAME="Arch Linux"
        PRETTY_NAME="Arch Linux"
        ID=arch
        BUILD_ID=rolling
        ANSI_COLOR="38;2;23;147;209"
        HOME_URL="https://archlinux.org/"
        DOCUMENTATION_URL="https://wiki.archlinux.org/"
        SUPPORT_URL="https://bbs.archlinux.org/"
        BUG_REPORT_URL="https://gitlab.archlinux.org/groups/archlinux/-/issues"
        PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/"
        LOGO=archlinux-logo

6.  Desktop Environment:

    Cannot determine desktop environment.

7.  XDG SESSION TYPE:

        XDG_SESSION_TYPE='wayland'

8.  Bash Version:

        BASH_VERSION='5.2.37(1)-release'

# Environment:
1.  DISPLAY:

        DISPLAY=':1'


        WAYLAND_DISPLAY='wayland-1'

2.  Keyboard Layout:

    1.  `setxkbmap`:

            WARNING: Running setxkbmap against an Xwayland server
            xkb_keymap {
            	xkb_keycodes  { include "evdev+aliases(qwerty)"	};
            	xkb_types     { include "complete"	};
            	xkb_compat    { include "complete"	};
            	xkb_symbols   { include "pc+us+inet(evdev)"	};
            	xkb_geometry  { include "pc(pc105)"	};
            };

    2.  `xprop`:

            _XKB_RULES_NAMES(STRING) = "evdev", "pc105", "us", "", ""

3.  Locale:

    1.  All locales:

            C
            C.utf8
            en_US.utf8
            POSIX
            zh_CN.utf8

    2.  Current locale:

            LANG=en_US.UTF-8
            LC_CTYPE="en_US.UTF-8"
            LC_NUMERIC="en_US.UTF-8"
            LC_TIME="en_US.UTF-8"
            LC_COLLATE="en_US.UTF-8"
            LC_MONETARY="en_US.UTF-8"
            LC_MESSAGES="en_US.UTF-8"
            LC_PAPER="en_US.UTF-8"
            LC_NAME="en_US.UTF-8"
            LC_ADDRESS="en_US.UTF-8"
            LC_TELEPHONE="en_US.UTF-8"
            LC_MEASUREMENT="en_US.UTF-8"
            LC_IDENTIFICATION="en_US.UTF-8"
            LC_ALL=

4.  Directories:

    1.  Home:

            /home/skywatcher

    2.  `${XDG_CONFIG_HOME}`:

        Environment variable `XDG_CONFIG_HOME` is not set.

        Current value of `XDG_CONFIG_HOME` is `~/.config` (`/home/skywatcher/.config`).

    3.  Fcitx5 Settings Directory:

        Current fcitx5 settings directory is `~/.config/fcitx5` (`/home/skywatcher/.config/fcitx5`).

5.  Current user:

    The script is run as skywatcher (1000).

# Fcitx State:
1.  executable:

    Found fcitx5 at `/usr/bin/fcitx5`.

2.  version:

    Fcitx version: `5.1.12`

3.  process:

    Found 1 fcitx5 process:

           1270 fcitx5

4.  `fcitx5-remote`:

    `fcitx5-remote` works properly.

5.  DBus interface:

    Using `dbus-send` to check dbus.

    Owner of DBus name `org.fcitx.Fcitx5` is `:1.42`.

    PID of DBus name `org.fcitx.Fcitx5` owner is `1270`.

    Debug information from dbus:

           Group [wayland:] has 4 InputContext(s)
          IC [adcb223fa72a42a39f99373b3890ea37] program:kitty frontend:wayland_v2 cap:100000072 focus:1
          IC [56c6355b79c349fbbfd0ed90b5a42a63] program:wechat frontend:wayland_v2 cap:72 focus:0
          IC [d42b7a50700143bc9fb99f2e0974ba01] program:kitty-dropterm frontend:wayland_v2 cap:100000072 focus:0
          IC [30884ac3c78c4ea6b87a485665c78765] program: frontend:wayland_v2 cap:100000072 focus:0
        Group [x11::1] has 1 InputContext(s)
          IC [068703845b774642891566d6ca87d59c] program:wechat frontend:fcitx4 cap:800072 focus:1
        Input Context without group

# Frontends setup:
The environment variable checked by this script only shows the environment under current shell. It is still possible that you did not set the environment to the whole graphic desktop session. You may inspect the actual environment variable of a certain process by using `xargs -0 -L1 /proc/$PID/environ` for a certain process that you find not working.

## Xim:
1.  `${XMODIFIERS}`:

    Environment variable XMODIFIERS is set to "@im=fcitx" correctly.
    Xim Server Name from Environment variable is fcitx.

2.  XIM_SERVERS on root window:

    Xim server name is the same with that set in the environment variable.

## Qt:
1.  qt4 - `${QT4_IM_MODULE}`:

    Environment variable QT_IM_MODULE is set to "fcitx" correctly.

    **`fcitx5-qt4-immodule-probing` not found.**

2.  qt5 - `${QT_IM_MODULE}`:

    Environment variable QT_IM_MODULE is set to "fcitx" correctly.

    Using fcitx5-qt5-immodule-probing to check the actual im module to be used under current environment:

        QT_QPA_PLATFORM=wayland
        QT_IM_MODULE=fcitx
        IM_MODULE_CLASSNAME=fcitx::QFcitxPlatformInputContext

3.  qt6 - `${QT_IM_MODULE}`:

    Environment variable QT_IM_MODULE is set to "fcitx" correctly.

    Using fcitx5-qt6-immodule-probing to check the actual im module to be used under current environment:

        QT_QPA_PLATFORM=wayland
        QT_IM_MODULE=fcitx
        IM_MODULE_CLASSNAME=fcitx::QFcitxPlatformInputContext

4.  Qt IM module files:

    Found fcitx5 im module for qt6: `/usr/lib/qt6/plugins/platforminputcontexts/libfcitx5platforminputcontextplugin.so`.
    Found unknown fcitx qt module: `/usr/lib/qt6/plugins/plasma/kcms/systemsettings/kcm_fcitx5.so`.
    Found fcitx5 im module for qt: `/usr/lib/qt/plugins/platforminputcontexts/libfcitx5platforminputcontextplugin.so`.
    Found fcitx5 qt5 module: `/usr/lib/fcitx5/qt5/libfcitx-quickphrase-editor5.so`.
    Found fcitx5 qt6 module: `/usr/lib/fcitx5/qt6/libfcitx-quickphrase-editor5.so`.
    Found unknown fcitx qt module: `/usr/lib/office6/qt/plugins/platforminputcontexts/libfcitxplatforminputcontextplugin.so`.

    Following error may not be accurate because guessing Qt version from path depends on how your distribution packages Qt. It is not a critical error if you do not use any Qt application with certain version of Qt or you are using text-input support by Qt under Wayland.
    **Cannot find fcitx5 input method module for Qt4.**

## Gtk:
1.  gtk - `${GTK_IM_MODULE}`:

    **Please set environment variable GTK_IM_MODULE to "fcitx" using the tool your distribution provides or add `export GTK_IM_MODULE=fcitx` to your `~/.xprofile`. See [Input Method Related Environment Variables: GTK_IM_MODULE](http://fcitx-im.org/wiki/Input_method_related_environment_variables#GTK_IM_MODULE).**

    **It is OK to use gtk built-in Wayland im module if your compositor fully supports text-input protocol used by gtk.**

    Using fcitx5-gtk2-immodule-probing to check the actual im module to be used under current environment:

        GTK_IM_MODULE=fcitx5

    Using fcitx5-gtk3-immodule-probing to check the actual im module to be used under current environment:

        GTK_IM_MODULE=wayland

    Using fcitx5-gtk4-immodule-probing to check the actual im module to be used under current environment:

        GTK_IM_MODULE=wayland

2.  `gtk-query-immodules`:

    1.  gtk 2:

        Found `gtk-query-immodules` for gtk `2.24.33` at `/usr/bin/gtk-query-immodules-2.0`.
        Version Line:

            # Created by /usr/bin/gtk-query-immodules-2.0 from gtk+-2.24.33

        Found fcitx5 im modules for gtk `2.24.33`.

            "/usr/lib/gtk-2.0/2.10.0/immodules/im-fcitx5.so" 
            "fcitx" "Fcitx5 (Flexible Input Method Framework5)" "fcitx5" "/usr/locale" "ja:ko:zh:*" 
            "fcitx5" "Fcitx5 (Flexible Input Method Framework5)" "fcitx5" "/usr/locale" "ja:ko:zh:*" 

    2.  gtk 3:

        Found `gtk-query-immodules` for gtk `3.24.48` at `/usr/bin/gtk-query-immodules-3.0`.
        Version Line:

            # Created by /usr/bin/gtk-query-immodules-3.0 from gtk+-3.24.48

        Found fcitx5 im modules for gtk `3.24.48`.

            "/usr/lib/gtk-3.0/3.0.0/immodules/im-fcitx5.so" 
            "fcitx" "Fcitx5 (Flexible Input Method Framework5)" "fcitx5" "/usr/locale" "ja:ko:zh:*" 
            "fcitx5" "Fcitx5 (Flexible Input Method Framework5)" "fcitx5" "/usr/locale" "ja:ko:zh:*" 

3.  Gtk IM module cache:

    1.  gtk 2:

        Found immodules cache for gtk `2.24.33` at `/usr/lib/gtk-2.0/2.10.0/immodules.cache`.
        Version Line:

            # Created by /usr/bin/gtk-query-immodules-2.0 from gtk+-2.24.33

        Found fcitx5 im modules for gtk `2.24.33`.

            "/usr/lib/gtk-2.0/2.10.0/immodules/im-fcitx5.so" 
            "fcitx" "Fcitx5 (Flexible Input Method Framework5)" "fcitx5" "/usr/locale" "ja:ko:zh:*" 
            "fcitx5" "Fcitx5 (Flexible Input Method Framework5)" "fcitx5" "/usr/locale" "ja:ko:zh:*" 

    2.  gtk 3:

        Found immodules cache for gtk `3.24.48` at `/usr/lib/gtk-3.0/3.0.0/immodules.cache`.
        Version Line:

            # Created by /usr/bin/gtk-query-immodules-3.0 from gtk+-3.24.48

        Found fcitx5 im modules for gtk `3.24.48`.

            "/usr/lib/gtk-3.0/3.0.0/immodules/im-fcitx5.so" 
            "fcitx" "Fcitx5 (Flexible Input Method Framework5)" "fcitx5" "/usr/locale" "ja:ko:zh:*" 
            "fcitx5" "Fcitx5 (Flexible Input Method Framework5)" "fcitx5" "/usr/locale" "ja:ko:zh:*" 

4.  Gtk IM module files:

    1.  gtk 2:

        All found Gtk 2 immodule files exist.

    2.  gtk 3:

        All found Gtk 3 immodule files exist.

    3.  gtk 4:

        All found Gtk 4 immodule files exist.

# Configuration:
## Fcitx Addons:
1.  Addon Config Dir:

    Found fcitx5 addon config directory: `/usr/share/fcitx5/addon`.

2.  Addon List:

    1.  Found 27 enabled addons:

            Simplified and Traditional Chinese Translation 5.1.7
            Classic User Interface 5.1.12
            Clipboard 5.1.12
            Cloud Pinyin 5.1.7
            DBus 5.1.12
            DBus Frontend 5.1.12
            Emoji 5.1.12
            Fcitx4 Frontend 5.1.12
            Full width character 5.1.7
            IBus Frontend 5.1.12
            Input method selector 5.1.12
            Keyboard 5.1.12
            KDE Input Method Panel 5.1.12
            Status Notifier 5.1.12
            Notification 5.1.12
            Pinyin 5.1.7
            Extra Pinyin functionality 5.1.7
            Punctuation 5.1.7
            Quick Phrase 5.1.12
            Spell 5.1.12
            Table 5.1.7
            Unicode 5.1.12
            DBus Virtual Keyboard 5.1.12
            Wayland 5.1.12
            Wayland Input method frontend 5.1.12
            XCB 5.1.12
            X Input Method Frontend 5.1.12

    2.  Found 0 disabled addons:

3.  Addon Libraries:

    All libraries for all addons are found.

4.  User Interface:

    Found 3 enabled user interface addons:

        Classic User Interface
        KDE Input Method Panel
        DBus Virtual Keyboard

## Input Methods:
1.  `/home/skywatcher/.config/fcitx5/profile`:

        [Groups/0]
        # Group Name
        Name=默认
        # Layout
        Default Layout=us
        # Default Input Method
        DefaultIM=pinyin

        [Groups/0/Items/0]
        # Name
        Name=keyboard-us
        # Layout
        Layout=

        [Groups/0/Items/1]
        # Name
        Name=pinyin
        # Layout
        Layout=

        [GroupOrder]
        0=默认

# Log:
1.  `date`:

        Thu Feb 13 11:29:18 AM CST 2025

2.  `/home/skywatcher/.config/fcitx5/crash.log`:

    `/home/skywatcher/.config/fcitx5/crash.log` not found.

**Warning: the output of fcitx5-diagnose contains sensitive information, including the distribution name, kernel version, name of currently running programs, etc.**

**Though such information can be helpful to developers for diagnostic purpose, please double check and remove as necessary before posting it online publicly.**

离线

#8 2025-02-13 11:32:29

skywatcher
会员
注册时间: 2025-01-26
帖子: 23

Re: hyprland合成器下微信中的fcitx5和鼠标缩放异常

BRS5672023 说:

这个应该是 xwayland 的问题(看起来应该是设置了 force_zero_scaling),我记得可以通过配置 xresources 来调整 xwayland 的 dpi,见 X ResourcesLoad resource file,而且这样设置了需要的 dpi 后就不需要设置 QT_FONT_DPI 这个环境变量了

回去就试试

离线

#9 2025-02-13 12:16:10

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 9,168
个人网站

Re: hyprland合成器下微信中的fcitx5和鼠标缩放异常

嗯,你的微信使用 Xwayland,因此需要设置 Xft.dpi 为合适的值。

离线

#10 2025-02-13 18:53:00

skywatcher
会员
注册时间: 2025-01-26
帖子: 23

Re: hyprland合成器下微信中的fcitx5和鼠标缩放异常

依云 说:

嗯,你的微信使用 Xwayland,因此需要设置 Xft.dpi 为合适的值。

感谢大佬,设置Xft.dpi=120之后,缩放基本正常,除了鼠标在微信边框时会特别大,基本可用了

离线

#11 2025-02-13 18:55:49

skywatcher
会员
注册时间: 2025-01-26
帖子: 23

Re: hyprland合成器下微信中的fcitx5和鼠标缩放异常

BRS5672023 说:

这个应该是 xwayland 的问题(看起来应该是设置了 force_zero_scaling),我记得可以通过配置 xresources 来调整 xwayland 的 dpi,见 X ResourcesLoad resource file,而且这样设置了需要的 dpi 后就不需要设置 QT_FONT_DPI 这个环境变量了

佬,设置Xft.dpi=120之后缩放基本正常了,除了鼠标位于边框时。鼠标位于边框的时候还是会特别大。

boarder
这是鼠标在边框时的大小

not_boarder
这是鼠标不在边框时的大小

最近编辑记录 skywatcher (2025-02-13 18:57:46)

离线

#12 2025-02-13 19:03:11

BRS5672023
会员
注册时间: 2020-07-07
帖子: 145

Re: hyprland合成器下微信中的fcitx5和鼠标缩放异常

skywatcher 说:

佬,设置Xft.dpi=120之后缩放基本正常了,除了鼠标位于边框时。鼠标位于边框的时候还是会特别大。

这个我不太清楚可能是哪方面的问题,你有没有设置 xcursor_size 这个环境变量?可能设置一下光标大小有用?

离线

#13 2025-02-13 19:30:36

skywatcher
会员
注册时间: 2025-01-26
帖子: 23

Re: hyprland合成器下微信中的fcitx5和鼠标缩放异常

BRS5672023 说:
skywatcher 说:

佬,设置Xft.dpi=120之后缩放基本正常了,除了鼠标位于边框时。鼠标位于边框的时候还是会特别大。

这个我不太清楚可能是哪方面的问题,你有没有设置 xcursor_size 这个环境变量?可能设置一下光标大小有用?

我在hyprland的环境变量里面设置过"env = XCURSOR_SIZE,24",但是没有效果(hyprland的设置都是立即生效,我就没重启),还设置过"gsettings set org.gnome.desktop.interface cursor-size 24"(没重启),也没有效果

最近编辑记录 skywatcher (2025-02-13 19:33:27)

离线

#14 2025-03-05 16:34:27

normalpan
会员
注册时间: 2024-02-29
帖子: 14

Re: hyprland合成器下微信中的fcitx5和鼠标缩放异常

exec-once= hyprctl setcursor material_light_cursors 24
你在hyprland 用这个试试.material_light_cursors这个是我的主题 ,你改成你的.

skywatcher 说:
BRS5672023 说:
skywatcher 说:

佬,设置Xft.dpi=120之后缩放基本正常了,除了鼠标位于边框时。鼠标位于边框的时候还是会特别大。

这个我不太清楚可能是哪方面的问题,你有没有设置 xcursor_size 这个环境变量?可能设置一下光标大小有用?

我在hyprland的环境变量里面设置过"env = XCURSOR_SIZE,24",但是没有效果(hyprland的设置都是立即生效,我就没重启),还设置过"gsettings set org.gnome.desktop.interface cursor-size 24"(没重启),也没有效果

离线

#15 2025-03-12 20:58:39

skywatcher
会员
注册时间: 2025-01-26
帖子: 23

Re: hyprland合成器下微信中的fcitx5和鼠标缩放异常

normalpan 说:

exec-once= hyprctl setcursor material_light_cursors 24
你在hyprland 用这个试试.material_light_cursors这个是我的主题 ,你改成你的.

skywatcher 说:
BRS5672023 说:
skywatcher 说:

佬,设置Xft.dpi=120之后缩放基本正常了,除了鼠标位于边框时。鼠标位于边框的时候还是会特别大。

这个我不太清楚可能是哪方面的问题,你有没有设置 xcursor_size 这个环境变量?可能设置一下光标大小有用?

我在hyprland的环境变量里面设置过"env = XCURSOR_SIZE,24",但是没有效果(hyprland的设置都是立即生效,我就没重启),还设置过"gsettings set org.gnome.desktop.interface cursor-size 24"(没重启),也没有效果

没有效果(挠头)
但是我发现不只是边框的时候鼠标特别大,fcitx5打字的时候,鼠标移动到候选框内也会特别大。很早之前有次翻fcitx5作者回答某个issue的时候好像给出过解决办法,能解决候选框内鼠标缩放特别大的问题,但是记不得是在哪里说的了。。。。。

离线

页脚