How to forbid windows from stealing focus in XFce4?











up vote
20
down vote

favorite
4












In XFce4, when I launch applications, I don't want them to appear above the windows I am currently using, or to show alert windows above my current work. Rather, I'd like the windows to load in the background and to not steal focus. The exception would be an alert window or dialog belonging to the application I'm using, e.g. if I am currently using LibreOffice Calc, and it gives me a pop-up to tell me an error, that window can be brought to focus.



Is there any way to prevent windows from stealing focus in Xfce4?










share|improve this question




















  • 4




    This is particularly annoying behaviour when you are typing a password.
    – countermode
    May 3 '15 at 18:47










  • @countermode feature requested bugzilla.xfce.org/show_bug.cgi?id=12200
    – unhammer
    Jan 18 at 12:55










  • This solution worked for me : ubuntuforums.org/showthread.php?t=2049517
    – fabriciobc
    Jul 4 at 18:53















up vote
20
down vote

favorite
4












In XFce4, when I launch applications, I don't want them to appear above the windows I am currently using, or to show alert windows above my current work. Rather, I'd like the windows to load in the background and to not steal focus. The exception would be an alert window or dialog belonging to the application I'm using, e.g. if I am currently using LibreOffice Calc, and it gives me a pop-up to tell me an error, that window can be brought to focus.



Is there any way to prevent windows from stealing focus in Xfce4?










share|improve this question




















  • 4




    This is particularly annoying behaviour when you are typing a password.
    – countermode
    May 3 '15 at 18:47










  • @countermode feature requested bugzilla.xfce.org/show_bug.cgi?id=12200
    – unhammer
    Jan 18 at 12:55










  • This solution worked for me : ubuntuforums.org/showthread.php?t=2049517
    – fabriciobc
    Jul 4 at 18:53













up vote
20
down vote

favorite
4









up vote
20
down vote

favorite
4






4





In XFce4, when I launch applications, I don't want them to appear above the windows I am currently using, or to show alert windows above my current work. Rather, I'd like the windows to load in the background and to not steal focus. The exception would be an alert window or dialog belonging to the application I'm using, e.g. if I am currently using LibreOffice Calc, and it gives me a pop-up to tell me an error, that window can be brought to focus.



Is there any way to prevent windows from stealing focus in Xfce4?










share|improve this question















In XFce4, when I launch applications, I don't want them to appear above the windows I am currently using, or to show alert windows above my current work. Rather, I'd like the windows to load in the background and to not steal focus. The exception would be an alert window or dialog belonging to the application I'm using, e.g. if I am currently using LibreOffice Calc, and it gives me a pop-up to tell me an error, that window can be brought to focus.



Is there any way to prevent windows from stealing focus in Xfce4?







xfce window-management






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Aug 27 '15 at 17:07









Braiam

22.9k1974136




22.9k1974136










asked Sep 20 '14 at 0:57









Village

1,75373055




1,75373055








  • 4




    This is particularly annoying behaviour when you are typing a password.
    – countermode
    May 3 '15 at 18:47










  • @countermode feature requested bugzilla.xfce.org/show_bug.cgi?id=12200
    – unhammer
    Jan 18 at 12:55










  • This solution worked for me : ubuntuforums.org/showthread.php?t=2049517
    – fabriciobc
    Jul 4 at 18:53














  • 4




    This is particularly annoying behaviour when you are typing a password.
    – countermode
    May 3 '15 at 18:47










  • @countermode feature requested bugzilla.xfce.org/show_bug.cgi?id=12200
    – unhammer
    Jan 18 at 12:55










  • This solution worked for me : ubuntuforums.org/showthread.php?t=2049517
    – fabriciobc
    Jul 4 at 18:53








4




4




This is particularly annoying behaviour when you are typing a password.
– countermode
May 3 '15 at 18:47




This is particularly annoying behaviour when you are typing a password.
– countermode
May 3 '15 at 18:47












@countermode feature requested bugzilla.xfce.org/show_bug.cgi?id=12200
– unhammer
Jan 18 at 12:55




@countermode feature requested bugzilla.xfce.org/show_bug.cgi?id=12200
– unhammer
Jan 18 at 12:55












This solution worked for me : ubuntuforums.org/showthread.php?t=2049517
– fabriciobc
Jul 4 at 18:53




This solution worked for me : ubuntuforums.org/showthread.php?t=2049517
– fabriciobc
Jul 4 at 18:53










5 Answers
5






active

oldest

votes

















up vote
11
down vote













Settings/Window Manager/Focus




  • Automatically give Focus to newly created windows (off)


Also



Settings/Window Manager Tweaks/Focus




  • Activate Focus Stealing Prevention (on)

  • Honor standard ICCCM focus
    hint (off)

  • When a window raises itself, (do nothing)






share|improve this answer

















  • 4




    Xfce 4.12, does not work for all applications (e.g. NetBeans IDE 8.1), will steal focus (even when clicking in this window after splashscreen, it will just gain focus again later).
    – Yeti
    Sep 15 '16 at 6:52






  • 2




    Does not work for Intellij Idea either.
    – Artur Klesun
    Mar 12 at 13:11


















up vote
4
down vote













Settings manager >> window manager >> focus tab. Uncheck automatically give focus






share|improve this answer

















  • 3




    Xfce 4.10: this does not work for me, I even activated focus stealing prevention in advanced settings.
    – hochl
    Apr 10 '15 at 19:09








  • 2




    Doesn't work for me either. XFCE 4.12
    – Dean Brundage
    Oct 17 '15 at 0:08


















up vote
2
down vote













For me, Xfce's focus stealing prevention only works when you also have Focus Follows Mouse turned on.



Running Xfce 4.10.1






share|improve this answer





















  • I cannot confirm this
    – Blauhirn
    Oct 13 at 19:41


















up vote
0
down vote













In case you're using Compiz settings manager I was able to get focus to all new windows launched by setting (from the ccsm menu) General Options> Focus & Raise Behaviour>Focus Prevention Windows to Off






share|improve this answer




























    up vote
    0
    down vote













    If nothing from previous answers helped you, you must additionally go to Settings-> Window Manager Tweaks -> Accessiblity tab and unselect "Raise windows when any mouse button is pressed"






    share|improve this answer





















      Your Answer








      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "106"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      convertImagesToLinks: false,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: null,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f156515%2fhow-to-forbid-windows-from-stealing-focus-in-xfce4%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      5 Answers
      5






      active

      oldest

      votes








      5 Answers
      5






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      11
      down vote













      Settings/Window Manager/Focus




      • Automatically give Focus to newly created windows (off)


      Also



      Settings/Window Manager Tweaks/Focus




      • Activate Focus Stealing Prevention (on)

      • Honor standard ICCCM focus
        hint (off)

      • When a window raises itself, (do nothing)






      share|improve this answer

















      • 4




        Xfce 4.12, does not work for all applications (e.g. NetBeans IDE 8.1), will steal focus (even when clicking in this window after splashscreen, it will just gain focus again later).
        – Yeti
        Sep 15 '16 at 6:52






      • 2




        Does not work for Intellij Idea either.
        – Artur Klesun
        Mar 12 at 13:11















      up vote
      11
      down vote













      Settings/Window Manager/Focus




      • Automatically give Focus to newly created windows (off)


      Also



      Settings/Window Manager Tweaks/Focus




      • Activate Focus Stealing Prevention (on)

      • Honor standard ICCCM focus
        hint (off)

      • When a window raises itself, (do nothing)






      share|improve this answer

















      • 4




        Xfce 4.12, does not work for all applications (e.g. NetBeans IDE 8.1), will steal focus (even when clicking in this window after splashscreen, it will just gain focus again later).
        – Yeti
        Sep 15 '16 at 6:52






      • 2




        Does not work for Intellij Idea either.
        – Artur Klesun
        Mar 12 at 13:11













      up vote
      11
      down vote










      up vote
      11
      down vote









      Settings/Window Manager/Focus




      • Automatically give Focus to newly created windows (off)


      Also



      Settings/Window Manager Tweaks/Focus




      • Activate Focus Stealing Prevention (on)

      • Honor standard ICCCM focus
        hint (off)

      • When a window raises itself, (do nothing)






      share|improve this answer












      Settings/Window Manager/Focus




      • Automatically give Focus to newly created windows (off)


      Also



      Settings/Window Manager Tweaks/Focus




      • Activate Focus Stealing Prevention (on)

      • Honor standard ICCCM focus
        hint (off)

      • When a window raises itself, (do nothing)







      share|improve this answer












      share|improve this answer



      share|improve this answer










      answered May 8 '15 at 18:01









      John Lawrence Aspden

      291212




      291212








      • 4




        Xfce 4.12, does not work for all applications (e.g. NetBeans IDE 8.1), will steal focus (even when clicking in this window after splashscreen, it will just gain focus again later).
        – Yeti
        Sep 15 '16 at 6:52






      • 2




        Does not work for Intellij Idea either.
        – Artur Klesun
        Mar 12 at 13:11














      • 4




        Xfce 4.12, does not work for all applications (e.g. NetBeans IDE 8.1), will steal focus (even when clicking in this window after splashscreen, it will just gain focus again later).
        – Yeti
        Sep 15 '16 at 6:52






      • 2




        Does not work for Intellij Idea either.
        – Artur Klesun
        Mar 12 at 13:11








      4




      4




      Xfce 4.12, does not work for all applications (e.g. NetBeans IDE 8.1), will steal focus (even when clicking in this window after splashscreen, it will just gain focus again later).
      – Yeti
      Sep 15 '16 at 6:52




      Xfce 4.12, does not work for all applications (e.g. NetBeans IDE 8.1), will steal focus (even when clicking in this window after splashscreen, it will just gain focus again later).
      – Yeti
      Sep 15 '16 at 6:52




      2




      2




      Does not work for Intellij Idea either.
      – Artur Klesun
      Mar 12 at 13:11




      Does not work for Intellij Idea either.
      – Artur Klesun
      Mar 12 at 13:11












      up vote
      4
      down vote













      Settings manager >> window manager >> focus tab. Uncheck automatically give focus






      share|improve this answer

















      • 3




        Xfce 4.10: this does not work for me, I even activated focus stealing prevention in advanced settings.
        – hochl
        Apr 10 '15 at 19:09








      • 2




        Doesn't work for me either. XFCE 4.12
        – Dean Brundage
        Oct 17 '15 at 0:08















      up vote
      4
      down vote













      Settings manager >> window manager >> focus tab. Uncheck automatically give focus






      share|improve this answer

















      • 3




        Xfce 4.10: this does not work for me, I even activated focus stealing prevention in advanced settings.
        – hochl
        Apr 10 '15 at 19:09








      • 2




        Doesn't work for me either. XFCE 4.12
        – Dean Brundage
        Oct 17 '15 at 0:08













      up vote
      4
      down vote










      up vote
      4
      down vote









      Settings manager >> window manager >> focus tab. Uncheck automatically give focus






      share|improve this answer












      Settings manager >> window manager >> focus tab. Uncheck automatically give focus







      share|improve this answer












      share|improve this answer



      share|improve this answer










      answered Nov 21 '14 at 19:20









      thudrs

      1716




      1716








      • 3




        Xfce 4.10: this does not work for me, I even activated focus stealing prevention in advanced settings.
        – hochl
        Apr 10 '15 at 19:09








      • 2




        Doesn't work for me either. XFCE 4.12
        – Dean Brundage
        Oct 17 '15 at 0:08














      • 3




        Xfce 4.10: this does not work for me, I even activated focus stealing prevention in advanced settings.
        – hochl
        Apr 10 '15 at 19:09








      • 2




        Doesn't work for me either. XFCE 4.12
        – Dean Brundage
        Oct 17 '15 at 0:08








      3




      3




      Xfce 4.10: this does not work for me, I even activated focus stealing prevention in advanced settings.
      – hochl
      Apr 10 '15 at 19:09






      Xfce 4.10: this does not work for me, I even activated focus stealing prevention in advanced settings.
      – hochl
      Apr 10 '15 at 19:09






      2




      2




      Doesn't work for me either. XFCE 4.12
      – Dean Brundage
      Oct 17 '15 at 0:08




      Doesn't work for me either. XFCE 4.12
      – Dean Brundage
      Oct 17 '15 at 0:08










      up vote
      2
      down vote













      For me, Xfce's focus stealing prevention only works when you also have Focus Follows Mouse turned on.



      Running Xfce 4.10.1






      share|improve this answer





















      • I cannot confirm this
        – Blauhirn
        Oct 13 at 19:41















      up vote
      2
      down vote













      For me, Xfce's focus stealing prevention only works when you also have Focus Follows Mouse turned on.



      Running Xfce 4.10.1






      share|improve this answer





















      • I cannot confirm this
        – Blauhirn
        Oct 13 at 19:41













      up vote
      2
      down vote










      up vote
      2
      down vote









      For me, Xfce's focus stealing prevention only works when you also have Focus Follows Mouse turned on.



      Running Xfce 4.10.1






      share|improve this answer












      For me, Xfce's focus stealing prevention only works when you also have Focus Follows Mouse turned on.



      Running Xfce 4.10.1







      share|improve this answer












      share|improve this answer



      share|improve this answer










      answered Jun 11 '15 at 14:50









      TheAmigo

      218210




      218210












      • I cannot confirm this
        – Blauhirn
        Oct 13 at 19:41


















      • I cannot confirm this
        – Blauhirn
        Oct 13 at 19:41
















      I cannot confirm this
      – Blauhirn
      Oct 13 at 19:41




      I cannot confirm this
      – Blauhirn
      Oct 13 at 19:41










      up vote
      0
      down vote













      In case you're using Compiz settings manager I was able to get focus to all new windows launched by setting (from the ccsm menu) General Options> Focus & Raise Behaviour>Focus Prevention Windows to Off






      share|improve this answer

























        up vote
        0
        down vote













        In case you're using Compiz settings manager I was able to get focus to all new windows launched by setting (from the ccsm menu) General Options> Focus & Raise Behaviour>Focus Prevention Windows to Off






        share|improve this answer























          up vote
          0
          down vote










          up vote
          0
          down vote









          In case you're using Compiz settings manager I was able to get focus to all new windows launched by setting (from the ccsm menu) General Options> Focus & Raise Behaviour>Focus Prevention Windows to Off






          share|improve this answer












          In case you're using Compiz settings manager I was able to get focus to all new windows launched by setting (from the ccsm menu) General Options> Focus & Raise Behaviour>Focus Prevention Windows to Off







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered May 3 '15 at 18:31









          mavenmaven

          1




          1






















              up vote
              0
              down vote













              If nothing from previous answers helped you, you must additionally go to Settings-> Window Manager Tweaks -> Accessiblity tab and unselect "Raise windows when any mouse button is pressed"






              share|improve this answer

























                up vote
                0
                down vote













                If nothing from previous answers helped you, you must additionally go to Settings-> Window Manager Tweaks -> Accessiblity tab and unselect "Raise windows when any mouse button is pressed"






                share|improve this answer























                  up vote
                  0
                  down vote










                  up vote
                  0
                  down vote









                  If nothing from previous answers helped you, you must additionally go to Settings-> Window Manager Tweaks -> Accessiblity tab and unselect "Raise windows when any mouse button is pressed"






                  share|improve this answer












                  If nothing from previous answers helped you, you must additionally go to Settings-> Window Manager Tweaks -> Accessiblity tab and unselect "Raise windows when any mouse button is pressed"







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Nov 25 at 7:50









                  likeanowl

                  1




                  1






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Unix & Linux Stack Exchange!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.





                      Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                      Please pay close attention to the following guidance:


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f156515%2fhow-to-forbid-windows-from-stealing-focus-in-xfce4%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Morgemoulin

                      Scott Moir

                      Souastre