Summary: | fullscreen | ||
---|---|---|---|
Product: | Spice | Reporter: | clydezhou <zhouwei54321> |
Component: | spice-gtk | Assignee: | Spice Bug List <spice-bugs> |
Status: | RESOLVED INVALID | QA Contact: | |
Severity: | normal | ||
Priority: | medium | ||
Version: | unspecified | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
clydezhou
2012-10-15 07:19:16 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. 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.