[Spice-devel] Resolution still remains when windowed mode is switched to Full-screen mode
alevy at redhat.com
Wed Mar 7 12:40:40 PST 2012
On Wed, Mar 07, 2012 at 11:24:15AM -0800, Naga Mohan Pothula wrote:
> I'm trying to set resolution at guest by calling "send_agent_monitors_config" from "Application::toggle_full_screen" in Spicec module.
> But facing Assertion "ASSERT(_process_loop && !_process_loop->is_same_thread(pthread_self()));" due to keep on waiting in same thread.
> Is there any other way of setting guest resolution when we toggle full-screen? like raising toggle-screen event to call send_agent_monitors_config
You should be pushing an event to the queue, it will be processed from
another thread. You probably need to create a new Event class for this,
see for instance MouseModeEvent, it's usage is like so:
AutoRef<MouseModeEvent> event(new MouseModeEvent(*this));
> Thanks for your help in advance,
> From: Naga Mohan Pothula <nagamohan.pothula at yahoo.com>
> To: "spice-devel at lists.freedesktop.org" <spice-devel at lists.freedesktop.org>
> Sent: Monday, February 27, 2012 4:06 PM
> Subject: [Spice-devel] Resolution still remains when windowed mode is switched to Full-screen mode
> When Spice client (spicec) is launched in windowed mode, screen resolution is 1024*600 and it remains even when it is switched to full-screen mode.
> Screen resolution didn't change to client monitor's resolution. Tested with Upstream spice and trying to get
> windowed mode : 1024*600 resolution
> Full-screen mode: client monitor's resolution.
> Auto-config is not working at this scenario. It is working only when spicec is launched with "--full-screen=auto-conf"
> I think "send_agent_monitors_config" needs to be called when toggling to full-screen.
> Looking for approaches to do. Appreciated your help.
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
More information about the Spice-devel