mouse focus problem












3














I've just installed Ubuntu Mate 16.04 and am encountering a very annoying problem.



After using the pc for a while:




  • it becomes impossible to change focus to another window by mouse click

  • it is still possible to use Alt+Tab to change focus, but the window doesn't react to mouse clicks

  • it is not possible to click on desktop buttons (application/places/system) and also it's impossible to move/drag windows


The really weird thing is that I was previously experiencing the same problems in OpenSuse leap 42 with different desktops (KDE plasma, xfce, icewm). It was very annoying, and that's the main reason why I reinstalled Linux and tried Ubuntu Mate 16.



I'm starting to suspect that this is bug in recent versions of X.org which is present in any recent distribution.
I don't think it's a hardware problem (in win7 I have no issue).



Did anyone see this problem? Any suggestion or solution?










share|improve this question
























  • I also have this problem I think. However if I click on the title bar, then the window gets the focus. If I click anywhere else, the window is raised to the front but does not have the focus (key strokes are not registered by said window). Is this what you have?
    – Vineus
    Sep 21 '16 at 14:06










  • Is it maybe related to Wayland? Are you using Wayland or Xorg? It is possible that the error might not occur if you switch XServer. You can select it at the login page (itsfoss.com/switch-xorg-wayland).
    – nobody
    Jan 2 at 15:52
















3














I've just installed Ubuntu Mate 16.04 and am encountering a very annoying problem.



After using the pc for a while:




  • it becomes impossible to change focus to another window by mouse click

  • it is still possible to use Alt+Tab to change focus, but the window doesn't react to mouse clicks

  • it is not possible to click on desktop buttons (application/places/system) and also it's impossible to move/drag windows


The really weird thing is that I was previously experiencing the same problems in OpenSuse leap 42 with different desktops (KDE plasma, xfce, icewm). It was very annoying, and that's the main reason why I reinstalled Linux and tried Ubuntu Mate 16.



I'm starting to suspect that this is bug in recent versions of X.org which is present in any recent distribution.
I don't think it's a hardware problem (in win7 I have no issue).



Did anyone see this problem? Any suggestion or solution?










share|improve this question
























  • I also have this problem I think. However if I click on the title bar, then the window gets the focus. If I click anywhere else, the window is raised to the front but does not have the focus (key strokes are not registered by said window). Is this what you have?
    – Vineus
    Sep 21 '16 at 14:06










  • Is it maybe related to Wayland? Are you using Wayland or Xorg? It is possible that the error might not occur if you switch XServer. You can select it at the login page (itsfoss.com/switch-xorg-wayland).
    – nobody
    Jan 2 at 15:52














3












3








3


2





I've just installed Ubuntu Mate 16.04 and am encountering a very annoying problem.



After using the pc for a while:




  • it becomes impossible to change focus to another window by mouse click

  • it is still possible to use Alt+Tab to change focus, but the window doesn't react to mouse clicks

  • it is not possible to click on desktop buttons (application/places/system) and also it's impossible to move/drag windows


The really weird thing is that I was previously experiencing the same problems in OpenSuse leap 42 with different desktops (KDE plasma, xfce, icewm). It was very annoying, and that's the main reason why I reinstalled Linux and tried Ubuntu Mate 16.



I'm starting to suspect that this is bug in recent versions of X.org which is present in any recent distribution.
I don't think it's a hardware problem (in win7 I have no issue).



Did anyone see this problem? Any suggestion or solution?










share|improve this question















I've just installed Ubuntu Mate 16.04 and am encountering a very annoying problem.



After using the pc for a while:




  • it becomes impossible to change focus to another window by mouse click

  • it is still possible to use Alt+Tab to change focus, but the window doesn't react to mouse clicks

  • it is not possible to click on desktop buttons (application/places/system) and also it's impossible to move/drag windows


The really weird thing is that I was previously experiencing the same problems in OpenSuse leap 42 with different desktops (KDE plasma, xfce, icewm). It was very annoying, and that's the main reason why I reinstalled Linux and tried Ubuntu Mate 16.



I'm starting to suspect that this is bug in recent versions of X.org which is present in any recent distribution.
I don't think it's a hardware problem (in win7 I have no issue).



Did anyone see this problem? Any suggestion or solution?







16.04 xorg mouse ubuntu-mate focus






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 2 at 14:42









David Foerster

27.9k1364110




27.9k1364110










asked May 19 '16 at 20:47









syraxessyraxes

363




363












  • I also have this problem I think. However if I click on the title bar, then the window gets the focus. If I click anywhere else, the window is raised to the front but does not have the focus (key strokes are not registered by said window). Is this what you have?
    – Vineus
    Sep 21 '16 at 14:06










  • Is it maybe related to Wayland? Are you using Wayland or Xorg? It is possible that the error might not occur if you switch XServer. You can select it at the login page (itsfoss.com/switch-xorg-wayland).
    – nobody
    Jan 2 at 15:52


















  • I also have this problem I think. However if I click on the title bar, then the window gets the focus. If I click anywhere else, the window is raised to the front but does not have the focus (key strokes are not registered by said window). Is this what you have?
    – Vineus
    Sep 21 '16 at 14:06










  • Is it maybe related to Wayland? Are you using Wayland or Xorg? It is possible that the error might not occur if you switch XServer. You can select it at the login page (itsfoss.com/switch-xorg-wayland).
    – nobody
    Jan 2 at 15:52
















I also have this problem I think. However if I click on the title bar, then the window gets the focus. If I click anywhere else, the window is raised to the front but does not have the focus (key strokes are not registered by said window). Is this what you have?
– Vineus
Sep 21 '16 at 14:06




I also have this problem I think. However if I click on the title bar, then the window gets the focus. If I click anywhere else, the window is raised to the front but does not have the focus (key strokes are not registered by said window). Is this what you have?
– Vineus
Sep 21 '16 at 14:06












Is it maybe related to Wayland? Are you using Wayland or Xorg? It is possible that the error might not occur if you switch XServer. You can select it at the login page (itsfoss.com/switch-xorg-wayland).
– nobody
Jan 2 at 15:52




Is it maybe related to Wayland? Are you using Wayland or Xorg? It is possible that the error might not occur if you switch XServer. You can select it at the login page (itsfoss.com/switch-xorg-wayland).
– nobody
Jan 2 at 15:52










2 Answers
2






active

oldest

votes


















1














I'm a bit late, but anyway, here's a temporary fix:

Press CTRL+ALT+F4



You should see a terminal - now go back to the graphical environment with CTRL+ALT+F1

(or F7, depends on your Ubuntu version)






share|improve this answer































    0














    I have had an identical problem with mouse focus locked to active window or a part of it. It happened on a fresh install of Xubuntu 18.04. I could not click on top window to set focus to it. Top window remained transparent for mouse pointer so I could highlight the text in window below and click on invisible links. The panel bar became inaccessible, so did the rest of the desktop. Sometimes right clicking would release the focus but it all seemed very random. Changing to TTY and back to GUI wans't helping as other answer suggests. Neither did disabling the touchpad in my laptop. After long research of similar bug reports, I came across this solution and so far so good, it was the fix I was looking for.



    sudo apt install wmctrl
    xfconf-query -c xfwm4 -p /general/click_to_focus -s true
    wmctrl -R WindowName
    xfconf-query -c xfwm4 -p /general/click_to_focus -s false


    The bug report can be found here:
    source






    share|improve this answer





















      Your Answer








      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "89"
      };
      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',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      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%2faskubuntu.com%2fquestions%2f774888%2fmouse-focus-problem%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      1














      I'm a bit late, but anyway, here's a temporary fix:

      Press CTRL+ALT+F4



      You should see a terminal - now go back to the graphical environment with CTRL+ALT+F1

      (or F7, depends on your Ubuntu version)






      share|improve this answer




























        1














        I'm a bit late, but anyway, here's a temporary fix:

        Press CTRL+ALT+F4



        You should see a terminal - now go back to the graphical environment with CTRL+ALT+F1

        (or F7, depends on your Ubuntu version)






        share|improve this answer


























          1












          1








          1






          I'm a bit late, but anyway, here's a temporary fix:

          Press CTRL+ALT+F4



          You should see a terminal - now go back to the graphical environment with CTRL+ALT+F1

          (or F7, depends on your Ubuntu version)






          share|improve this answer














          I'm a bit late, but anyway, here's a temporary fix:

          Press CTRL+ALT+F4



          You should see a terminal - now go back to the graphical environment with CTRL+ALT+F1

          (or F7, depends on your Ubuntu version)







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Nov 14 '18 at 0:21









          Elder Geek

          26.5k952126




          26.5k952126










          answered Nov 13 '18 at 18:51









          A.N. O'NymeA.N. O'Nyme

          361




          361

























              0














              I have had an identical problem with mouse focus locked to active window or a part of it. It happened on a fresh install of Xubuntu 18.04. I could not click on top window to set focus to it. Top window remained transparent for mouse pointer so I could highlight the text in window below and click on invisible links. The panel bar became inaccessible, so did the rest of the desktop. Sometimes right clicking would release the focus but it all seemed very random. Changing to TTY and back to GUI wans't helping as other answer suggests. Neither did disabling the touchpad in my laptop. After long research of similar bug reports, I came across this solution and so far so good, it was the fix I was looking for.



              sudo apt install wmctrl
              xfconf-query -c xfwm4 -p /general/click_to_focus -s true
              wmctrl -R WindowName
              xfconf-query -c xfwm4 -p /general/click_to_focus -s false


              The bug report can be found here:
              source






              share|improve this answer


























                0














                I have had an identical problem with mouse focus locked to active window or a part of it. It happened on a fresh install of Xubuntu 18.04. I could not click on top window to set focus to it. Top window remained transparent for mouse pointer so I could highlight the text in window below and click on invisible links. The panel bar became inaccessible, so did the rest of the desktop. Sometimes right clicking would release the focus but it all seemed very random. Changing to TTY and back to GUI wans't helping as other answer suggests. Neither did disabling the touchpad in my laptop. After long research of similar bug reports, I came across this solution and so far so good, it was the fix I was looking for.



                sudo apt install wmctrl
                xfconf-query -c xfwm4 -p /general/click_to_focus -s true
                wmctrl -R WindowName
                xfconf-query -c xfwm4 -p /general/click_to_focus -s false


                The bug report can be found here:
                source






                share|improve this answer
























                  0












                  0








                  0






                  I have had an identical problem with mouse focus locked to active window or a part of it. It happened on a fresh install of Xubuntu 18.04. I could not click on top window to set focus to it. Top window remained transparent for mouse pointer so I could highlight the text in window below and click on invisible links. The panel bar became inaccessible, so did the rest of the desktop. Sometimes right clicking would release the focus but it all seemed very random. Changing to TTY and back to GUI wans't helping as other answer suggests. Neither did disabling the touchpad in my laptop. After long research of similar bug reports, I came across this solution and so far so good, it was the fix I was looking for.



                  sudo apt install wmctrl
                  xfconf-query -c xfwm4 -p /general/click_to_focus -s true
                  wmctrl -R WindowName
                  xfconf-query -c xfwm4 -p /general/click_to_focus -s false


                  The bug report can be found here:
                  source






                  share|improve this answer












                  I have had an identical problem with mouse focus locked to active window or a part of it. It happened on a fresh install of Xubuntu 18.04. I could not click on top window to set focus to it. Top window remained transparent for mouse pointer so I could highlight the text in window below and click on invisible links. The panel bar became inaccessible, so did the rest of the desktop. Sometimes right clicking would release the focus but it all seemed very random. Changing to TTY and back to GUI wans't helping as other answer suggests. Neither did disabling the touchpad in my laptop. After long research of similar bug reports, I came across this solution and so far so good, it was the fix I was looking for.



                  sudo apt install wmctrl
                  xfconf-query -c xfwm4 -p /general/click_to_focus -s true
                  wmctrl -R WindowName
                  xfconf-query -c xfwm4 -p /general/click_to_focus -s false


                  The bug report can be found here:
                  source







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Jan 2 at 1:01









                  ohwellohwell

                  233




                  233






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Ask Ubuntu!


                      • 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%2faskubuntu.com%2fquestions%2f774888%2fmouse-focus-problem%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

                      Human spaceflight

                      Can not write log (Is /dev/pts mounted?) - openpty in Ubuntu-on-Windows?

                      張江高科駅