Comment 12 for bug 1040649

Revision history for this message
Alex (noneed4anick) wrote :

Hey Georg,

the main problem here is that this would be a polling mechanism. The implementation would be something like running every X seconds xrandr and parse its output to check if something changed. While this would be a working solution, polling is somewhat dirty, because you are creating unnecessary load on the system, even though the call of xrandr would be minimal.

The better solution would be to register a callback, by which cuttlefish will be notified on the change of the displaystatus.