On Mon, Jan 11, 2010 at 3:12 PM, Adam Jackson <span dir="ltr"><<a href="mailto:ajax@nwnk.net">ajax@nwnk.net</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div></div><div class="h5">On Sat, 2010-01-09 at 11:42 +0100, Nokan Emiro wrote:<br>
<br>
> Could someone please tell me what event should an X client<br>
> subscribe and handle to update it's knowledge on screen size<br>
> (width and height is saved at client startup from DisplayWidth()<br>
> and DisplayHeight())?<br>
><br>
> If a user switches into an other resolution (for emaple form 1024x768<br>
> into 800x600 with:<br>
><br>
> $ xrandr --output VGA --mode 800x600<br>
><br>
> ), my X client's widht and height needs to be modified somehow,<br>
> and I hope XSelectInput() + XNextEvent() can notify me on these<br>
> resolution changes...<br>
<br>
</div></div>You can either select for ConfigureNotify on the root window, or for<br>
RRScreenChangeNotify using XRRSelectInput().<br>
<br>
</blockquote></div><br>
<br>I've choosed the RR version, and that worked fine with XOrg<br>
version 1.6.0 to 1.6.4. Now I upgraded to 1.7.6, and I no longer<br>receive
the RRScreenChangeNotify events. Can you tell me<br>what do I wrong? (Actually it was an Ubuntu Karmic to Lucid<br>upgrade...)<br>
<br>
u.<br><br><br>