Results 1 to 3 of 3

Thread: How to force window to open in foreground?

  1. #1
    Join Date
    Jan 2006
    Location
    Örebro, Sweden
    Beans
    491

    How to force window to open in foreground?

    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?

  2. #2
    Join Date
    Oct 2009
    Beans
    29

    Re: How to force window to open in foreground?

    Code:
    wmctrl -a :ACTIVE:
    should work (if wmctrl installed

  3. #3
    Join Date
    Jul 2009
    Location
    Austin, Texas, USA
    Beans
    435

    Re: How to force window to open in foreground?

    Quote Originally Posted by zlatkart View Post
    Code:
    wmctrl -a :ACTIVE:
    should work (if wmctrl installed
    Thanks, Zlatkart. Your code cured my problem!

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •