(*** This bug was imported into bugs.kde.org ***) Package: konqueror Version: 3.0.2 (using KDE 3.0.2 ) Severity: normal Installed from: Gentoo Packages Compiler: gcc 2.95.3 OS: Linux OS/Compiler notes: Not Specified Prerequisites: Preview sound files enabled Some sound files Steps to reproduce: 1. Start konqueror to Icon View mode. 2. Go to the directory contianing the audio files. 3. Open any other program so that you have another window. 4. Put this window overtop of the konqueror window so that it is covering half of the sound file's icon. 5. Move your mouse to hover overtop of the sound file. The preview should be heard. 6. Move the mouse to the other window from the icon without going outside of the icon. 7. The preview is still playing now that the mouse is no longer over the icon. Konqueror does not figure out that the mouse is gone until it goes back overtop of some part of the konqueror window. Note: This can also happen without the second window the music file can also be half scrolled off of the bottom of the konqueror window. (Submitted via bugs.kde.org)
There are lots of instances of this bug. it's not particular to previews.
*** This bug has been marked as a duplicate of 44354 ***
Maybe, but it isn't a duplicate of 44354.
CVS commit by bwalter: Check if another window covers the viewport so that we can really know if the pointer leaves the view. CCMAIL: 45673-done@bugs.kde.org M +9 -0 konq_iconviewwidget.cc 1.275 --- kdebase/libkonq/konq_iconviewwidget.cc #1.274:1.275 @@ -30,4 +30,5 @@ #include <qmovie.h> #include <qregexp.h> +#include <qcursor.h> #include <kapplication.h> @@ -1320,4 +1321,12 @@ void KonqIconViewWidget::setSortDirector void KonqIconViewWidget::contentsMouseMoveEvent( QMouseEvent *e ) { + if ( QApplication::widgetAt( QCursor::pos() ) != topLevelWidget() ) + { + if (d->pSoundPlayer) + d->pSoundPlayer->stop(); + d->pSoundItem = 0; + if (d->pSoundTimer && d->pSoundTimer->isActive()) + d->pSoundTimer->stop(); + } d->renameItem= false; QIconView::contentsMouseMoveEvent( e );