简体   繁体   English

不使用窗口管理器时,X11无法最大化应用程序

[英]X11 unable to maximize applications when no window manager is used

We have a Linux based system that does not use a Window manager. 我们有一个不使用窗口管理器的基于Linux的系统。 When we start certain applications (for instance Firefox) from a terminal window (eg Firefox &) we find that no matter what we do, we can't get the application to display full screen. 当我们从终端窗口(例如Firefox&)启动某些应用程序(例如Firefox)时,我们发现无论我们做什么,都无法使应用程序显示全屏。

If we run xrandr, it shows the default resolution is 1280x1024, but when we try to maximize Firefox (by pressing F11) the application is only sized to 1203x650. 如果运行xrandr,它将显示默认分辨率为1280x1024,但是当我们尝试最大化Firefox(通过按F11键)时,应用程序的大小仅为1203x650。

Another application that seems to have the same problem is the evince PDF reader. 似乎有相同问题的另一个应用程序是evince PDF阅读器。

Our application is not configured to run a window manager (and we don't want to add one), so I'm wondering if there is something else that we can do to get these applications to render full screen. 我们的应用程序未配置为运行窗口管理器(并且我们不想添加一个窗口管理器),因此我想知道是否还有其他方法可以使这些应用程序呈现全屏。

Thanks... 谢谢...

Although you don't want to use a window manager, you might need to use a window manager. 尽管您不想使用窗口管理器,但是可能需要使用窗口管理器。

I haven't dug into the X server sources around this, so I can't definitively say X requires a window manager to run properly. 我还没有深入研究X服务器的源代码,所以我不能确切地说X需要窗口管理器才能正常运行。 But as somebody who writes X client code, and hacks the X server, on minimalist embedded devices with small screens, low CPU power and no GPU... let's just say, all the major players in that space use one, and have good reasons for it. 但是,当有人在具有小屏幕,CPU功率低且没有GPU的极简嵌入式设备上编写X客户端代码并入侵X服务器时,可以这么说,该领域中的所有主要参与者都使用一个,并且有充分的理由为了它。

If you want to avoid chewing up a lot of disk space, RAM or CPU power doing window management, you should check out matchbox . 如果要避免占用大量磁盘空间,RAM或CPU功率进行窗口管理,则应检出matchbox It's a low-footprint window manager designed to meet those criteria, and it's what many folks in that minimalist embedded space are using. 它是一种旨在满足这些条件的低占用空间的窗口管理器,并且它是这种最小化嵌入式空间中许多人所使用的。 My employer uses it on cell phones, configured so that only one app at a time is visible to the user, and the foreground app takes up the whole screen with no window borders. 我的雇主在手机上使用它,并对其进行配置,使用户一次只能看到一个应用程序,而前台应用程序将占据整个屏幕,而没有窗口边框。 But you can use it other ways, too - Nokia uses it for their Maemo-based network tablets. 但是您也可以将其用于其他方式-诺基亚将其用于基于Maemo的网络平板电脑。

You could use xwit(1) to forcibly resize and place the windows. 您可以使用xwit(1)强制调整窗口大小并放置它们。 But as as far as I know, X11 in itself does not have the concept of a "maximized" window; 但是据我所知,X11本身没有 “最大化”窗口的概念 the very idea is only added by most window managers and/or applications (like Firefox). 这个想法只有大多数窗口管理器和/或应用程序(例如Firefox)才添加。

将“ -geometry = 1280x1024 + 0 + 0”选项传递给Firefox是否有帮助?

Oh, also... if you don't explicitly set a window manager, you might be unexpectedly falling back to the default X11 window manager . 哦,还有...如果您未明确设置窗口管理器,则可能会意外地退回到默认的X11窗口管理器 If you're not absolutely positive there's no window manager, you should check into this possibility. 如果您不是绝对肯定的人,则没有窗口管理器,则应检查这种可能性。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM