[Spice-devel] Resolution still remains when windowed mode is switched to Full-screen mode

Alon Levy alevy at redhat.com
Wed Mar 7 22:30:00 PST 2012


On Wed, Mar 07, 2012 at 10:40:40PM +0200, Alon Levy wrote:
> On Wed, Mar 07, 2012 at 11:24:15AM -0800, Naga Mohan Pothula wrote:
> > Hi, 
> > 
> > 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:
s/it's/its/ sigh..

> 
> AutoRef<MouseModeEvent> event(new MouseModeEvent(*this));
> push_event(*event);
> 
> > 
> > Thanks for your help in advance,
> > ~Naga.
> > 
> > ________________________________
> >  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
> >  
> > 
> > Hi,
> > 
> > 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.
> > 
> > 
> > Thanks,
> > Naga.
> > 
> > 
> > _______________________________________________
> > Spice-devel mailing list
> > Spice-devel at lists.freedesktop.org
> > http://lists.freedesktop.org/mailman/listinfo/spice-devel
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel


More information about the Spice-devel mailing list