c - Xlib multiple display support -


i want display info via xlib, specifically:

  • iterate displays
  • get screen rectangle each display (relative virtual screen - x11 have concept of virtual screen on physical screens mapped, similar windows , osx?)
  • get client area rectangle (so screen minus taskbar etc.) each display

thanks.


half answer: using xineramaqueryscreens() able enumerate displays , coordinates in virtual screen , sizes. how desktop size, i.e. size windows maximize to?

you need read _net_desktop_geometry (also maybe _net_desktop_viewport , _net_workarea )


Comments

Popular posts from this blog

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -

YouTubePlayerFragment cannot be cast to android.support.v4.app.Fragment -