Репозиторий ALT Linux backports/2.4
Последнее обновление: 9 июля 2008 | Пакетов: 497 | Посещений: 1493728
 поиск   регистрация   авторизация 
 
Группа :: Графические оболочки/KDE
Пакет: kdelibs

 Главная   Изменения   Спек   Патчи   Загрузить   Bugs and FR 

Патч: kdelibs-3.1.3-fix-kmessagebox-always-on-top.patch


--- kdelibs-3.1.3/kdeui/kmessagebox.cpp--	2003-09-07 16:57:48.000000000 -0400
+++ kdelibs-3.1.3/kdeui/kmessagebox.cpp	2003-09-07 16:58:30.000000000 -0400
@@ -44,6 +44,7 @@
 #include <kactivelabel.h>
 #include <kiconloader.h>
 #include <kglobalsettings.h>
+#include <kwin.h>
 
 #include <X11/Xlib.h>
 
@@ -280,7 +281,7 @@
     // during exec() if the parent of the dialog gets deleted.
     // In that case the guarded ptr will reset to 0.
     QGuardedPtr<KDialogBase> guardedDialog = dialog;
-
+	KWin::setState( dialog->winId(), NET::StaysOnTop );
     int result = guardedDialog->exec();
     if (checkbox && checkboxReturn)
        *checkboxReturn = checkbox->isChecked();
--- kdelibs-3.1.3/kio/kio/passdlg.cpp--	2003-09-07 17:00:19.000000000 -0400
+++ kdelibs-3.1.3/kio/kio/passdlg.cpp	2003-09-07 17:01:55.000000000 -0400
@@ -32,7 +32,7 @@
 #include <kbuttonbox.h>
 #include <kstandarddirs.h>
 #include <kseparator.h>
-
+#include <kwin.h>
 #include "passdlg.h"
 
 using namespace KIO;
@@ -301,6 +301,7 @@ int PasswordDialog::getNameAndPassword( 
     if ( readOnly )
         dlg->setUserReadOnly( readOnly );
 
+	KWin::setState( dlg->winId(), NET::StaysOnTop );
     int ret = dlg->exec();
     if ( ret == Accepted )
     {
 
design & coding: Vladimir Lettiev aka crux © 2004-2005