In C, how to get the geometry (x, y, width, height) of the active monitor within the screen using X11
问题 All my searches lead to answers about how to get the geometry of the active screen in X11 using C, but that screen may contain many monitors, and there is normally only one screen unless there are many users simultaneously using the same computer. Those answers about getting the screen geometry are out of date because they don't take into account multiple monitors. So, how can I get the geometry (x, y, width, height) of the monitor that has the mouse pointer or active window on it? I would