diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-01-30 12:06:23 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-01-30 12:06:23 +0900 |
commit | 40be1ebef7a688235d4730561908a02f10505385 (patch) | |
tree | ab182bf59496abaee2ddbf03d3e910bd37ae57e8 /mandriva/2010.2/applications/krandr/krandr-0.5.2.1-grab_server_avoiding_crashes.patch | |
parent | c169e89296c2d885faa5cdeba21dc35b10b2f583 (diff) | |
download | tde-packaging-40be1ebef7a688235d4730561908a02f10505385.tar.gz tde-packaging-40be1ebef7a688235d4730561908a02f10505385.zip |
Removed obsolete Mandriva 2010 packaging files.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'mandriva/2010.2/applications/krandr/krandr-0.5.2.1-grab_server_avoiding_crashes.patch')
-rw-r--r-- | mandriva/2010.2/applications/krandr/krandr-0.5.2.1-grab_server_avoiding_crashes.patch | 74 |
1 files changed, 0 insertions, 74 deletions
diff --git a/mandriva/2010.2/applications/krandr/krandr-0.5.2.1-grab_server_avoiding_crashes.patch b/mandriva/2010.2/applications/krandr/krandr-0.5.2.1-grab_server_avoiding_crashes.patch deleted file mode 100644 index 57faa1cf6..000000000 --- a/mandriva/2010.2/applications/krandr/krandr-0.5.2.1-grab_server_avoiding_crashes.patch +++ /dev/null @@ -1,74 +0,0 @@ -diff -p -up krandr-0.5.2.1/randr/randrcrtc.cpp.orig krandr-0.5.2.1/randr/randrcrtc.cpp ---- krandr-0.5.2.1/randr/randrcrtc.cpp.orig 2008-03-31 15:52:59.000000000 -0300 -+++ krandr-0.5.2.1/randr/randrcrtc.cpp 2008-03-31 15:56:11.000000000 -0300 -@@ -199,6 +199,10 @@ bool RandRCrtc::applyProposed() - for (int i = 0; i < m_connectedOutputs.count(); ++i) - kdDebug() << " - " << m_screen->output(m_connectedOutputs[i])->name() << endl; - #endif -+ -+ // Grab server while messing around -+ XGrabServer(qt_xdisplay()); -+ - RandRMode mode; - if (m_proposedRect.size() == m_currentRect.size() && m_proposedRate == m_currentRate) - { -@@ -242,7 +246,10 @@ bool RandRCrtc::applyProposed() - if (!m_connectedOutputs.count()) - mode = RandRMode(); - else if (!mode.isValid()) -+ { -+ XUngrabServer(qt_xdisplay()); - return false; -+ } - - RROutput *outputs = new RROutput[m_connectedOutputs.count()]; - int connectedCount = m_connectedOutputs.count(); -@@ -259,7 +266,10 @@ bool RandRCrtc::applyProposed() - { - QRect r = QRect(0,0,0,0).unite(m_proposedRect); - if (r.width() > m_screen->maxSize().width() || r.height() > m_screen->maxSize().height()) -+ { -+ XUngrabServer(qt_xdisplay()); - return false; -+ } - - // if the desired mode is bigger than the current screen size, first change the - // screen size, and then the crtc size -@@ -267,7 +277,10 @@ bool RandRCrtc::applyProposed() - { - // try to adjust the screen size - if (!adjustScreenSize(r, true)) -+ { -+ XUngrabServer(qt_xdisplay()); - return false; -+ } - } - - } -@@ -280,12 +293,18 @@ bool RandRCrtc::applyProposed() - // check if the rotated rect is smaller than the max screen size - r = m_screen->rect().unite(r); - if (r.width() > m_screen->maxSize().width() || r.height() > m_screen->maxSize().height()) -+ { -+ XUngrabServer(qt_xdisplay()); - return false; -+ } - - // adjust the screen size - r = r.unite(m_currentRect); - if (!adjustScreenSize(r,true)) -+ { -+ XUngrabServer(qt_xdisplay()); - return false; -+ } - } - } - } -@@ -311,6 +330,7 @@ bool RandRCrtc::applyProposed() - } - - m_screen->adjustSize(); -+ XUngrabServer(qt_xdisplay()); - return ret; - } - |