xrandr generated event
Nokan Emiro
uzleepito at gmail.com
Thu Apr 22 06:08:16 PDT 2010
On Mon, Jan 11, 2010 at 3:12 PM, Adam Jackson <ajax at nwnk.net> wrote:
> On Sat, 2010-01-09 at 11:42 +0100, Nokan Emiro wrote:
>
> > Could someone please tell me what event should an X client
> > subscribe and handle to update it's knowledge on screen size
> > (width and height is saved at client startup from DisplayWidth()
> > and DisplayHeight())?
> >
> > If a user switches into an other resolution (for emaple form 1024x768
> > into 800x600 with:
> >
> > $ xrandr --output VGA --mode 800x600
> >
> > ), my X client's widht and height needs to be modified somehow,
> > and I hope XSelectInput() + XNextEvent() can notify me on these
> > resolution changes...
>
> You can either select for ConfigureNotify on the root window, or for
> RRScreenChangeNotify using XRRSelectInput().
>
>
I've choosed the RR version, and that worked fine with XOrg
version 1.6.0 to 1.6.4. Now I upgraded to 1.7.6, and I no longer
receive the RRScreenChangeNotify events. Can you tell me
what do I wrong? (Actually it was an Ubuntu Karmic to Lucid
upgrade...)
u.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.x.org/archives/xorg/attachments/20100422/edea211d/attachment.html>
More information about the xorg
mailing list