fix an incorrect condition in ImageViewController::eventFilter()

Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
pull/31/head
Alexander Golubev 3 months ago
parent 430301a436
commit a8bf4dbf8a

@ -418,7 +418,7 @@ void ImageViewController::updateFromSettings() {
*/ */
bool ImageViewController::eventFilter(TQObject* object, TQEvent* event) { bool ImageViewController::eventFilter(TQObject* object, TQEvent* event) {
if (!d->mFullScreen) return false; if (!d->mFullScreen) return false;
if (!event->type()==TQEvent::MouseMove) return false; if (event->type()!=TQEvent::MouseMove) return false;
// Check we must filter this object. This is an application filter, so we // Check we must filter this object. This is an application filter, so we
// have to check we are not dealing with another object. // have to check we are not dealing with another object.
@ -434,16 +434,10 @@ bool ImageViewController::eventFilter(TQObject* object, TQEvent* event) {
d->updateFullScreenBarPosition(); d->updateFullScreenBarPosition();
if (event->type()==TQEvent::MouseMove) { d->mCursorHidden=false;
d->mCursorHidden=false; d->restartAutoHideTimer();
d->restartAutoHideTimer();
}
if (d->mCursorHidden) { TQApplication::restoreOverrideCursor();
TQApplication::setOverrideCursor(blankCursor,true);
} else {
TQApplication::restoreOverrideCursor();
}
return false; return false;
} }

Loading…
Cancel
Save