[Xcb] Notification on resolution changes

Nathaniel Smith njs at pobox.com
Wed Aug 5 01:15:01 PDT 2009

On Tue, Aug 4, 2009 at 10:01 PM, Ulrich Eckhardt<doomster at knuut.de> wrote:
> What I'm looking for is an elegant way to handle changes to the
> screen's resolution. I could simply poll this value, but that seems kind of
> ugly to me. Any better ideas?

If you select for StructureNotify on the root window then you'll get
standard ConfigureNotify events whenever the root window's size

Better would be to use the RANDR extension (which would also let you
grok and handle multiple monitor setups), but might be more work.

-- Nathaniel

More information about the Xcb mailing list