From 76ef832ce5348d12a871223d4c034c7daeaddb82 Mon Sep 17 00:00:00 2001 From: Tim Williams Date: Mon, 17 Oct 2011 18:47:27 +0100 Subject: Adding the remaining Mandriva patches and spec files --- .../krandr/krandr-0.5.2.1-flush_after_ungrab.patch | 43 ++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 mandriva/2010.2/applications/krandr/krandr-0.5.2.1-flush_after_ungrab.patch (limited to 'mandriva/2010.2/applications/krandr/krandr-0.5.2.1-flush_after_ungrab.patch') diff --git a/mandriva/2010.2/applications/krandr/krandr-0.5.2.1-flush_after_ungrab.patch b/mandriva/2010.2/applications/krandr/krandr-0.5.2.1-flush_after_ungrab.patch new file mode 100644 index 000000000..feea4ce8e --- /dev/null +++ b/mandriva/2010.2/applications/krandr/krandr-0.5.2.1-flush_after_ungrab.patch @@ -0,0 +1,43 @@ +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-05-15 13:45:35.000000000 -0300 ++++ krandr-0.5.2.1/randr/randrcrtc.cpp 2008-05-15 13:44:02.000000000 -0300 +@@ -202,6 +202,7 @@ bool RandRCrtc::applyProposed() + + // Grab server while messing around + XGrabServer(qt_xdisplay()); ++ XFlush(qt_xdisplay()); + + RandRMode mode; + if (m_proposedRect.size() == m_currentRect.size() && m_proposedRate == m_currentRate) +@@ -248,6 +249,7 @@ bool RandRCrtc::applyProposed() + else if (!mode.isValid()) + { + XUngrabServer(qt_xdisplay()); ++ XFlush(qt_xdisplay()); + return false; + } + +@@ -268,6 +270,7 @@ bool RandRCrtc::applyProposed() + if (r.width() > m_screen->maxSize().width() || r.height() > m_screen->maxSize().height()) + { + XUngrabServer(qt_xdisplay()); ++ XFlush(qt_xdisplay()); + return false; + } + +@@ -279,6 +282,7 @@ bool RandRCrtc::applyProposed() + if (!adjustScreenSize(r, true)) + { + XUngrabServer(qt_xdisplay()); ++ XFlush(qt_xdisplay()); + return false; + } + } +@@ -331,6 +335,7 @@ bool RandRCrtc::applyProposed() + + m_screen->adjustSize(); + XUngrabServer(qt_xdisplay()); ++ XFlush(qt_xdisplay()); + return ret; + } + -- cgit v1.2.1