Am 10.05.2012, 08:44 Uhr, schrieb Frédéric Dreier
<frederic.dre...@gmail.com>:
Hello,
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' :
https://github.com/jonosterman/cube/blob/master/cube-client-wm/src/main/java/ch/admin/vbs/cube/client/wm/ui/x/imp/XWindowManager2.java
(perhaps some parts are commented right now since I'm still testing some
stuff)
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.
Cheers,
Thomas
_______________________________________________
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.x.org/mailman/listinfo/xorg
Your subscription address: arch...@mail-archive.com