-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
window height of the VirtualBox guest screen size #26
Comments
I had that issue long time ago but did not seeing it recently. |
WindowMaker version is 0.95.9. VirtualBox version is 6.1.36. |
I had that issue in the past when I was not installing the VirtualBox Guest Additions (the virtualbox-guest packages). thanks, |
OS is FreeBSD 13.1-STABLE |
Cannot reproduce the issue on my side. One thing to mention, seems that the windowmaker maintainer release is not compiled with randr support. |
In my case FreeBSD is the host OS and Kali Linux is the guest, but doesn't matter which guest OS I run. Only difference with here is that VB v7 isn't in FreeBSD yet so maybe that's the solution. I'll check the randr issue. |
Hmm I've just rebuilt WindowMaker with randr support but no diff. |
With a newer VB (6.1.42) version it's better, but not ideal. The height flips now to 480 instead of 3. The "user specified size" shows negative height, which should be 1050. So there's still something broken. |
Good news I was able to reproduce the issue with VirtualBox version is 6.1.36. When debugging WindowMaker, we can see that VirtualBox is requesting to create the guest window with a wrong height size in my case (843x65508).
The user specified size is so big that it's overflowing the max value as defined in X11, that's why it's displayed as a negative value. On the WindowMaker side, an attempt some time ago was made to mitigate that issue and that's why you are getting a height of 480 pixels, that's basically the failsafe implemented for such case. |
Yeah this is what I'm seeing too. Thanks for the effort! |
From VirtualBox itself when it's creating the guest window, it's sending to the wm the size request .. |
The patch is trying to mitigate and properly address the issue described at window-maker/wmaker#26 A buggy application (in that example virtualbox) is requesting a window size creation that is way too big and basically at the limit of X11 protocol (width and height are defined as CARD16). See details at https://www.x.org/releases/X11R7.7/doc/xproto/x11protocol.html During the tests, virtualbox has been seen requesting for window creation of size 843x65508. Even xprop is reporting incorrect values. There had been an attempt before with the commit https://repo.or.cz/wmaker-crm.git?a=commit;h=6668715402a5d8e2ecda6702076a06bf8988721e But the patch is broken and not implemented at the right place. As described in the wWindowConfigure function header, the size passed by the client app should not be trusted and should be vetted with a prior call to wWindowConstrainSize. wWindowConstrainSize call was missing only once in the wClientConfigure function from client.c What wWindowConstrainSize doing now is basically setting a failsafe window size fo 640x480 if both width and height are above the size of CARD16. If only one dimension is oversized, it's setting a default 4/3 window ratio. Oversized here has not been changed and it's defined in windowmaker as double the screen size.
In WM the screen size (height) of the guest window of VB keeps returning to a few pixels, which is really annoying.
Is there a way of forcing the screen size in VB to a specific size?
It seems to be a bug in WM since other window managers don't show this behaviour.
Regards,
Marco
The text was updated successfully, but these errors were encountered: