Bug 55991 - fullscreen
Summary: fullscreen
Status: RESOLVED INVALID
Alias: None
Product: Spice
Classification: Unclassified
Component: spice-gtk (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Spice Bug List
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-15 07:19 UTC by clydezhou
Modified: 2012-10-15 07:42 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description clydezhou 2012-10-15 07:19:16 UTC
Dear
I'm very appreciate that you provide such a good client(spice-gtk), it's fast and can redirect a lot of usb devices, which give me the feeling to use a physical machine. I think it will be wonderful if we have a way to exit full screen gracefully, rather than press "shift+F12". like a lot of full screen applications, when cursor moves to the topmost, there is a drop-down windows, which allows you to restore the window or close the window, I'd like to implement such a function, and I need some tips from you.

I already investigating a bit,I can get the "mouse move to topmost signal" from input channel, and we can emit this signal to display channel, then we can draw a drop-down window in the screen, but I don't know how to draw a button to close the window, I've lost in the code.

I need some tips to do such a function.

Thanks
Comment 1 Marc-Andre Lureau 2012-10-15 07:32:04 UTC
(In reply to comment #0)
> Dear
> I'm very appreciate that you provide such a good client(spice-gtk), it's
> fast and can redirect a lot of usb devices, which give me the feeling to use
> a physical machine. I think it will be wonderful if we have a way to exit
> full screen gracefully, rather than press "shift+F12". like a lot of full
> screen applications, when cursor moves to the topmost, there is a drop-down
> windows, which allows you to restore the window or close the window, I'd
> like to implement such a function, and I need some tips from you.
> 
> I already investigating a bit,I can get the "mouse move to topmost signal"
> from input channel, and we can emit this signal to display channel, then we
> can draw a drop-down window in the screen, but I don't know how to draw a
> button to close the window, I've lost in the code.
> 
> I need some tips to do such a function.

The topmost toolbar can be handled all by the client side, no need to deal with Spice channels. You can look at virt-viewer src/virt-viewer-window.c, where the widget is created ViewAutoDrawer_New().

Alternatively, you can look at gtk3 solution using GtkOverlay & GtkEventBox, it is implemented by GNOME Boxes in src/display-page.vala.

fyi, the mailing is more appropriate for help discussion. Bugzilla is for bugs.
Comment 2 clydezhou 2012-10-15 07:42:37 UTC
Talking with you for one moment is much better than reading code for ten years.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.