[Qemu-devel] scrollable window

From:

Jim C. Brown

Subject:

[Qemu-devel] scrollable window

Date:

Sun, 10 Jul 2005 01:58:35 -0400

User-agent:

Mutt/1.4i

I personally feel that a scrollable window is not very useful unless your host
resolution is smaller than your guest resolution. Hard to see what the point is
really... especially if you want to use full screens and mouse pointer
grabbing. Besides, it just looks ugly. I feel the conventional qemu window
simply looks more natural.
Anyways, this is a version of gtk2.c which gives the wanted scrolling feature.
I just started on this so expect ease-of-use bugs. :D Should work on windows
as well, but I have not been able to test this myself yet.
Should work with the latest gtk patches and files, just substitute that
gtk2.c (the scrolless one) with this version.
Current issues:
No fullscreen support. (Having a scrolled window in fullscreen mode may not
make a lot of sense anyways, but resizing the window and getting rid of the
scrollbars should be done.) Ctrl-Alt-F is recognized and its usage is untested
and likely to cause breakage. :D
When resolution of guest is smaller than the window, the window should
arguably be resized. Right now one just sees extra grey areas in the right and
bottom sides of the window.
The window can't be made smaller than 720x400.
Arguably, the scrollbars should disappear if the guest resolution completely
fits into the window - but this may be a matter of preferance.
When moving the mouse, the "viewport" should probably move as the mouse moves
around. Right now it just moves into the edge and disappears, requiring that
the grab be ended and the scrollbars manually adjusted in order to see the
mouse pointer
again. This is very difficult to do without some sort of guest OS support
though.
This would be vastly easier if mouse grabbing was not done. But then
one would have problems with the host and guest pointers getting out
of sync, which has been a well discussed topic.
--
Infinite complexity begets infinite beauty.
Infinite precision begets infinite perfection.