如何使Windows在Xfce中更容易调整大小?


27

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

如何使该区域更宽一些?我不想更改窗口边框的外观,只需使其命中目标更宽即可。(我知道窗口菜单中的“调整大小”选项,但这不允许您仅按1维调整窗口大小。)我已经在窗口管理器中进行了设置和调整,但没有看到任何设置似乎适用。


1
问题仍然存在:如何更改光标将抓住边缘的窗口边缘附近目标区域的宽度?
HiTechHiTouch

Answers:


25

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


2
技术上正确的答案不能解决抓杆宽度的问题。因此,我们现在有一个GUI 布局问题,因为窗口设计器的抓斗不够大。优秀的GUI主体在经过不同的活动区域时会使用光标/鼠标在文本上的更改,在这些活动区域上,鼠标动作将在抓杆上方指示更改,并阻止使用诸如ALT之类的修饰键。从GUI的角度来看,首选解决方案是在活动区域​​中显示更改的光标。新手用户无需了解或记住修饰符和替代点击。
HiTechHiTouch

1
“非常容易”取决于。在带触摸板的笔记本上尝试一下...
karatedog

12

显然,这个问题已经存在多年了,并且已经关闭了一个“无法修复”的错误报告。该问题已通过Bug 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"

给了我较小的抓地力 增加该数字将为您提供更大的握力区域。您将需要重新加载主题才能使设置生效。

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


编辑添加:

另一种方法涉及安装和配置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 

“编辑添加”方法似乎适用于大多数地方,但不适用于Firefox。YMMV。
HiTechHiTouch

窗口调整大小边距在Greybird主题中仅保持一个像素宽,但至少在XFCE(Ubuntu 18.04 + xubuntu-desktop软件包)随附的Kokodi主题中,边距更宽,因此更易于使用。
Teemu Leisti
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.