Ticket #11553 (closed enhancement: obsolete)

Opened 4 years ago

Last modified 11 months ago

Scale Mode to full screen

Reported by: RickCHodgin Owned by:
Priority: minor Component: GUI
Version: VirtualBox 4.2.8 Keywords: scale, maximize
Cc: Guest type: Windows
Host type: Linux


We have scale mode. Works great. I have a 1920x1200 Windows guest on a 1920x1200 Linux host. I use this regularly. However, I sometimes use that guest on my laptop (which is 1600x900). When I maximize the 1920x1200 guest window it scales up, but the title bar is still there along with the window borders. It decreases the window size I could have to view this guest on the lower resolution host. ---- Request a new menu item: "Hide window decoration on maximize?" to hide the title bar and window border so we can use that otherwise lost "client" real-estate. The standard host keys (Ctrl+Home) will bring up the menu like normal to restore it. ---- I am a software developer and could help develop this if someone could point me in the right direction. :-)

Change History

comment:1 Changed 4 years ago by Perryg

Or you could install the guest additions (in the guest) and use the hot key host+F toggle to go in and out of full screen.

comment:2 Changed 4 years ago by RickCHodgin

It's not a matter of going to full-screen. It does that correctly right now when scaled. I'm looking for a way to go full-screen without signaling the guest that it should resize itself to the host's resolution. ---- I want it to maintain scaling when going to full-screen (which is like what the maximize button does now when scaled), so that on my 1600x900 it will scale the 1920x1200 guest to the 1600x900 size of the host. But, I want this without window decoration, thereby reclaiming that 10+ pixels on the right/left and 5+ pixels on the bottom for the borders, and the 30+ pixels at the top (for the title bar and top border).

Last edited 4 years ago by RickCHodgin (previous) (diff)

comment:3 Changed 4 years ago by RickCHodgin

If somebody could point me in the software where to begin looking at this (window decoration during maximize, and where the settings are for Window options (fullscreen, seamless mode, scaled)), I'll code and test this in Windows and Linux.


comment:4 Changed 4 years ago by michael

The place to be looking is "src/VBox/Frontends/VirtualBox/src/runtime/scale/" in the sources. You might want to start by using an "extra data" key rather than a menu item (grep for ExtraData in "src/VBox/Frontends/VirtualBox" for clarification). I have to point out though that the developer in charge of this area of the code was somewhat sceptical about taking a patch for this feature, as he was afraid it would end up being rather intrusive in an area of the code which is due to be redesigned in the medium term.

comment:5 Changed 4 years ago by michael

You will also want to be looking at src/VBox/Frontends/VirtualBox/src/runtime/UIFrameBufferQImage.cpp. Unless you have a Mac to test on you will probably be wanting to make the feature a no-op for Quartz 2D.

comment:6 Changed 4 years ago by RickCHodgin

Thanks, Michael. I appreciate the direction. Will look at it. I don't have a Mac. For Windows it should only require a change of the Window style on maximize. For Linux something similar. At least that's been my experience (haven't looked at the VB code yet :-)).

comment:7 Changed 4 years ago by RickCHodgin

Before I begin on this, I wanted to ask ... "the developer in charge of this area" and his concerns ... is it worth me writing this patch? Or just waiting for the redesign and then writing it there?

comment:8 Changed 11 months ago by aeichner

  • Status changed from new to closed
  • Resolution set to obsolete

Please reopen if still relevant with a recent VirtualBox release.

Note: See TracTickets for help on using tickets.
ContactPrivacy policyTerms of Use