PDA

View Full Version : [SOLVED] How to force window to open in foreground?



jazzgossen
February 4th, 2010, 02:26 PM
Is there a way in Ubuntu, running Compiz or Metacity, to force a program to open in the foreground?

My specific scenario is that I have a PDF presentation running full-screen and I also have a shell script that starts a full-screen mplayer session, playing an animation. However, when the script runs, the video plays behind the PDF presentation (shown in Impressive), so that it's invisible.

Is there a command-line way to force it to the foreground?

zlatkart
February 4th, 2010, 08:38 PM
wmctrl -a :ACTIVE:
should work (if wmctrl installed

rewyllys
September 18th, 2011, 06:49 PM
wmctrl -a :ACTIVE:
should work (if wmctrl installed
Thanks, Zlatkart. Your code cured my problem!:popcorn: