• Carlos Garnacho's avatar
    x11: keep track of the screen pixel size by calculating the bounding box of monitors · d1414211
    Carlos Garnacho authored
    This is so we always have the latest information given by XRandR (or other), and not
    rely on Core protocol information that might not have been updated yet.
    This is specially visible when a monitor is connected (less frequent) or disconnected
    (much more frequent), callbacks on GdkScreen::monitors-changed that call
    gdk_screen_get_width/height() could get the screen size previous to the monitor
    So in order to fix this, keep track of the latest monitors information, and calculate
    the bounding box in order to know the screen size.
gdkscreen-x11.h 3.55 KB