[SOLVED] VLC (3.0) steals focus when mouse cursor hovers over seekbar (Cinnamon only)

Questions about applications and software
Forum rules
Before you post please read how to get help
Post Reply
fromWinToLin
Level 2
Level 2
Posts: 77
Joined: Thu Nov 19, 2009 11:53 am

[SOLVED] VLC (3.0) steals focus when mouse cursor hovers over seekbar (Cinnamon only)

Post by fromWinToLin » Wed Jul 11, 2018 7:13 pm

UPDATE 1: This appears to be a bug in VLC 3.0's Qt interface. Refer to the newer posts in this thread, as well as the bug report here: https://trac.videolan.org/vlc/ticket/20825

UPDATE 2: This is specifically triggered by hovering over VLC's seekbar. Even if the interface is not maximized, it will steal focus if there is any media playing in VLC. See all41's comment below: viewtopic.php?f=47&t=273064#p1497784

UPDATE 3: Just confirmed that this only happens in the Cinnamon desktop. It does not happen with GNOME Shell or MATE.

UPDATE 4: This issue has been resolved, sinc the VLC package version 3.0.3 was just released on the official Ubuntu Bionic repositories (which Mint uses by default.)


After upgrading to Linux Mint 19, previously on 18.3, one of the major application version changes is from the VLC 2.x series to VLC 3.0. Outside of some minor issues, such as matching the GTK theme, the new VLC performs noticeably better.

There is one EXTREMELY (all caps!) frustrating issue: When I am currently viewing a video, VLC randomly steals focus, in somewhat aggressive way, from any other application I try to use. For example, if I have VLC playing a video and I am trying to use the file browser, my work is interrupted as VLC keeps stealing focus. I notice there is a quick "flicker" before it does it each time. Trying to go back to the file manager is difficult, since VLC aggressively steals focus, over and over.

This has never happened with VLC 2.x. I have tried reinstalling VLC and resetting its preferences. No difference. I have tried disabling certain options, such as "Auto raising the interface". No difference. It feels more like an unintentional bug than a design feature. It has caused many misclicks and mistakes if I try to use other programs while VLC is playing something in the background.

More detective work:

1) Happens randomly. There is no pattern. Sometimes it will be gracious and not steal focus for a while. Other times it's more aggressive.

2) Seems to occur more frequently if there is any previous or recent interaction with the VLC window, such as hovering the mouse over the video or recently moving the window.

3) VLC never steals focus if it has been manually minimized. (It does not "restore" itself.)

4) This never seems to occur if VLC is playing audio only; seems to have something to do with video.

5) This never occurs when watching videos with Xplayer (Media Player).

5) Not sure if this is a combination of Cinnamon and VLC, or if this issue persists on any desktop environment. (Only tested with Linux Mint 19, Cinnamon.)

Can others test this out on their Linux Mint 19, Cinnamon system? Simply open a lengthy video in VLC, click on the video, drag the window around. Then open the file manager and try to browse files and folders as the video (partially covered) plays in the background. Then click on the VLC window again, and click back to the file manager. Without clicking, hover your mouse cursor over VLC, and then hover it away. See if you notice the same issue occurring?
Last edited by fromWinToLin on Fri Aug 03, 2018 12:46 am, edited 5 times in total.

fromWinToLin
Level 2
Level 2
Posts: 77
Joined: Thu Nov 19, 2009 11:53 am

Re: New VLC (3.0) steals focus when watching video (anyone else affected?)

Post by fromWinToLin » Thu Jul 12, 2018 10:09 pm

I've also tried using different rendering options as well as disabling hardware decoding. No difference at all. Basically, if there is a video playing, this bug occurs. Can anyone else confirm if this happens on their computer?

rado84
Level 3
Level 3
Posts: 150
Joined: Sun Aug 19, 2012 9:31 am

Re: New VLC (3.0) steals focus when watching video (anyone else affected?)

Post by rado84 » Thu Jul 12, 2018 10:26 pm

I just tried what the OP said and nothing happened. All with the VLC's default settings because I don't use VLC for watching movies (I use SMPlayer).

Image

In these 25 minutes until the screenshot nothing particular happened - the folder remained on top of the video and the video was running smoothly.

fromWinToLin
Level 2
Level 2
Posts: 77
Joined: Thu Nov 19, 2009 11:53 am

Re: New VLC (3.0) steals focus when watching video (anyone else affected?)

Post by fromWinToLin » Fri Jul 13, 2018 10:38 am

I have an Intel HD4000 video card. By any chance, are you using Nvidia or AMD GPU?

fromWinToLin
Level 2
Level 2
Posts: 77
Joined: Thu Nov 19, 2009 11:53 am

Re: New VLC (3.0) steals focus when watching video (anyone else affected?)

Post by fromWinToLin » Tue Jul 17, 2018 1:11 pm

I also filed a modified bug report here:

https://trac.videolan.org/vlc/ticket/20825

It appears to be an issue with VLC 3.0's Qt interface; nothing to do with the video (or decoder).

I attached a screen capture demonstrating this bug. Keep in mind that I never clicked on the VLC interface nor video. Every time you see it steal focus is due to the bug.

I would attach the file here in this forum thread, yet it is telling me that 615 KB is too large?

fromWinToLin
Level 2
Level 2
Posts: 77
Joined: Thu Nov 19, 2009 11:53 am

Re: New VLC (3.0) steals focus when watching video (anyone else affected?)

Post by fromWinToLin » Tue Jul 17, 2018 1:13 pm

rado84 wrote:
Thu Jul 12, 2018 10:26 pm
In these 25 minutes until the screenshot nothing particular happened - the folder remained on top of the video and the video was running smoothly.
Could you please try this again, but instead have the VLC window maximized? Refer to my attached video capture here, on how to recreate the bug. I believe it occurs when VLC is maximized:

https://trac.videolan.org/vlc/ticket/20825

User avatar
all41
Level 13
Level 13
Posts: 4522
Joined: Tue Dec 31, 2013 9:12 am
Location: Computer, Car, Cage

Re: New VLC (3.0) steals focus when watching video (anyone else affected?)

Post by all41 » Tue Jul 17, 2018 1:59 pm

I can verify this using Cinnamon with VLC.
This does not happen with Mate.
Proud to be a supporter and monthly contributor to Mint.

fromWinToLin
Level 2
Level 2
Posts: 77
Joined: Thu Nov 19, 2009 11:53 am

Re: New VLC (3.0) steals focus when watching video (anyone else affected?)

Post by fromWinToLin » Tue Jul 17, 2018 5:03 pm

all41 wrote:
Tue Jul 17, 2018 1:59 pm
I can verify this using Cinnamon with VLC.
I knew I wasn't crazy! Looks like a cominbation of VLC 3.0 + Cinnamon is the culrpit.

I tested this again, but rather logging in via "Software Rendering Mode", and the problem still happens in the Cinnamon desktop.

User avatar
all41
Level 13
Level 13
Posts: 4522
Joined: Tue Dec 31, 2013 9:12 am
Location: Computer, Car, Cage

Re: New VLC (3.0) steals focus when watching video (anyone else affected?)

Post by all41 » Tue Jul 17, 2018 5:21 pm

It happens before the pointer leaves the taskbar completely.
VLC does not gain focus when moving the pointer along the bottom of the vlc panel to, the left side of screen and then going up.

Are you on the 0-24 kernel?

edit: It seems to steal focus only as the pointer just touches the vlc timeline slider.
Proud to be a supporter and monthly contributor to Mint.

fromWinToLin
Level 2
Level 2
Posts: 77
Joined: Thu Nov 19, 2009 11:53 am

Re: New VLC (3.0) steals focus when watching video (anyone else affected?)

Post by fromWinToLin » Tue Jul 17, 2018 9:25 pm

all41 wrote:
Tue Jul 17, 2018 5:21 pm
edit: It seems to steal focus only as the pointer just touches the vlc timeline slider.
You're right! It's 100% reproducible, regardless if the VLC interface is maximized or not. I'm going to mention this in an update to the bug report I made.

If VLC has no audio or video loaded, then the seekbar glitch will not steal focus. VLC must have an audio or video file loaded.

User avatar
all41
Level 13
Level 13
Posts: 4522
Joined: Tue Dec 31, 2013 9:12 am
Location: Computer, Car, Cage

Re: New VLC (3.0) steals focus when watching video (anyone else affected?)

Post by all41 » Tue Jul 17, 2018 9:38 pm

I also reverted the kernel back to the -20 but that did not affect this anomaly.
Proud to be a supporter and monthly contributor to Mint.

rado84
Level 3
Level 3
Posts: 150
Joined: Sun Aug 19, 2012 9:31 am

Re: New VLC (3.0) steals focus when watching video (anyone else affected?)

Post by rado84 » Thu Jul 19, 2018 2:06 pm

fromWinToLin wrote:
Tue Jul 17, 2018 1:13 pm
Could you please
DK, DC - I'm done with Mint in particular.

User avatar
Moem
Level 16
Level 16
Posts: 6235
Joined: Tue Nov 17, 2015 9:14 am
Location: The Netherlands
Contact:

Re: New VLC (3.0) steals focus when watching video (anyone else affected?)

Post by Moem » Thu Jul 19, 2018 2:20 pm

rado84 wrote:
Thu Jul 19, 2018 2:06 pm
DK, DC - I'm done with Mint in particular.
Okay, bye.
Image

If your issue is solved, kindly indicate that by editing the first post in the topic, and adding [SOLVED] to the title. Thanks!

fromWinToLin
Level 2
Level 2
Posts: 77
Joined: Thu Nov 19, 2009 11:53 am

Re: New VLC (3.0) steals focus when watching video (anyone else affected?)

Post by fromWinToLin » Fri Jul 20, 2018 1:38 pm

UPDATE: Just confirmed that this only happens in the Cinnamon desktop. It does not happen with GNOME Shell or MATE.

ding501
Level 1
Level 1
Posts: 4
Joined: Sun Jul 22, 2018 11:59 pm

Re: VLC (3.0) steals focus when mouse cursor hovers over seekbar (Cinnamon only)

Post by ding501 » Mon Jul 23, 2018 2:03 am

I first noticed this behaviour when I had updated Linux mint 19 beta after install.
Linux mint 19 (cinnamon 3.8.7 muffin 3.8.2+tara)
Vlc, when playing any media, if mouse pointer passes over the vlc progress bar the vlc window becomes active and covers any other open windows. Happens whether vlc is maximised or minimised.
This problem only appeared after the update on linux mint 19 beta to 'cinnamon-muffin 3.8.2+tara'.

Ok on original Linux mint 19 beta iso install before updates and ok in ubuntu 18.04 (cinnamon 3.6.7 muffin 3.6.0-1)
Tested on several other distros using cinnamon <3.8.0 and they were all ok.
Tested on Manjaro (cinnamon 3.8.3 muffin 3.8.1-1.1), Archlinux (cinnamon 3.8.7 muffin 3.8.2-1), Fedora 27 (cinnamon 3.8.4 muffin 3.8.2-1.fc27) and they all worked with no problem.
No problem on flatpak and snap installs of vlc.
conclusion:
the problem is in muffin 3.8.2+tara?

fromWinToLin
Level 2
Level 2
Posts: 77
Joined: Thu Nov 19, 2009 11:53 am

Re: VLC (3.0) steals focus when mouse cursor hovers over seekbar (Cinnamon only)

Post by fromWinToLin » Mon Jul 23, 2018 8:44 am

Thanks for the findings, ding501!

So this looks like a specific bug with Linux Mint 19 (Cinnamon + Muffin 3.8.2)?

But as you noted, there were no problems with Fedora 27, with Muffin 3.8.2.

With the latest packages for Linux Mint 19, I have installed Muffin 3.8.2 and Cinnamon 3.8.8. This is an extremely annoying issue when trying to use VLC player, and I don't believe my bug report on the VLC tracker is going to make a difference. I guess something needs to be fixed with Cinnamon and/or Muffin, specifically on Linux Mint 19? It's so strange for this bug to exist when using a specific application on a specific distro, even if other distros have the same desktop environment and window manager (even some with the same version.)

ding501
Level 1
Level 1
Posts: 4
Joined: Sun Jul 22, 2018 11:59 pm

Re: VLC (3.0) steals focus when mouse cursor hovers over seekbar (Cinnamon only)

Post by ding501 » Mon Jul 23, 2018 11:16 pm

I have just tested with the Linux mint 19 beta iso on flash drive.
There is no problem as it uses muffin 3.8.1+tara

Fedora 27 muffin 3.8.2-1.fc27 and Archlinux muffin 3.8.2-1 are not the same versions as linux mint 19 muffin 3.8.2+tara??

fromWinToLin
Level 2
Level 2
Posts: 77
Joined: Thu Nov 19, 2009 11:53 am

Re: VLC (3.0) steals focus when mouse cursor hovers over seekbar (Cinnamon only)

Post by fromWinToLin » Wed Aug 01, 2018 11:19 am

This is an issue with Cinnamon, and specifically the latest version on Mint 19. The VLC developers cannot really fix anything on their end.

fromWinToLin
Level 2
Level 2
Posts: 77
Joined: Thu Nov 19, 2009 11:53 am

Re: [SOLVED] VLC (3.0) steals focus when mouse cursor hovers over seekbar (Cinnamon only)

Post by fromWinToLin » Fri Aug 03, 2018 12:46 am

This issue has been resolved, sinc the VLC package version 3.0.3 was just released on the official Ubuntu Bionic repositories (which Mint uses by default.)

ding501
Level 1
Level 1
Posts: 4
Joined: Sun Jul 22, 2018 11:59 pm

Re: [SOLVED] VLC (3.0) steals focus when mouse cursor hovers over seekbar (Cinnamon only)

Post by ding501 » Mon Aug 06, 2018 12:14 am

Confirmed that the problem is resolved with the vlc 3.0.3 update.
(Manjaro,Archlinux and Fedora 27 did not have the problem with vlc 3.0.1 or vlc 3.0.2)

Post Reply

Return to “Software & Applications”