On Mon, Jan 11, 2010 at 3:12 PM, Adam Jackson <[email protected]> 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.
_______________________________________________ [email protected]: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: http://lists.freedesktop.org/mailman/listinfo/xorg
