我使用 Xfce 4.10xfwm4
作为我的窗口管理器。我发现很难通过抓住边框来调整窗口大小。鼠标光标变为“调整窗口大小”光标的区域似乎只有 1 或 2 像素宽,我一直在其中移动。
我怎样才能使该区域更宽一点?我不想改变窗口边框的外观,只是让他们的命中目标更宽一些。 (我知道窗口菜单中的“调整大小”选项,但这不允许您仅在一维中调整窗口大小。)我查看了窗口管理器设置和调整,但没有看到任何设置似乎适用。
答案1
这“非常简单”,您可以使用 Alt + 右键单击 + 拖动。
答案2
显然这个问题已经存在很多年了,而且错误报告已关闭“无法修复”。该问题已重新开放错误 11808- Xfwm:增加窗口调整大小边框。
抓取区域的宽度由主题控制。另一种规避方法是尝试不同的主题,直到找到一个可以接受的主题。一位开发商拥有评论了:
据我所知,这是在主题本身中编码的,至少我们在 MX-15 开发过程中发现了这一点。如果您使用的是 greybird(或 bluebird)和基于 Debian 的发行版,那么您可以看看我们的 mx-greybird-themes 包,在很多测试者反馈关于尝试是多么烦人之后,我们将边框扩展到 3 像素抓住它。 (顺便说一句,我们即将更新该版本,以包含修复其他外观问题的 Stretch 版本。)
这是一篇关于主题如何设置边框。
其他邮政建议在主题定义中进行一些更改(实际上该文件不是定义的一部分,而是窗口管理器的一部分), ~/.gtkrc-2.0
style "default-style"
{
GtkWindow::resize-grip-height = 4
GtkWindow::resize-grip-width = 4
}
class "GtkWidget" style "default-style"
给我一个更小的抓握面积。增加这个数字应该会给你带来更大的抓握面积。您需要重新加载主题才能使设置生效。
我个人没有尝试过改变主题定义,但这看起来是一个很好的起点。
编辑添加:
另一种方法涉及安装和配置 Compiz(基础包可能已经存在于最近的发行版中)。我重复一遍,因为它是错误报告的一部分,并且可能会被错误管理器删除为不“相关”。
tm.selsingen 2017-02-11 19:40:45 CET
This may be a rough solution not suited for those needing xfwm4 because
of limited system resources. But you can change the default window
manager to compiz. This solved the issue for me and I can now enjoy the
xcfe simplicity combined with generous grabbing areas.
https://wiki.ubuntuusers.de/Compiz/
Enter in terminal:
"sudo apt-get install compiz compiz-gnome compiz-plugins-extra"
"sudo apt-get install compizconfig-settings-manager"
"ccsm" _______________________
In CCSM you need to enable OpenGL, Composite, GNOME Compatibility in
'General' Tab. Within the 'General Options' menu, you can set the focus
steal prevention to zero, so that new windows are placed always on top,
and choose your workplaces
In 'Effects', enable Fading Windows, Window decorations, and if you like
Animations
In 'Other', you can enable Window previews (may need png)
In Tools enable Compiz Library Toolbox, D-Bus, Mousepolling (gets
activated if you choose Window previews), Session Management and
Workarounds
Now in 'Window Management', you need to choose Application Switcher,
Move Windows, Place Windows, Scale Windows Put and Window Rules.
Ring, Static & Shift Switcher are more advanced Application Switchers
you can configure as you like.
In the CCSM Settings you need to enable Gsettings Configuration Backend.
________________________
Now Compiz is configured, make a Backup of
"/home/user/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-session.xml"
and enter
"xfconf-query -c xfce4-session -p /sessions/Failsafe/Client0_Command -t
string -sa compiz"
in terminal to configure xcfe to use compiz as the default window
manager. ________________________
To spare you from needing GNOME Tweak to set your theme now, you can use
"gsettings set org.gnome.metacity theme insertyourthemehere" to change
the window decoration theme
and the default xcfe theme settings to change the rest of the UI.
I experienced that my minimize/maximize Buttons were gone after that.
you can use "gsettings set org.gnome.desktop.wm.preferences
button-layout ':minimize,maximize,close,'" to restore them.
And that's it.
Comment 15 tm.selsingen 2017-02-12 09:11:22 CET
I don't know how to edit posts, but I realized the desktop icon texts
get displaced if you follow the steps. This is the fix:
xfconf-query -c xfce4-desktop -p /desktop-icons/center-text -n -t bool
-s false