1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-02 06:03:50 +00:00
freebsd-ports/x11/kdebase3/files/patch-kdesktop-lockeng.cc
Tilman Keskinoz fe5a380496 Add a patch that should fix the "A window and A desktop icon sometimes have
keyboard focus at the same time".
No PORTREVISION bump, since only very few people noticed this.

Reported by:	arved, dwhite, Andy Fawcett
Obtained from:	bugs.kde.org
2003-11-20 12:29:57 +00:00

13 lines
455 B
C++

--- 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;
}