diff options
author | Tim Williams <tmw@autotrain.org> | 2011-10-17 18:47:27 +0100 |
---|---|---|
committer | Tim Williams <tmw@autotrain.org> | 2011-10-17 18:47:27 +0100 |
commit | 76ef832ce5348d12a871223d4c034c7daeaddb82 (patch) | |
tree | 7024a1f39a6114daa8c5ed24bb31a8687c832b9a /mandriva/2010.2/applications/krandr/krandr-0.5.2.1-flush_after_ungrab.patch | |
parent | ec2515f058c60d2478a549f58376db628ba556b9 (diff) | |
download | tde-packaging-76ef832ce5348d12a871223d4c034c7daeaddb82.tar.gz tde-packaging-76ef832ce5348d12a871223d4c034c7daeaddb82.zip |
Adding the remaining Mandriva patches and spec files
Diffstat (limited to 'mandriva/2010.2/applications/krandr/krandr-0.5.2.1-flush_after_ungrab.patch')
-rw-r--r-- | mandriva/2010.2/applications/krandr/krandr-0.5.2.1-flush_after_ungrab.patch | 43 |
1 files changed, 43 insertions, 0 deletions
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; + } + |