screen_count(3) Library Functions Manual screen_count(3)

screen_count - gives number of back-end screens

int screen_count(xosd * osd)

screen_count gives an integer representing the number of screens on the X11 connection

Takes xosd * osd as an argument, representing the X11 connection

Returns nscreens, which is the number of back-end screens i.e. physical monitors or analogues

libXosd team at Western Washington University

2022-11-04 X OSD Library