the rare mouse focus issue

Florian Mickler florian at mickler.org
Sat Aug 29 14:40:12 PDT 2009


Hi!
I'm seeing a (minor) focus issue too, but i think it is not the
same issue you are expiriencing.

my (minor) focus issue is with the mouse, not responding to clicks. but
pressing a keyboard-key fixes the issue for me.  the
first pressed key also get's lost. 

anyway, while i read through
your gathered material, i put some quotes in there, to make it easier
to read (i prefixed the excerpts from the bugreports you mentioned with
">>")


On Sat, 29 Aug 2009 15:20:12 +0000
"deeptech71 at gmail.com" <deeptech71 at gmail.com> wrote:

> I've had a Xorg focus issue for half a year, but only recently made a
> problem report, and in it I tried to describe the problem accurately:
> http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/137748:

>>I have a focus issue in Xorg. It seems that whenever I click in a
>>window area that "does not process clicks well", the focus is locked
>>on
>>that area (forever). Examples: xterm doesn't "process clicks well" (at
>>all, actually); after clicking in an xterm window, the focus will not
>>follow the pointer, and when the pointer is outside the xterm window,
>>clicks do not register at pointer location. It's the same with (the
>>window manager's) window borders and title bars. Menu bars (like "File
>>| Edit | View | ...") seem to "process clicks well"; after clicking a
>>menu bar, the mouse works as usual (until bad click).

> As it seems, almost noone has this issue. I didn't get much of a
> reply, so I decided to consult with some of you Xorg developers.
> 
> I did some googling and browsed the xorg and xorg-devel list archives,
> and collected some other reports which seem to describe more or less
> the same symptoms, with a bit of flavouring:
> 


> http://lists.freedesktop.org/archives/xorg/2009-May/045538.html
>>Every so often (at unpredictable times), X stops responding to mouse
>>clicks or the keyboard. I can move the mouse with both my Bluetooth
>>mouse and my touchpad, but clicking has no effect. On the keyboard,
>>not even numlock has any effect.



> http://lists.freedesktop.org/archives/xorg/2009-June/046247.html
Greg Martyn (cc'd), Subject: Mouse doesn't work until I logout. Affects
all DM's:

>> First, when I first start my computer up and log in, the mouse acts
>> erratically. The cursor moves around like normal, but when I click
>> it's as if the click event is happening somewhere else on the screen.
>> For example, I may have the cursor positioned over a button but when
>> I click, the button doesn't get clicked. Occasionally it will
>> trigger a click on something completely unrelated.

if my thinkpad is undocked and i am using my thinkpads trackpoint i
see this too. 
but i found, that touching my touchpad once fixes this. 
after that, the trackpoint works smothly. (maybe the same bug, maybe
not. i will try to reproduce and file a bug report with the necessary
info, but since i have to undock for this, this has to be somewhen
else )

>> Second, a problem that just started 4 days ago: I am unable to click
>> the menubar in firefox (and unable to Alt+F to get the file menu)
>> even
>> in safe mode. Also, right clicking in the web page doesn't work. 

this one seems to be another problem. 

>>Also
>> wherever I click in the Chromium Inspect Element window, it is
>> treated as if I were holding Alt -- it wants to move the window.

and another one... 


> https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/362359

>>What happens: after some time of usage, you get "stuck" in a window.
>>Idem est, you can not select another window. You can still click,
>>select and drag in the window that has the focus, but clicking on
>>other
>>windows, or on the panel, just doesn't work.

this one seems to be xinerama and/or synaptics related (to judge from
the discussion there)

> https://bugs.launchpad.net/ubuntu/+bug/361983/
>>At every moment, my mouse lose the focus and I can't select anything.
>>It's like the top window is no more recognized; sometimes using the
>>mouse right button on an application window, I get the contextual menu
>>for desktop.

seems to be similar to the ubuntu 362359 one... 

> https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-173/+bug/229123
>>The bug occurs in all X applications Gnome or KDE, it doesn't matter.
>>Sometimes for instance when I use Firefox I am unable to click on a
>>hyperlink, or alt+tab to another window. alt+f or alt+f1 still works
>>and enables the menu. opening up a menu temporarily fixes the focus
>>problems. as do right-clicking some times. Whenever I am unable to
>>click buttons or other widgets in an application, it seems I am able
>>to
>>use the tab button to move the focus to the widget I am trying to
>>access. These problems occurs in hardy.

another problem, this one seems to be not so severe...

> https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/364489

similar to ubuntu 362359 (above)?


> http://ubuntuforums.org/archive/index.php/t-698789.html
similar to ubuntu 362359 (above)?


> http://www.freebsd.org/cgi/query-pr.cgi?pr=usb/76732

>>When using a USB KVM switch, after switching back and forth from
>>another
>>machine a few times, mouse behaviour functions erroneously in Xorg
>>(tested with both fluxbox and gnome 2.8). The mouse seems to focus on
>>the previous location instead of the current position. For example, if
>>having last used the mouse in a window, even if you switch to another
>>window, the mouse will behave as if it was still positioned over the
>>previous window (right click results in menu for previous window,
>>etc.).

> 
> Note the last report, which dates back to 2005-01-27. I find this
> surprizing because this issue appeared for me only half a year ago.

it seems to me, that these are all different problems. (the ubuntu one
reported several times)

> 
> I want to get this issue fixed, but I'm not familiar with Xorg
> internals or debugging. I'll look up some docs in my interest. If I
> understand, very few of you have the ability to (reliably) reproduce
> the issue. So if anyone wants me test something, I'll gladly follow
> instructions. Meanwhile I'm rebuilding Xorg in debug mode in case I'll
> need to do some GDBing.

my only question would be: does hitting a keyboard key, solve your
issue? but that would be too easy, wouldn't it? i catched me several
times now composing this message and subconsciously working around my
bug. 
:)


Sincerely,
Florian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
Url : http://lists.x.org/archives/xorg-devel/attachments/20090829/ec566e02/attachment.pgp 


More information about the xorg-devel mailing list