Resized window does not resize its content.
frederic.dreier at gmail.com
Fri May 11 23:02:11 PDT 2012
Thank you for your answer. I mis-used the word "fullscreen". What I
actually need is to 'maximize' the VirtualBox window (I still display
tabs in top of the VM winodw in order to switch from VM to VM). so
virtualbox fullscreen is not something I can use.
For now I am able to set the VirtualBox size with XResizeWindow(). But
for some reason its content does not always update. I'm a very newby
in X progaming and did not even understand exactly it's 'concepts' so
I guess I missed to call some method in order to tell the application
that it has been resized (I tried to send a ConfigureNotify event but
it did not help).
2012/5/10 Thomas Lübking <thomas.luebking at gmx.de>:
> Am 10.05.2012, 08:44 Uhr, schrieb Frédéric Dreier
> <frederic.dreier at gmail.com>:
>> I am trying to force an application to have a certain size but it does
>> not work as expected yet: the application window resize well but not
>> it's content.
>> The application I try to resize is VirtualBox. I want it to run in a
>> kiosk like mode (full-screen) for a project named 'Cube' :
>> (perhaps some parts are commented right now since I'm still testing some
>> There is no other window manager running in the background.
>> What append is:
>> - I start VirtualBox
>> - Once I detect a VirtualBox Window (based on its title), I re-parent
>> it into another window (which is used to display a 5-pixels border
>> around the application's window) -> line 135
>> - and resize it to fullscreen (using XMoveResizeWindow)
>> - I then get resizeRequest event (with smaller size) that I ignore (is
>> that wrong?) -> line 315
>> - then ConfigureNotify event where I check if it is the correct size.
>> If not, I resize it again. -> line 389
>> - then ResizeRequest and Configuration again (VirtualBox actually
>> display a welcome screen before showing the application)
>> At the end the application's window has got the desired dimension but
>> not its content.
> I don't really know what you intend to do but virtualbox does not really
> align to NET_WM_FULLSCREEN - if you want it fullscreened, just run
> "virtualbox --fullscreen"
> Otherwise you won't get it into it's fullscreen mode (w/o using the gui oc.)
> Also notice that if you reparent the window you still have to moveresize
> both of them.
More information about the xorg