Results 1 to 5 of 5

Thread: Prevent newly opened apps to steal the focus

  1. #1
    Join Date
    Sep 2010
    Location
    Indian Capital City
    Beans
    916
    Distro
    Ubuntu 14.04 Trusty Tahr

    Question Prevent newly opened apps to steal the focus

    Hi

    I have been using Ubuntu since a while now. But I am always pestered with this issue wherein if I open a new application, the focus shifts to that app
    I am using Ubuntu 14.04 now with Unity and NOT using multiple desktops/workspaces.

    Is there any way to prevent it ?
    I just want the new apps to open in the background and continue with all the initializations etc. I will switch to them only when I want to
    When you have eliminated the impossible, whatever remains, however improbable, must be the truth !!
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Mark it [SOLVED] if the issue has been resolved

  2. #2
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Prevent newly opened apps to steal the focus

    I don't use unity, but with openbox, there is a setting to control exactly this. http://openbox.org/wiki/Configuration

  3. #3
    Join Date
    Sep 2007
    Location
    Oklahoma, USA
    Beans
    2,378
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: Prevent newly opened apps to steal the focus

    The file manager in Xubuntu, Thunar, also has this capability, with a single checkbox to control it.
    --
    Jim Kyle in Oklahoma, USA
    Linux Counter #259718
    Howto mark thread: https://wiki.ubuntu.com/UnansweredPo.../SolvedThreads

  4. #4
    Join Date
    Dec 2007
    Beans
    12,521

    Re: Prevent newly opened apps to steal the focus

    Quote Originally Posted by TheFu View Post
    I don't use unity, but with openbox, there is a setting to control exactly this. http://openbox.org/wiki/Configuration
    Just to expand on that, rc.xml or its equivalent has this near the top of the file:
    Code:
      <focus>
        <focusNew>yes</focusNew>
        <!-- always try to focus new windows when they appear. other rules do
           apply -->
        <followMouse>no</followMouse>
        <!-- move focus to a window when you move the mouse into it -->
        <focusLast>yes</focusLast>
        <!-- focus the last used window when changing desktops, instead of the one
           under the mouse pointer. when followMouse is enabled -->
        <underMouse>no</underMouse>
        <!-- move focus under the mouse, even when the mouse is not moving -->
        <focusDelay>200</focusDelay>
        <!-- when followMouse is enabled, the mouse must be inside the window for
           this many milliseconds (1000 = 1 sec) before moving focus to it -->
        <raiseOnFocus>no</raiseOnFocus>
        <!-- when followMouse is enabled, and a window is given focus by moving the
           mouse into it, also raise the window -->
      </focus>
    You can also set application-specific focus rules in the last section of rc.xml.

  5. #5
    Join Date
    Sep 2010
    Location
    Indian Capital City
    Beans
    916
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Prevent newly opened apps to steal the focus

    Found an option in Compiz manager -> General options -> Focus and raise behaviour

    Changed the 'Focus prevention level' from "Low" to "Normal" and it seems to have worked
    When you have eliminated the impossible, whatever remains, however improbable, must be the truth !!
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Mark it [SOLVED] if the issue has been resolved

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
  •