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

Naga Mohan Pothula nagamohan.pothula at yahoo.com
Fri Mar 9 06:47:04 PST 2012


Hi Alon,

I'm getting the same error "ASSERT(_process_loop && !_process_loop->is_same_thread(pthread_self()));" even I defined ResolutionChangeEvent class at red_client.cpp.
I called "_client.send_agent_monitors_config();" in "response virtual function of  ResolutionChangeEvent class"
This error happens at "MonitorsQuery syncevent wait" in send_agent_monitors_config();

Thanks\Naga.

________________________________
 From: Alon Levy <alevy at redhat.com>
To: Naga Mohan Pothula <nagamohan.pothula at yahoo.com>; "spice-devel at lists.freedesktop.org" <spice-devel at lists.freedesktop.org> 
Sent: Thursday, March 8, 2012 12:30 AM
Subject: Re: [Spice-devel] Resolution still remains when windowed mode is switched to Full-screen mode
 
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20120309/61da6d2d/attachment.htm>


More information about the Spice-devel mailing list