On 04/01/2011 04:18 AM, ankur jain wrote: > Hi all, > > Could someone please tell me how to get a notification when the screen > resolution is changed in linux?? > > Regards, > Samyak > > > > _______________________________________________ > [email protected]: X.Org support > Archives: http://lists.freedesktop.org/archives/xorg > Info: http://lists.freedesktop.org/mailman/listinfo/xorg > Your subscription address: [email protected]
man 3 xrandr XRRQueryExtension to get the event code and process the XrrScreenChangeNotifyEvent and XrrNotify events. If you are using a higher level toolkit they will emit a signal when this happens. _______________________________________________ [email protected]: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: http://lists.freedesktop.org/mailman/listinfo/xorg Your subscription address: [email protected]
