summaryrefslogtreecommitdiffstats
path: root/mandriva/2010.2/kdebase/kdebase-3.5.10-fix-vibrate-dialog.patch
diff options
context:
space:
mode:
authorTim Williams <tmw@autotrain.org>2011-10-14 13:51:18 +0100
committerTim Williams <tmw@autotrain.org>2011-10-14 13:51:18 +0100
commitec2515f058c60d2478a549f58376db628ba556b9 (patch)
treeaefbde1b807005611b397e01ebc5782c7d27ff91 /mandriva/2010.2/kdebase/kdebase-3.5.10-fix-vibrate-dialog.patch
parentbba295da1161579c6fe734680c827e50a3585131 (diff)
downloadtde-packaging-ec2515f058c60d2478a549f58376db628ba556b9.tar.gz
tde-packaging-ec2515f058c60d2478a549f58376db628ba556b9.zip
Initial commit of the Mandriva patches and spec files.
This includes the main dependencies and core packages, but very little else.
Diffstat (limited to 'mandriva/2010.2/kdebase/kdebase-3.5.10-fix-vibrate-dialog.patch')
-rw-r--r--mandriva/2010.2/kdebase/kdebase-3.5.10-fix-vibrate-dialog.patch86
1 files changed, 86 insertions, 0 deletions
diff --git a/mandriva/2010.2/kdebase/kdebase-3.5.10-fix-vibrate-dialog.patch b/mandriva/2010.2/kdebase/kdebase-3.5.10-fix-vibrate-dialog.patch
new file mode 100644
index 000000000..a9b3a4fc5
--- /dev/null
+++ b/mandriva/2010.2/kdebase/kdebase-3.5.10-fix-vibrate-dialog.patch
@@ -0,0 +1,86 @@
+--- kdesktop/lock/lockdlg.cc.fix_vibrate_dialog 2007-05-14 09:55:44.000000000 +0200
++++ kdesktop/lock/lockdlg.cc 2009-01-04 06:20:33.000000000 +0100
+@@ -53,6 +53,7 @@
+ #include <X11/Xutil.h>
+ #include <X11/keysym.h>
+ #include <fixx11h.h>
++#include <kapplication.h>
+
+ #ifndef AF_LOCAL
+ # define AF_LOCAL AF_UNIX
+@@ -202,6 +203,38 @@
+ }
+ }
+
++void PasswordDlg::movedialog( int _move )
++{
++ waitMoveDialog = true;
++ this->move(pos().x()+_move, pos().y());
++ TQTimer::singleShot( 50, this, SLOT(moveTimerDone()) );
++ while (waitMoveDialog)
++ kapp->processEvents();
++}
++
++void PasswordDlg::moveTimerDone()
++{
++ waitMoveDialog = false;
++}
++
++void PasswordDlg::badPasswordLogin()
++{
++ if ( mUnlockingFailed )
++ {
++ for ( int i = 0 ; i<2 ; i++)
++ {
++ movedialog( 10 );
++ movedialog( -20 );
++ movedialog( 20 );
++ movedialog( -20 );
++ movedialog( 20 );
++ movedialog( -10 );
++ }
++ }
++}
++
++
++
+ //---------------------------------------------------------------------------
+ //
+ // Handle timer events.
+@@ -332,6 +365,7 @@
+ ok->setEnabled(false);
+ cancel->setEnabled(false);
+ mNewSessButton->setEnabled( false );
++ badPasswordLogin();
+ return;
+ case AuthAbort:
+ return;
+--- kdesktop/lock/lockdlg.h.fix_vibrate_dialog 2005-09-10 10:25:41.000000000 +0200
++++ kdesktop/lock/lockdlg.h 2009-01-04 06:20:33.000000000 +0100
+@@ -55,7 +55,7 @@
+ void slotOK();
+ void layoutClicked();
+ void slotActivity();
+-
++ void moveTimerDone();
+ private:
+ void setLayoutText( const TQString &txt );
+ void capsLocked();
+@@ -71,6 +71,9 @@
+ void handleVerify();
+ void reapVerify();
+ void cantCheck();
++ void movedialog( int _move );
++ void badPasswordLogin();
++
+ GreeterPluginHandle *mPlugin;
+ KGreeterPlugin *greet;
+ TQFrame *frame;
+@@ -86,6 +89,7 @@
+ TQStringList::iterator currLayout;
+ int sPid, sFd;
+ TQListView *lv;
++ bool waitMoveDialog;
+ };
+
+ #endif