diff options
author | François Andriot <albator78@libertysurf.fr> | 2013-06-24 19:50:32 +0200 |
---|---|---|
committer | François Andriot <albator78@libertysurf.fr> | 2013-06-24 19:50:32 +0200 |
commit | b4359e8bf97799f83dc1ca62744db7cfcc81bc87 (patch) | |
tree | 3346872613490cc467c19e1645d0026c1221bce7 /redhat/tdebase/kdebase-3.5.13-randrtray_merge_x11_reconfig_requests.patch | |
parent | 4cc71d79c5718d59078d06c497a56d7c05b41576 (diff) | |
download | tde-packaging-b4359e8bf97799f83dc1ca62744db7cfcc81bc87.tar.gz tde-packaging-b4359e8bf97799f83dc1ca62744db7cfcc81bc87.zip |
RPM Packaging: rename directories
Diffstat (limited to 'redhat/tdebase/kdebase-3.5.13-randrtray_merge_x11_reconfig_requests.patch')
-rw-r--r-- | redhat/tdebase/kdebase-3.5.13-randrtray_merge_x11_reconfig_requests.patch | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/redhat/tdebase/kdebase-3.5.13-randrtray_merge_x11_reconfig_requests.patch b/redhat/tdebase/kdebase-3.5.13-randrtray_merge_x11_reconfig_requests.patch new file mode 100644 index 000000000..e17ae11b5 --- /dev/null +++ b/redhat/tdebase/kdebase-3.5.13-randrtray_merge_x11_reconfig_requests.patch @@ -0,0 +1,51 @@ +Index: krandrapp.cpp +=================================================================== +--- kcontrol/randr/krandrapp.cpp (revision 1261452) ++++ kcontrol/randr/krandrapp.cpp (working copy) +@@ -28,13 +28,20 @@ + KRandRApp::KRandRApp() + : m_tray(new KRandRSystemTray(0L, "RANDRTray")) + { ++ connect(&m_eventMergingTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(handleX11ConfigChangeEvent())); + m_tray->show(); + } + ++void KRandRApp::handleX11ConfigChangeEvent() ++{ ++ m_eventMergingTimer.stop(); ++ m_tray->configChanged(); ++} ++ + bool KRandRApp::x11EventFilter(XEvent* e) + { + if (e->type == m_tray->screenChangeNotifyEvent()) { +- m_tray->configChanged(); ++ m_eventMergingTimer.start(1000, TRUE); + } + return KApplication::x11EventFilter( e ); + } +Index: krandrapp.h +=================================================================== +--- kcontrol/randr/krandrapp.h (revision 1261452) ++++ kcontrol/randr/krandrapp.h (working copy) +@@ -19,6 +19,7 @@ + #ifndef KRANDRAPP_H + #define KRANDRAPP_H + ++#include <tqtimer.h> + #include <kuniqueapplication.h> + + class KRandRSystemTray; +@@ -32,8 +33,12 @@ + + virtual bool x11EventFilter(XEvent * e); + ++private slots: ++ void handleX11ConfigChangeEvent(); ++ + private: + KRandRSystemTray* m_tray; ++ TQTimer m_eventMergingTimer; + }; + + #endif |