fix an incorrect condition in ImageViewController::eventFilter()

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

@ -418,7 +418,7 @@ void ImageViewController::updateFromSettings() {
*/
bool ImageViewController::eventFilter(TQObject* object, TQEvent* event) {
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
// have to check we are not dealing with another object.
@ -434,16 +434,10 @@ bool ImageViewController::eventFilter(TQObject* object, TQEvent* event) {
d->updateFullScreenBarPosition();
if (event->type()==TQEvent::MouseMove) {
d->mCursorHidden=false;
d->restartAutoHideTimer();
}
d->mCursorHidden=false;
d->restartAutoHideTimer();
if (d->mCursorHidden) {
TQApplication::setOverrideCursor(blankCursor,true);
} else {
TQApplication::restoreOverrideCursor();
}
TQApplication::restoreOverrideCursor();
return false;
}

Loading…
Cancel
Save