<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 &amp;&amp; !_process_loop-&gt;is_same_thread(pthread_self()));"&nbsp;</span>even I defined&nbsp;<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
 &nbsp;</span>ResolutionChangeEvent class"</div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; ">This error happens at "MonitorsQuery syncevent wait" in&nbsp;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 &lt;alevy@redhat.com&gt;<br> <b><span style="font-weight: bold;">To:</span></b> Naga Mohan Pothula &lt;nagamohan.pothula@yahoo.com&gt;; "spice-devel@lists.freedesktop.org" &lt;spice-devel@lists.freedesktop.org&gt; <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>&gt; On Wed, Mar 07, 2012 at 11:24:15AM -0800, Naga Mohan Pothula wrote:<br>&gt; &gt; Hi,&nbsp;<br>&gt; &gt; <br>&gt; &gt; I'm trying to set resolution at guest by calling "send_agent_monitors_config" from "Application::toggle_full_screen" in Spicec module.<br>&gt; &gt; But facing Assertion "ASSERT(_process_loop &amp;&amp; !_process_loop-&gt;is_same_thread(pthread_self()));" due to keep on waiting in same thread.<br>&gt; &gt; <br>&gt; &gt; Is there any other way of setting guest resolution when we toggle full-screen? like raising toggle-screen event to call&nbsp;send_agent_monitors_config<br>&gt; &gt; <br>&gt; <br>&gt; You should be pushing an event to the queue, it will be processed from<br>&gt; another thread. You probably need to create a new Event class for this,<br>&gt; see for instance MouseModeEvent, it's usage is like so:<br>s/it's/its/ sigh..<br><br>&gt; <br>&gt;
 AutoRef&lt;MouseModeEvent&gt; event(new MouseModeEvent(*this));<br>&gt; push_event(*event);<br>&gt; <br>&gt; &gt; <br>&gt; &gt; Thanks for your help in advance,<br>&gt; &gt; ~Naga.<br>&gt; &gt; <br>&gt; &gt; ________________________________<br>&gt; &gt;&nbsp; From: Naga Mohan Pothula &lt;<a ymailto="mailto:nagamohan.pothula@yahoo.com" href="mailto:nagamohan.pothula@yahoo.com">nagamohan.pothula@yahoo.com</a>&gt;<br>&gt; &gt; To: "<a ymailto="mailto:spice-devel@lists.freedesktop.org" href="mailto:spice-devel@lists.freedesktop.org">spice-devel@lists.freedesktop.org</a>" &lt;<a ymailto="mailto:spice-devel@lists.freedesktop.org" href="mailto:spice-devel@lists.freedesktop.org">spice-devel@lists.freedesktop.org</a>&gt; <br>&gt; &gt; Sent: Monday, February 27, 2012 4:06 PM<br>&gt; &gt; Subject: [Spice-devel] Resolution still remains when windowed mode is switched to Full-screen mode<br>&gt; &gt;&nbsp; <br>&gt; &gt; <br>&gt; &gt; Hi,<br>&gt; &gt; <br>&gt; &gt;
 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>&gt; &gt; Screen resolution didn't change to client monitor's resolution. Tested with Upstream spice and trying to get&nbsp;<br>&gt; &gt; <br>&gt; &gt; windowed mode : 1024*600 resolution<br>&gt; &gt; Full-screen mode: client monitor's resolution.<br>&gt; &gt; <br>&gt; &gt; Auto-config is not working at this scenario. It is working only when spicec is launched with "--full-screen=auto-conf"<br>&gt; &gt; I think "send_agent_monitors_config" needs to be called when toggling to full-screen.&nbsp;<br>&gt; &gt; <br>&gt; &gt; Looking for approaches to do. Appreciated your help.<br>&gt; &gt; <br>&gt; &gt; <br>&gt; &gt; Thanks,<br>&gt; &gt; Naga.<br>&gt; &gt; <br>&gt; &gt; <br>&gt; &gt; _______________________________________________<br>&gt; &gt; Spice-devel mailing list<br>&gt; &gt; <a
 ymailto="mailto:Spice-devel@lists.freedesktop.org" href="mailto:Spice-devel@lists.freedesktop.org">Spice-devel@lists.freedesktop.org</a><br>&gt; &gt; http://lists.freedesktop.org/mailman/listinfo/spice-devel<br>&gt; <br>&gt; _______________________________________________<br>&gt; Spice-devel mailing list<br>&gt; <a ymailto="mailto:Spice-devel@lists.freedesktop.org" href="mailto:Spice-devel@lists.freedesktop.org">Spice-devel@lists.freedesktop.org</a><br>&gt; <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>