如何在 Xfce 中更轻松地调整窗口大小?

cjm*_*cjm 43 window-manager xfce

我使用 Xfce 4.10xfwm4作为我的窗口管理器。我发现很难通过抓取边框来调整窗口大小。鼠标光标变为“调整窗口大小”光标的区域似乎只有 1 或 2 个像素宽,我一直在它中间移动。

我怎样才能让那个区域更宽一点?我不想改变窗口边框的外观,只是让他们的命中目标更宽一些。(我知道窗口菜单中的“调整大小”选项,但这不允许您仅在 1 维中调整窗口大小。)我查看了窗口管理器设置和调整,但没有看到任何设置似乎适用。

Joe*_*oel 37

这“非常简单”,您可以使用 Alt + 右键单击​​ + 拖动。

  • 一个技术上正确的答案,它没有解决抓杆宽度的问题。所以我们现在有一个 GUI **布局** 问题,因为窗口设计者没有让抓取足够大。良好的 GUI 原则在经过不同的活动区域时使用光标/鼠标在文本上的更改,其中鼠标操作将在抓取栏上指示更改,并且不鼓励使用诸如 ALT 之类的修饰键。从 GUI 的角度来看,首选解决方案是在活动区域​​中显示更改的光标,就足够了。新手用户不需要知道或记住修饰符和替代点击。 (9认同)
  • “很容易”取决于。在带触摸板的笔记本上试试这个... (8认同)
  • 谢谢你!!老实说,Alt + 右键单击​​ + 拖动以调整大小和 Alt + 左键单击 + 拖动以移动窗口,这真是太棒了!我现在有“少数派报告”(电影)的感觉!!这很酷! (2认同)

HiT*_*uch 19

显然这个问题已经存在多年,并且一个错误报告已经被关闭“无法修复”。该问题已通过错误 11808 - Xfwm重新打开:增加 window 的调整大小边框

抓取区域的宽度由主题控制。另一种规避方法是尝试不同的主题,直到找到可以接受的主题。一位开发人员评论道

这是在主题本身 AFAIK 中编码的,至少这是我们在 MX-15 开发过程中发现的。如果您使用的是 greybird(或 bluebird)和基于 Debian 的发行版,那么您可以查看我们的 mx-greybird-themes 包,在经过大量测试人员反馈后,我们将边框扩展到 3 个像素抓住它。(我们即将更新该 BTW 以包含修复其他外观问题的 Stretch 版本。)

这是一篇关于如何设置寄宿生主题的博客条目。

另一篇文章建议在主题定义中进行一些更改(实际上该文件不是定义的一部分,而是窗口管理器), ~/.gtkrc-2.0

style "default-style"
{
        GtkWindow::resize-grip-height = 4
        GtkWindow::resize-grip-width = 4
}
class "GtkWidget" style "default-style"
Run Code Online (Sandbox Code Playgroud)

给我一个较小的抓地力区域。增加这个数字应该会给你一个更大的抓地力区域。您需要重新加载主题才能使设置生效。

我个人没有尝试改变主题定义,但这看起来是一个很好的起点。


编辑添加:

另一种方法涉及安装和配置 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 
Run Code Online (Sandbox Code Playgroud)

  • 窗口调整边距在 Greybird 主题中仍然只有一个像素宽,但至少在 XFCE(Ubuntu 18.04 + xubuntu-desktop 包)附带的 Kokodi 主题中,边距更宽,因此更易于使用。 (3认同)