Window appears off screen on ubuntu

LinuxUbuntuUbuntu 12.04Multiple Monitors

Linux Problem Overview


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?

Linux Solutions


Solution 1 - Linux

You can get the window back on your screen by using

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.

Solution 2 - Linux

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 keys until it appears in the viewport.

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.

Cheers.

Solution 3 - Linux

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

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.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionMladen DanicView Question on Stackoverflow
Solution 1 - LinuxibaralfView Answer on Stackoverflow
Solution 2 - LinuxGeorg JungView Answer on Stackoverflow
Solution 3 - LinuxTine MezgecView Answer on Stackoverflow