I still think it's a problem between Qt4 and the WM.
If that were the case, other programs line Xine would do the same thing. Even Firefox, when you scale
it off the screen and restart it will scale to the edge of the screen.
If you disagree, you are free to prove your point with a patch.
Thank you for the vote of confidence. I am just a HUGE fan of the end result. I can only write Bash scripts, read Modula0, 2 and guess at C++.
Now a vote of confidence for you! Would you consider looking at Xine's source code to see how they do it? Should be a piece of cake with you guys with considerable skill level!
I love this program and use it more than any other. Please, please, please fix this for me!
I still think it's a problem between Qt4 and the WM.
If that were the case, other programs line Xine would do the same thing. Even Firefox, when you scale it off the screen and restart it will scale to the edge of the screen.
In its default configuration, VLC always scales the video to fit within the window. It is the job of the window manager to fit the window to the "acceptable" area of the virtual desktop.
As a matter of fact, there is generally no way for applications such as VLC to even know what the acceptable area is. Sure, VLC can learn what the view ports are via the RandR extension. But that can contain contradictory informations (overlapping view ports). Most dramatically, VLC does not know what part of the desktop are reserved for special elements such as the task bar, or how large the window decorations are. That falls squarely within the area of responsibility of the X11 window manager.
If the WM is too stupid to fit and limit the dimensions of windows, that is not a VLC bug. Conversely, if the Qt4 UI toolkit is fooling the window manager (say abusing the X11 override flags), the problem also would fall outside the scope of the VLC project and code base.
In fact, I cannot reproduce the problem with the YouTube video above. The window becomes just exactly as large as my display.
If you disagree, you are free to prove your point with a patch.
Thank you for the vote of confidence. I am just a HUGE fan of the end result. I can only write Bash scripts, read Modula0, 2 and guess at C++.
And I do not see what is missing in VLC, so I cannot fix it either.
Just noticed something. If I drag VLC below my #2 (closed) Panel at the bottom of my screen, kill and restart VLC, VLC will move itself right above my #2 (closed) Panel. So, you may already have the code you need somewhere inside VLC
One of the guys over on the Xfce mailing list came up with a workaround: "Properties->Interface I disable "Integrate video into Interface" vlc scales, but I get an extra window."
I have verified that the video window does come up perfectly. Does not overlap either of my two panels.
So, all the code is already in your program. You just need to use the non-integrated windows scaling setting in the integrated window to scale and you will have cured the problem!
So the problem is Qt4-X11 code, not VLC. We cannot fix it here.
How do you figure? Other programs do not have this problem. Your program in certain configurations does not have this problem. The problem is yours, not Qt4.
The whole point of --no-embedded-video is to use VLC internal X11 window management instead of Qt4-X11's... Of course it implies the video cannot be embedded in the Qt4 UI.
The whole point of --no-embedded-video is to use VLC internal X11 window management instead of Qt4-X11's... Of course it implies the video cannot be embedded in the Qt4 UI.
Is there a problem using "VLC internal X11 window management" on the embedded window as well? You are already using it in the other instance. Should not be too hard to copy and paste the code. And the video running off the screen is really, really embarrassing.