Sometimes I open a new window in a program (such as a new notebook in Mathematica), and the title bar of the window appears above the screen, so I cannot drag the window around.
What can I do when this happens? Is there a command I can use in the terminal to maximize the window, or to change its location?