Linux 窗口出现在 ubuntu 屏幕外

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/12477435/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-06 14:23:14  来源:igfitidea点击:

Window appears off screen on ubuntu

linuxubuntuubuntu-12.04multiple-monitors

提问by Mladen Danic

I have a dual monitor setup, and I am using Ubuntu 12.04 LTS I have changed the positioning of the monitors several times, and now for some reason some of the windows open up off-screen (outside of both screens), Update Manager, for instance. How can I position the windows on one of my screens?

我有一个双显示器设置,我使用的是 Ubuntu 12.04 LTS 我已经多次更改了显示器的位置,现在由于某种原因,一些窗口在屏幕外(两个屏幕之外)打开,更新管理器,用于实例。如何在我的屏幕之一上定位窗口?

采纳答案by ibaralf

You can get the window back on your screen by using

您可以使用

ALT + spacebar

ALT + spacebar

This would show you the maximize/minimize/ ... options. Click maximize and it would occupy your screen.

这将显示最大化/最小化/ ...选项。单击最大化,它将占据您的屏幕。

You can also hit "move" and then either your mouse or arrow keys to move the window to your current window.

您也可以点击“移动”,然后使用鼠标或箭头键将窗口移动到当前窗口。

回答by Georg Jung

Be sure to have the off-screen window selected (use Alt-Tab or Super-W for example). Then hold Alt+F7 and move the window with the cursor keysuntil it appears in the viewport.

确保选择了屏幕外窗口(例如使用 Alt-Tab 或 Super-W)。然后按住 Alt+F7 并使用光标键移动窗口,直到它出现在视口中。

When this happens to me the hidden window is usually below the screen (I occasionally use two screens with one on top of the other, a setup that agrees well with a laptop on a desk). If you use Super-W to select the window, you can guess where it is by looking at the animations. Holding Alt+F7+Up brings the window into view for me.

当我遇到这种情况时,隐藏的窗口通常在屏幕下方(我偶尔会使用两个屏幕,一个在另一个屏幕上,这种设置与放在桌上的笔记本电脑非常吻合)。如果使用 Super-W 选择窗口,则可以通过查看动画来猜测它的位置。按住 Alt+F7+Up 可以让我看到窗口。

Cheers.

干杯。

回答by Tine Mezgec

I made a little script to fix a similiar bug I have in ubuntu 15.04 with two screens: https://github.com/mezga0153/offscreen-window-restore

我制作了一个小脚本来修复我在 ubuntu 15.04 中有两个屏幕的类似错误:https: //github.com/mezga0153/offscreen-window-restore

The script makes use of the wmctrl command line tool to find the offscreen windows and then uses wmctrl to place each one back into a visible area.

该脚本使用 wmctrl 命令行工具来查找屏幕外窗口,然后使用 wmctrl 将每个窗口放回可见区域。