OSDN Git Service

do not send move and resize events to the widget from qFadeEffect()
authorIvailo Monev <xakepa10@gmail.com>
Tue, 22 Nov 2022 18:37:06 +0000 (20:37 +0200)
committerIvailo Monev <xakepa10@gmail.com>
Tue, 22 Nov 2022 18:37:06 +0000 (20:37 +0200)
the position and size of the widget matter not to the effect

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
src/gui/widgets/qeffects.cpp

index 74d0c4e..cafdbbc 100644 (file)
@@ -122,10 +122,6 @@ void qFadeEffect(QWidget* w)
         return;
     }
 
-    QApplication::sendPostedEvents(w, QEvent::Move);
-    QApplication::sendPostedEvents(w, QEvent::Resize);
-
-    // those can be popups - they would steal the focus, but are disabled
     q_opacity = new QOpacityEffect(w);
 }