xfce-panel shown during fullscreen

*nix specific usage questions
Ius
New Cone
New Cone
Posts: 3
Joined: 14 Feb 2012 01:16

xfce-panel shown during fullscreen

Postby Ius » 14 Feb 2012 01:32

Hi,

I've recently run into some issues running VLC in fullscreen (on Arch Linux/Xfce). Whenever the VLC window is maximized prior to switching to fullscreen, the Xfce panel is still shown in full screen mode. Interestingly, when VLC is not maximized, fullscreen works fine and the Xfce panel is hidden.

This seems to only affect the Xfce/VLC combo - eg. mplayer switches to fullscreen without any problems, regardless of the window state.

Relevant version info:
vlc 1.1.13
xfwm 4.8.3
xfce-panel 4.8.6

I've initially posted this issue on the Arch Linux forums [1] and have found a somewhat relevant looking bug on the Ubuntu bugtracker [2] (marked as resolved).

My main question is: is VLC to blame, or Xfce? (ie. what bug tracker should I post it to?)

[1] https://bbs.archlinux.org/viewtopic.php?id=135096
[2] https://bugs.launchpad.net/ubuntu/+sour ... bug/453173

Rémi Denis-Courmont
Developer
Developer
Posts: 15280
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: xfce-panel shown during fullscreen

Postby Rémi Denis-Courmont » 14 Feb 2012 09:34

It is most likely either a bug in Qt4's QtGui or in XFCE.
If it works fine with 'vlc --no-embedded.video', then the bug is probably in Qt4. If it still does not work, then it is probably in XFCE, or maybe in VLC.

Until someone finds out what the bug is, it is impossible to say for sure where that is.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

Ius
New Cone
New Cone
Posts: 3
Joined: 14 Feb 2012 01:16

Re: xfce-panel shown during fullscreen

Postby Ius » 14 Feb 2012 09:43

If it works fine with 'vlc --no-embedded.video', then the bug is probably in Qt4.
Ah, hadn't thought of disabling the GUI. For the record, yes, it works fine this way.

Rémi Denis-Courmont
Developer
Developer
Posts: 15280
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: xfce-panel shown during fullscreen

Postby Rémi Denis-Courmont » 14 Feb 2012 12:14

So while it could still be a VLC bug, this hints very strongly at a disagreement between QtGui and XFCE...

VLC is not much involved in fullscreening the Qt4-embedded video window.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

Ius
New Cone
New Cone
Posts: 3
Joined: 14 Feb 2012 01:16

Re: xfce-panel shown during fullscreen

Postby Ius » 14 Feb 2012 13:39

I hadn't even taken Qt into account. Looks like Qt might be to blame indeed, but I haven't been able to produce a standalone testcase yet.

Two interesting obervations:
- Manually switching to minimal view (CTRL+H) before going fullscreen makes it work without issue
- MainInterface::setVideoFullScreen() calls MainInterface::setMinimalView() in the same way

Yet in the second case the WindowFullScreen state doesn't yield the expected result. And I'm not sure what's so special about the Xfce panel.

EDIT: Managed to (trivially) reproduce it, so it's an issue with Qt or Xfce. This [1] appears to be related. Thanks for pointing me to Qt.

[1] http://developer.qt.nokia.com/doc/qt-4. ... FullScreen

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: xfce-panel shown during fullscreen

Postby Jean-Baptiste Kempf » 14 Feb 2012 18:36

Please try VLC 2.0
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

Cobinja
New Cone
New Cone
Posts: 3
Joined: 27 Apr 2012 15:49

Re: xfce-panel shown during fullscreen

Postby Cobinja » 27 Apr 2012 16:02

Hi

I'm experiencing the exact same problem.

My system:
Xubuntu 12.04
VLC 2.0.1-4 (the one from Ubuntu repos)
xfce panel 4.8.6
xfwm 4.8.3

I also tried the VLC-version from the stable-daily ppa (version 2.0.1+git20120424+r88-0~r36~precise1). Same problem.

//edit:
This is definitely not a VLC problem. This is what I did:
1. Install Xubuntu 11.10 and its latest updates
2. Install VLC 2.0.1 from stable-daily ppa. With this, libs of QT 4.7 are installed as dependencies
Problem does not occur
3. Install Qt 4.8 libs from ppa:/kubuntu/backports
Problem does occur, although neither VLC nor xfce changed.

So this is not a VLC or xfce problem, but a Qt problem (at least with the 4.8 libs from (K)ubuntu-repos)

Cobinja
New Cone
New Cone
Posts: 3
Joined: 27 Apr 2012 15:49

Re: xfce-panel shown during fullscreen

Postby Cobinja » 05 May 2012 02:38

Hi

I did some code diving into both vlc and qt. Though I still think that this is (at least partially) a Qt issue, there is a way for vlc to work around it.

This is what happens:
VLC uses the Qt window state to save the state that was active prior to switching to fullscreen. When coming from a maximized window, this results in a window that is both maximized and in fullscreen. The Qt window state for a normal, non-maximized, non-minimized window is 0 (zero), that's why fullscreen mode works flawlessly when coming from such a window.
When a QWidget in a maximized fullscreen window is changed via signals and slots, a repaint is requested, which eventually can result in a re-layout of the window.
Before switching to fullscreen, VLC goes to minimal view. This seems to be not finished when the fullscreen mode request is handled by Qt, so the visibilty change for minimal view actually happens afterwards (I can't tell why, but it's the only explanation I can come up with).
When a user manually switches to minimal mode, this is completed before the user can switch to fullscreen. Humans are just too slow for computers ;-)
When a window with both the window states "maximized" and "fullscreen" is re-layouted, the result is a window with the geometry of a maximized window and the (non-visible) decoration of a fullscreen window. That's why the xfce panel is visible.

I'm linking two things:
[1]
Two Qt creator projects for testing fullscreen mode in xfce. One breaks it, one doesn't. Both have the same UI. The button "Toggle Fullscreen" does as captioned, the button "Set label" shows the current window state in the label below the buttons (name and integer code).
How to break the fullscreen:
a) maximize the window
b) toggle fullscreen (fullscreen mode works at that moment)
c) click "Set label" (fullscreen mode breaks, xfce panel appears)
If you rid the MainWindow class of the layout, you can test that the fullscreen mode doesn't break anymore (although the window still gets both maximized and fullscreen modes).
The second project has a working fullscreen switcher, which does the state saving on client side, not in Qt window state.

[2]
Diffs with a (possible) solution on VLC side. Feel free to use it if suitable.

[1] http://www.cobinja.de/FullScreenTest.tar.gz
[2] http://www.cobinja.de/main_interface.diff.tar.gz

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: xfce-panel shown during fullscreen

Postby Jean-Baptiste Kempf » 07 May 2012 13:21

Send the patch to vlc-devel
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

Cobinja
New Cone
New Cone
Posts: 3
Joined: 27 Apr 2012 15:49

Re: xfce-panel shown during fullscreen

Postby Cobinja » 07 May 2012 22:16

Send the patch to vlc-devel
Done

swiftgeek
New Cone
New Cone
Posts: 2
Joined: 21 Aug 2012 02:01

Re: xfce-panel shown during fullscreen

Postby swiftgeek » 06 Sep 2012 19:00

Version 2.0.3, archlinux
It's happening again :(

cyclopropene
New Cone
New Cone
Posts: 1
Joined: 05 Nov 2012 06:24

Re: xfce-panel shown during fullscreen

Postby cyclopropene » 05 Nov 2012 06:31

I am using vlc version 1.1.13 on Fedora 16 with xfce. This happens to me but only if the vlc window is maximized when I try to enter fullscreen. The easy fix for me is to make sure the window is not maximized before going into fullscreen mode then it works fine.

voddan
New Cone
New Cone
Posts: 1
Joined: 18 Jan 2014 08:33

Re: xfce-panel shown during fullscreen

Postby voddan » 18 Jan 2014 08:58

I think, the problem is in VLC itself - Parole MP works fine.

My solution:
I created a small and invisible panel on my desktop (xfce settings manager -> Panel -> '+' ) and set its setting 'don't reserve space on borders'.
After that all other panels work fine with VLC.

Good hack!


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 16 guests