Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37762949
en ru br
ALT Linux repos
S:4.8.7-alt25
5.0: 4.5.2-alt1.M50.1
4.1: 4.4.3-alt1.M41.1
4.0: 4.3.4-alt5.M40.1
3.0: 4.0.1-alt1
+updates:4.0.1-alt2
+backports:4.2.3-alt7.1.M30

Group :: System/Libraries
RPM: qt4

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: 9104-qt-gui-fix_loss_mouse_button_release_event.patch
Download


diff -Naur qt-orig/src/gui/kernel/qapplication_x11.cpp qt/src/gui/kernel/qapplication_x11.cpp
--- qt-orig/src/gui/kernel/qapplication_x11.cpp	2010-04-05 07:46:27 +0400
+++ qt/src/gui/kernel/qapplication_x11.cpp	2010-05-10 10:39:39 +0400
@@ -4280,6 +4280,10 @@
             }
 #endif
             type = QEvent::MouseButtonRelease;
+	    // HACK: if recieved ButtonRelease event qt_button_down - can't be NULL, because
+	    // no ButtonRelease without ButtonPress event
+            if (!qt_button_down)
+                qt_button_down = this;
         }
     }
     mouseActWindow = effectiveWinId();                        // save some event params
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin