1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

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
This commit is contained in:
Tilman Keskinoz 2003-11-20 12:29:57 +00:00
parent af0934759d
commit fe5a380496
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=94460
7 changed files with 84 additions and 0 deletions

View File

@ -0,0 +1,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;
}

View File

@ -0,0 +1,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;
}

View File

@ -0,0 +1,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;
}

View File

@ -0,0 +1,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;
}

View File

@ -0,0 +1,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;
}

View File

@ -0,0 +1,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;
}

View File

@ -0,0 +1,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;
}