Bug 189416 - somethig steals mouse focus
Summary: somethig steals mouse focus
Status: RESOLVED FIXED
Alias: None
Product: kde
Classification: I don't know
Component: general (show other bugs)
Version: 4.2.2
Platform: unspecified Unspecified
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-11 23:16 UTC by Piotr Budny
Modified: 2020-09-28 22:51 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Budny 2009-04-11 23:16:01 UTC
Version:           4.2.2 (using KDE 4.2.2)
Installed from:    Unlisted Binary Package

When working with KDE4.2.2 sometimes after login or after some action (after blank screensaver, opening dolphin, kmail, firefox, ..., and switching apps) something steals mouse focus and disables left mouse button click.

The only way to repair that problem is to log out. Killing applications does not work (see attached ps auxw)
Even disabled panels, no plasmoids. Very hard to reproduce.
Restarting with kwin --replace didn't the job (actually, it worked one for me). Disabling desktop effects, restarting plasma - does not helps.
Tried on clean profile too.

Running xwininfo says that it can't grab mouse focus. Sometimes it starts, but I'm unable to left-click (I can right click, and it shows me info about window). 

I'm using PLD-Linux.org, i686, nvidia binary display driver, xorg-xserver-server-1.6.0-7.i686


USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.0   2252  1256 ?        S    19:54   0:00 initng [runlevel/default]
root         2  0.0  0.0      0     0 ?        S<   19:54   0:00 [kthreadd]
root         3  0.0  0.0      0     0 ?        S<   19:54   0:00 [migration/0]
root         4  0.0  0.0      0     0 ?        S<   19:54   0:00 [ksoftirqd/0]
root         5  0.0  0.0      0     0 ?        S<   19:54   0:00 [watchdog/0]
root         6  0.0  0.0      0     0 ?        S<   19:54   0:00 [migration/1]
root         7  0.0  0.0      0     0 ?        S<   19:54   0:00 [ksoftirqd/1]
root         8  0.0  0.0      0     0 ?        S<   19:54   0:00 [watchdog/1]
root         9  0.0  0.0      0     0 ?        S<   19:54   0:00 [cpuset]
root        10  0.0  0.0      0     0 ?        S<   19:54   0:00 [events/0]
root        11  0.0  0.0      0     0 ?        S<   19:54   0:00 [events/1]
root        12  0.0  0.0      0     0 ?        S<   19:54   0:00 [work_on_cpu/0]
root        13  0.0  0.0      0     0 ?        S<   19:54   0:00 [work_on_cpu/1]
root        14  0.0  0.0      0     0 ?        S<   19:54   0:00 [khelper]
root        17  0.0  0.0      0     0 ?        S<   19:54   0:00 [netns]
root        71  0.0  0.0      0     0 ?        S<   19:54   0:00 [kintegrityd/0]
root        72  0.0  0.0      0     0 ?        S<   19:54   0:00 [kintegrityd/1]
root        74  0.0  0.0      0     0 ?        S<   19:54   0:00 [kblockd/0]
root        75  0.0  0.0      0     0 ?        S<   19:54   0:00 [kblockd/1]
root        77  0.1  0.0      0     0 ?        S<   19:54   0:19 [kacpid]
root        78  0.0  0.0      0     0 ?        S<   19:54   0:00 [kacpi_notify]
root       162  0.0  0.0      0     0 ?        S<   19:54   0:00 [kseriod]
root       214  0.0  0.0      0     0 ?        S    19:54   0:00 [pdflush]
root       215  0.0  0.0      0     0 ?        S    19:54   0:01 [pdflush]
root       216  0.0  0.0      0     0 ?        S<   19:54   0:00 [kswapd0]
root       262  0.0  0.0      0     0 ?        S<   19:54   0:00 [aio/0]
root       263  0.0  0.0      0     0 ?        S<   19:54   0:00 [aio/1]
root       981  0.0  0.0      0     0 ?        S<   19:54   0:00 [xfs_mru_cache]
root       982  0.0  0.0      0     0 ?        S<   19:54   0:00 [xfslogd/0]
root       983  0.0  0.0      0     0 ?        S<   19:54   0:00 [xfslogd/1]
root       984  0.0  0.0      0     0 ?        S<   19:54   0:00 [xfsdatad/0]
root       985  0.0  0.0      0     0 ?        S<   19:54   0:00 [xfsdatad/1]
root      1012  0.0  0.0      0     0 ?        S<   19:54   0:00 [ata/0]
root      1013  0.0  0.0      0     0 ?        S<   19:54   0:00 [ata/1]
root      1014  0.0  0.0      0     0 ?        S<   19:54   0:00 [ata_aux]
root      1024  0.0  0.0      0     0 ?        S<   19:54   0:04 [scsi_eh_0]
root      1027  0.0  0.0      0     0 ?        S<   19:54   0:00 [scsi_eh_1]
root      1035  0.0  0.0      0     0 ?        S<   19:54   0:00 [scsi_eh_2]
root      1038  0.0  0.0      0     0 ?        S<   19:54   0:00 [scsi_eh_3]
root      1063  0.0  0.0      0     0 ?        S<   19:54   0:00 [xfsbufd]
root      1064  0.0  0.0      0     0 ?        S<   19:54   0:00 [xfsaild]
root      1065  0.0  0.0      0     0 ?        S<   19:54   0:00 [xfssyncd]
root      1126  0.0  0.0   1904   640 ?        S<s  19:54   0:00 udevd --daemon
root      2183  0.0  0.0      0     0 ?        S<   19:54   0:00 [kpsmoused]
root      2252  0.0  0.0      0     0 ?        S<   19:54   0:00 [ksuspend_usbd]
root      2257  0.0  0.0      0     0 ?        S<   19:54   0:00 [khubd]
root      2292  0.0  0.0      0     0 ?        S<   19:54   0:00 [kmmcd]
root      2308  0.0  0.0      0     0 ?        S<   19:54   0:00 [khpsbpkt]
root      2380  0.0  0.0      0     0 ?        S<   19:54   0:00 [knodemgrd_0]
root      2442  0.0  0.0      0     0 ?        S<   19:54   0:00 [iwlagn/0]
root      2443  0.0  0.0      0     0 ?        S<   19:54   0:00 [iwlagn/1]
root      2444  0.0  0.0      0     0 ?        S<   19:54   0:01 [phy0]
root      2450  0.0  0.0      0     0 ?        S<   19:54   0:00 [hd-audio0]
root      2555  0.0  0.0      0     0 ?        S<   19:54   0:00 [btaddconn]
root      2557  0.0  0.0      0     0 ?        S<   19:54   0:00 [btdelconn]
root      2643  0.0  0.0   1912   448 ?        S<s  19:54   0:00 /usr/bin/hidd --connect 00:11:11:11:14:10 --server
root      2658  0.0  0.0      0     0 ?        S<   19:54   0:00 [krfcommd]
root      2690  0.0  0.0      0     0 ?        S<   19:54   0:00 [kauditd]
root      2786  0.0  0.0      0     0 ?        S<   19:54   0:00 [kondemand/0]
root      2787  0.0  0.0      0     0 ?        S<   19:54   0:00 [kondemand/1]
root      2841  0.0  0.0   4960   924 ?        Ss   19:54   0:00 /sbin/mount.ntfs-3g /dev/sda2 /media/yy -o rw
root      2842  0.0  0.0      0     0 ?        S<   19:54   0:00 [xfsbufd]
root      2843  0.0  0.0      0     0 ?        S<   19:54   0:00 [xfsaild]
root      2844  0.0  0.0      0     0 ?        S<   19:54   0:00 [xfssyncd]
root      2848  0.0  0.0   4960   924 ?        Ss   19:55   0:00 /sbin/mount.ntfs-3g /dev/sda6 /media/xx -o rw
root      2852  0.0  0.0   4960   924 ?        Ss   19:55   0:00 /sbin/mount.ntfs-3g /dev/sda7 /media/yy -o rw
root      2953  0.0  0.0   4904   552 tty3     Ss+  19:55   0:00 /sbin/mingetty tty3
root      2954  0.0  0.0   4904   556 tty4     Ss+  19:55   0:00 /sbin/mingetty tty4
root      2964  0.0  0.0   2976  1700 ?        Ss   19:55   0:00 login -- vip     
root      3119  0.0  0.0   2956   868 ?        Ss   19:55   0:00 /usr/sbin/syslog-ng
root      3266  0.0  0.0   3744   808 ?        Ss   19:55   0:00 /usr/sbin/wpa_supplicant -D wext -c /etc/wpa_supplicant.conf -i wlan0 -P /var/run/wpa_supplicant-wlan0.pid -B
root      3307  0.0  0.0   1844   328 ?        Ss   19:55   0:00 /sbin/dhcpcd -h dzibutti wlan0
root      3372  0.0  0.0   4908   900 ?        Ss   19:55   0:00 /usr/sbin/sshd
122       3376  0.0  0.0   2704  1180 ?        Ss   19:55   0:00 /usr/bin/dbus-daemon --system
126       3388  0.0  0.0   5460  3628 ?        Ss   19:55   0:04 /usr/sbin/hald --use-syslog
root      3391  0.0  0.0   9092  2640 ?        Ssl  19:55   0:00 /usr/sbin/console-kit-daemon
root      3392  0.0  0.0   3112  1044 ?        S    19:55   0:00 hald-runner
root      3457  0.0  0.0   3180   988 ?        S    19:55   0:00 hald-addon-input: Listening on /dev/input/event4 /dev/input/event5 /dev/input/event2 /dev/input/event3 /dev/input/event6 /dev/input/event1
root      3465  0.0  0.0   3192  1120 ?        S    19:55   0:00 /usr/lib/hal/hald-addon-cpufreq
126       3466  0.0  0.0   1988   852 ?        S    19:55   0:00 hald-addon-acpi: listening on acpi kernel interface /proc/acpi/event
root      3475  0.0  0.0   3184  1000 ?        S    19:55   0:04 hald-addon-storage: polling /dev/sr0 (every 2 sec)
root      3523  0.0  0.0   8008  2148 ?        SNs  19:55   0:00 /usr/sbin/openvpn --daemon --writepid /var/run/openvpn/xxx-server.pid --config /etc/openvpn/ivy-server.conf --cd /etc/openvpn
root      3545  0.0  0.0   3292  1696 ?        Ss   19:55   0:01 /usr/sbin/bluetoothd
root      3566  0.0  0.0   7648  1272 ?        SNs  19:55   0:00 /usr/sbin/openvpn --daemon --writepid /var/run/openvpn/yyd-client.pid --config /etc/openvpn/edd-client.conf --cd /etc/openvpn
root      3588  0.0  0.0      0     0 ?        S<   19:55   0:00 [cifsoplockd]
root      3589  0.0  0.0      0     0 ?        S<   19:55   0:00 [cifsdnotifyd]
root      3596  0.0  0.0      0     0 ?        S<   19:55   0:00 [cifsd]
root      3597  0.0  0.0   3420   628 ?        Ss   19:55   0:00 /usr/bin/kdm
root      3615  5.5  1.8 614368 76736 tty5     Ss+  19:55   9:28 /usr/bin/X -nolisten tcp :0 vt5 -auth /var/run/xauth/A:0-jHGYi2
root      3635  0.0  0.0   4264  1936 ?        S    19:55   0:00 -:0         
vip       3655  0.0  0.0   1836   612 ?        Ss   19:55   0:00 /bin/sh /usr/bin/startkde
vip       3682  0.0  0.0   2972   696 ?        S    19:55   0:00 dbus-launch --sh-syntax --exit-with-session
vip       3683  0.0  0.0   2704  1144 ?        Ss   19:55   0:01 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
vip       3722  0.0  0.1  34144  5220 ?        Ss   19:55   0:00 kdeinit4: kdeinit4 Running...
vip       3723  0.0  0.2  37396 10188 ?        S    19:55   0:00 klauncher
vip       3725  0.0  0.5  86552 21984 ?        S    19:55   0:01 kded4
vip       3728  0.0  0.0   2668  1032 ?        S    19:55   0:00 /usr/lib/gam_server
vip       3746  0.0  0.0   1664   360 ?        S    19:55   0:00 kwrapper4 ksmserver
vip       3747  0.0  0.7  99292 29852 ?        Sl   19:55   0:00 ksmserver
vip       3757  0.3  1.2 309352 50916 ?        Sl   19:55   0:30 /usr/bin/plasma
root      5268  0.0  0.0      0     0 ?        S<   21:27   0:01 [khidpd_045e0700]
vip       8499  1.6  0.9  89300 39380 ?        S    22:34   0:10 kwin --crashes 1
vip       8513  0.1  0.0   6288  2808 tty2     Ss   22:36   0:00 -zsh
vip       9284  0.0  0.0   4596   936 tty2     R+   22:44   0:00 ps auxwwwwwwwwwww
Comment 1 Emanuele Tamponi 2009-05-03 19:29:27 UTC
I can confirm the problem.

This seems to be caused by xorg anyway: I found some bug reports for xorg in ubuntu launchpad. They committed a patch to xorg-server that corrected the problem for a lot of people... here, the problem remains.

So it's connected with xorg, or with nvidia drivers.

E
Comment 2 Piotr Budny 2009-05-05 10:19:36 UTC
Emanuele, could You post a link to that launchpad page with xorg patch?
Comment 3 Emanuele Tamponi 2009-05-05 23:27:08 UTC
I cannot find it at the moment, sorry Piotr!

Anyway the patch is already commited in xorg server 1.6...

The problem seems related to Xinerama: here, I tried to disable both twinview and xinerama, and the problem is gone.

Do you use Xinerama/Twinview too?
Comment 4 Piotr Budny 2009-05-06 10:43:10 UTC
No xinerama/twinview, and actually using xorg 1.6.1...
Thanks anyway.
Comment 5 Emanuele Tamponi 2009-05-06 23:14:42 UTC
Problem occoured again, even without Xinerama/TwinView.

It's really weird... If someone without nvidia drivers has the same problem, please let us know.

If not, it's probably a problem with the nvidia binary...

I'll try with the beta drivers...
Comment 6 Iago López Galeiras 2009-11-05 00:35:11 UTC
I have this very bug since last week or so. I think it's not kde related because it started to happen suddenly when using KDE 4.3.2 and i used it for a while. Moreover I think I upgraded some X packages at that time.

I don't have twinview or xinerama but I do have nvidia binary drivers. Here's my system:

Arch Linux
xorg-server 1.7.1
KDE 4.3.3
nvidia 190.42
Comment 7 Dario Andres 2009-11-06 14:25:30 UTC
@Iago López Galeiras: I was also experiencing this bug with the last ArchLinux updates and KDE from trunk (4.4.x). I think I have managed to workaround the issue by disabling the mouse gestures. (check SystemSettings/Input Actions, disable the Gestures option, and restart KDE/PC)
I hope it can help you too.
Thanks
Comment 8 Iago López Galeiras 2009-11-07 01:06:54 UTC
I've been using metacity today to check if the bug is kwin's fault but it seems not because it happened again.

I will try disabling mouse gestures now, although I love it.

Thank you Dario Andres  :)
Comment 9 Iago López Galeiras 2009-11-10 16:42:26 UTC
I've been using kwin with composition activated and mouse gestures deactivated and the problem is gone.

Should't we pass the bug to khotkeys?
Comment 10 Mateusz Ślażyński 2009-12-25 23:15:08 UTC
The same here. Gestures from khotkeys do nasty things with mouse focus. 

KDE 4.4b2 (KDEmod on Arch), but I've seen the same bug one or two times using stable 4.3.
Comment 11 Andrew Crouthamel 2018-11-02 23:04:57 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 12 Andrew Crouthamel 2018-11-16 05:31:30 UTC
Dear Bug Submitter,

This is a reminder that this bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version?

Thank you for helping us make KDE software even better for everyone!
Comment 13 Nate Graham 2020-09-28 22:51:03 UTC
No response; assuming it was fixed since then.