I know about the libxrandr library but reading out newly attached monitor/display information, like available resolutions, requires polling.
Is there a way, in a CPP program, to get informed about changes on attached displays without asking RandR every x seconds?