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(). http://google.com/codesearch?q=XRRSelectInput - ajax
signature.asc
Description: This is a digitally signed message part
_______________________________________________ xorg mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/xorg
