Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Right now it appears on whatever screen the app I'm switching from is located. If I while alt-tabbing I accidentally stop on my radio player, located on my alt screen, it's most annoying.

share|improve this question
This is entirely dependent on the window manager or desktop environment. – Gilles May 29 '11 at 22:28
@Gilles - added gnome tag. – ripper234 May 30 '11 at 3:21

Not having my Alt-Tab window on my primary screen was a huge annoyance for me when I had two monitors. When I noticed my Alt-Tab window had wandered over to the wrong screen, I would invoke this Python script with a keyboard shortcut:

#!/usr/bin/python -E
import gtk 
gtk.gdk.display_get_default().warp_pointer(gtk.gdk.screen_get_default(), 800, 600)
gtk.gdk.flush ()

Per http://stackoverflow.com/questions/1181464/controlling-mouse-with-python all it does is act like you have clicked on your primary screen. This is a kludge, sure, and doesn't fix the root issue, but it's the best workaround I could come up with at the time.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.