Bug 64944

Summary: kdesktop steals the focus
Product: [Unmaintained] kdesktop Reporter: Tom Wesley <tawesley>
Component: generalAssignee: David Faure <faure>
Status: CLOSED FIXED    
Severity: normal CC: finex, g.persia
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Tom Wesley 2003-09-25 23:05:17 UTC
Version:           unknown (using KDE 3.1.4)
Installed from:    Gentoo
Compiler:          gcc version 3.3.1 20030904 (Gentoo Linux 3.3.1-r1, propolice)
OS:          Linux (i686) release 2.4.20-gentoo-r6

Whilst typing in another window the desktop sometimes seems to share the focus with the active window.  For example, typing a message in kopete seems to change the current desktop icon selection and hitting return to send the message launches the last selected icon.  This may be a kopete bug, feel free to reassign, but it seems to me that the desktop shares keyboard focus when it shouldnt.

Tom
Comment 1 Stephan Kulow 2003-09-26 08:59:12 UTC
That fix didn't make it into 3.1.4, tell the gentoo maintainer 
 
RCS file: /home/kde/kdebase/kdesktop/lockeng.cc,v 
retrieving revision 1.53.2.1 
retrieving revision 1.53.2.2 
diff -u -3 -p -r1.53.2.1 -r1.53.2.2 
--- lockeng.cc  29 Nov 2002 15:09:11 -0000      1.53.2.1 
+++ lockeng.cc  16 Sep 2003 13:57:40 -0000      1.53.2.2 
@@ -277,6 +277,9 @@ bool SaverEngine::x11Event(XEvent *event 
            { 
            if (!event->xkey.send_event && mXAutoLock && mState == Waiting) 
                mXAutoLock->keyPressed(); 
+            // don't futher process key events that were received only because XAutoLock wants 
them 
+            if (!event->xkey.send_event && mXAutoLock && !QWidget::find( event->xkey.window )) 
+                return true; 
            break; 
            } 
 
 
Comment 2 Justin Sheckler 2003-10-10 00:02:58 UTC
I'm also seeing this behavior with 3.1.4 Slackware build.
Comment 3 Tom Wesley 2003-10-10 08:56:24 UTC
The patch fixes the problem. 
Comment 4 Maksim Orlovich 2004-03-05 03:16:56 UTC
*** Bug 65531 has been marked as a duplicate of this bug. ***
Comment 5 FiNeX 2009-01-02 20:23:11 UTC
Bug closed. Kdesktop is no more mantained.