Xlib: DisplayWidth / DisplayHeight
Po Lu
luangruo at yahoo.com
Thu Aug 31 00:37:47 UTC 2023
Zbigniew <zbigniew2011 at gmail.com> writes:
> No, dear Volodya,
>
> „The DisplayHeight macro returns the height of the specified screen in
> pixels.
>
> The DisplayWidth macro returns the width of the screen in pixels.”
>
> This is what I want, and this is what — as „man” page states — I
> should get, regardless of presence of any „subsystems”. I want nothing
> more than is described there.
And it is what you do receive, only that the dimensions of the screen
are not what you _want_.
> Are you serious when stating, that during creation of a program I
> should play guessing game „what kind of 'subsystem' the user may
> employ”?
Or you could ask the server to provide a list of extensions in use.
It's one of the realities of X development. Deal with it.
More information about the xorg
mailing list