我在 CentOS 7 上的一个 Xorg 屏幕上遇到光标大小问题。我有两个屏幕。一个运行 xfce4 窗口管理器和桌面,而另一个运行 mwm 窗口管理器。这是一个自定义设置,它允许全屏 Motif 应用程序在带有 mwm 的屏幕上运行,以及在 xfce4 屏幕上运行其他应用程序。我还为 Motif 应用程序提供了一种特殊的监视器,它是 2048x2048 分辨率。
我遇到的问题是除了一个游标之外的所有游标在 mwm 上都很大,而在 xfce4 上它们都是正常的。桌面背景上的光标形状“X”是正常尺寸,而其他尺寸过大。
如何更改 mwm 屏幕上的光标大小?我在 Xresources 中尝试过 Xcursor.size,但没有任何效果。
另一个更新:
I have tried different window managers to see if cursor size is big there too. KDE, for instance, works fine. However, when I open XTerm window cursors are too big within that window. The app I use also uses Xt and Motif widgets, and also shows big cursors.
I have found a solution that works for me.
At first I inspected sources for mwm, libXm, libX11 to see how could I make programs use smaller cursors. I tried some changes, but realized it would require to much work, recompiling, etc.
Than I renamed/removed
/usr/share/icons/Adwaita/cursors
directory. When X did not find oversized cursors installed byadwaita-cursor-theme
package any more, the only remaining ones are not as beautiful as Adwaita cursors but are at least of the right size.I believe adwaita cursors are required by essential packages, so I cannot afford to delete package
adwaita-cursor-theme
. I have two options:Final solution: I downloaded adwaita theme sources and created new cursors. There are files
*.in
where cursor sizes are specified. I edited these files to remove large size cursors and created new cursors withmake.sh
, which basically callsxcursorgen
for each cursor. I put these cursors in/usr/share/icons/Adwaita/cursors
and now I have the cursors sized as I want.我想我会为后代分享我在这里告诉你的解决方案,因为它不需要重建主题。
与您的设置类似,我正在为单个全屏应用程序运行 metacity,而无需任何额外的 UI。
在 ~/.Xresources 中设置正确/所需的光标大小
通过添加到 .xinitrc 在启动 WM 之前使用 xrdb 合并设置,在我的情况下最终是
注意:我的设置已本地化为用于 startx 的特定用户,因此是本地配置文件。