<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "><span>Hi Alon,</span></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "><span><br></span></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; ">I'm getting the same error "<span style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; ">ASSERT(_process_loop && !_process_loop->is_same_thread(pthread_self()));" </span>even I defined <span style="font-size: 10pt; ">ResolutionChangeEvent class at red_client.cpp.</span></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "><span style="font-size: 10pt; ">I called "</span><span style="font-size: 13px; ">_client.send_agent_monitors_config();" in "response virtual function of
</span>ResolutionChangeEvent class"</div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; ">This error happens at "MonitorsQuery syncevent wait" in send_agent_monitors_config();</div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "><br></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; ">Thanks\Naga.</div> <div style="font-size: 10pt; font-family: arial, helvetica, sans-serif; "> <div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "> <div dir="ltr"> <font size="2" face="Arial"> <hr size="1"> <b><span style="font-weight:bold;">From:</span></b> Alon Levy <alevy@redhat.com><br> <b><span style="font-weight: bold;">To:</span></b> Naga Mohan Pothula <nagamohan.pothula@yahoo.com>; "spice-devel@lists.freedesktop.org" <spice-devel@lists.freedesktop.org> <br> <b><span style="font-weight: bold;">Sent:</span></b> Thursday,
March 8, 2012 12:30 AM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [Spice-devel] Resolution still remains when windowed mode is switched to Full-screen mode<br> </font> </div> <br>
On Wed, Mar 07, 2012 at 10:40:40PM +0200, Alon Levy wrote:<br>> On Wed, Mar 07, 2012 at 11:24:15AM -0800, Naga Mohan Pothula wrote:<br>> > Hi, <br>> > <br>> > I'm trying to set resolution at guest by calling "send_agent_monitors_config" from "Application::toggle_full_screen" in Spicec module.<br>> > But facing Assertion "ASSERT(_process_loop && !_process_loop->is_same_thread(pthread_self()));" due to keep on waiting in same thread.<br>> > <br>> > 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<br>> > <br>> <br>> You should be pushing an event to the queue, it will be processed from<br>> another thread. You probably need to create a new Event class for this,<br>> see for instance MouseModeEvent, it's usage is like so:<br>s/it's/its/ sigh..<br><br>> <br>>
AutoRef<MouseModeEvent> event(new MouseModeEvent(*this));<br>> push_event(*event);<br>> <br>> > <br>> > Thanks for your help in advance,<br>> > ~Naga.<br>> > <br>> > ________________________________<br>> > From: Naga Mohan Pothula <<a ymailto="mailto:nagamohan.pothula@yahoo.com" href="mailto:nagamohan.pothula@yahoo.com">nagamohan.pothula@yahoo.com</a>><br>> > To: "<a ymailto="mailto:spice-devel@lists.freedesktop.org" href="mailto:spice-devel@lists.freedesktop.org">spice-devel@lists.freedesktop.org</a>" <<a ymailto="mailto:spice-devel@lists.freedesktop.org" href="mailto:spice-devel@lists.freedesktop.org">spice-devel@lists.freedesktop.org</a>> <br>> > Sent: Monday, February 27, 2012 4:06 PM<br>> > Subject: [Spice-devel] Resolution still remains when windowed mode is switched to Full-screen mode<br>> > <br>> > <br>> > Hi,<br>> > <br>> >
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.<br>> > Screen resolution didn't change to client monitor's resolution. Tested with Upstream spice and trying to get <br>> > <br>> > windowed mode : 1024*600 resolution<br>> > Full-screen mode: client monitor's resolution.<br>> > <br>> > Auto-config is not working at this scenario. It is working only when spicec is launched with "--full-screen=auto-conf"<br>> > I think "send_agent_monitors_config" needs to be called when toggling to full-screen. <br>> > <br>> > Looking for approaches to do. Appreciated your help.<br>> > <br>> > <br>> > Thanks,<br>> > Naga.<br>> > <br>> > <br>> > _______________________________________________<br>> > Spice-devel mailing list<br>> > <a
ymailto="mailto:Spice-devel@lists.freedesktop.org" href="mailto:Spice-devel@lists.freedesktop.org">Spice-devel@lists.freedesktop.org</a><br>> > http://lists.freedesktop.org/mailman/listinfo/spice-devel<br>> <br>> _______________________________________________<br>> Spice-devel mailing list<br>> <a ymailto="mailto:Spice-devel@lists.freedesktop.org" href="mailto:Spice-devel@lists.freedesktop.org">Spice-devel@lists.freedesktop.org</a><br>> <a href="http://lists.freedesktop.org/mailman/listinfo/spice-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/spice-devel</a><br><br><br> </div> </div> </div></body></html>