summaryrefslogtreecommitdiff
path: root/x11/kdebase4-runtime/files/patch-kdesktop-lockeng.cc
blob: 9841e698ec06fd92e64fe3fad2e5319a86c0cd3b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
--- kdesktop/lockeng.cc.orig	Fri Sep 26 11:28:03 2003
+++ kdesktop/lockeng.cc	Fri Sep 26 11:31:15 2003
@@ -277,6 +277,9 @@
 	    {
 	    if (!event->xkey.send_event && mXAutoLock && mState == Waiting)
     		mXAutoLock->keyPressed();
+		// don't further 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;
 	    }