Re: Xlib: DisplayWidth / DisplayHeight

2023-08-31 Thread Dave Howorth
On Thu, 31 Aug 2023 10:14:38 -0700, Alan Coopersmith wrote: > On 8/31/23 10:01, Vladimir Dergachev wrote: > > I don't know exactly why they named things as they did. One > > possibility is that the idea was that a display could consist of > > several physical devices, like an airport display for

Re: Xlib: DisplayWidth / DisplayHeight

2023-08-31 Thread Alan Coopersmith
On 8/31/23 10:01, Vladimir Dergachev wrote: I don't know exactly why they named things as they did. One possibility is that the idea was that a display could consist of several physical devices, like an airport display for arrivals and deparatures. I don't either, but

Re: Xlib: DisplayWidth / DisplayHeight

2023-08-31 Thread Vladimir Dergachev
have a look, please, at the man page: int DisplayHeight(Display *display, int screen_number); int DisplayWidth(Display *display, int screen_number); „What screen is that”? The one described by the parameters. ('display' is a pointer to a 'Display' structure returned by a previous

Re: Xlib: DisplayWidth / DisplayHeight

2023-08-31 Thread Zbigniew
> Perhaps you should share your use case on why you need to know the screen > size when there are far better mechanisms to handle this? Because the use of the mentioned functions/macros is simple and straightforward. But they are flawed, unfortunately. So what mechanism do you propose to use for

Re: [PATCH] Move xtrans.pc to /usr/share/pkg-config

2023-08-31 Thread Alan Coopersmith
On 8/29/23 14:48, Lam Le wrote: Your message came through with no body - no patch file was included. But we generally don't do patches by email in X.Org any more, instead we take merge requests in our projects on https://gitlab.freedesktop.org/xorg/ but note the banner message about having to

Re: Xlib: DisplayWidth / DisplayHeight

2023-08-31 Thread Po Lu
Zbigniew writes: > You already know, what I mean — since you've already guessed it: the > physical screen I have. Why? Because that's the area where the window > of my program will appear. > What makes you think, that the creators of these functions, when > designing them years ago, meant

Re: Xlib: DisplayWidth / DisplayHeight

2023-08-31 Thread Krzysztof Hałasa
Zbigniew writes: > Are you serious when stating, that during creation of a program I > should play guessing game „what kind of 'subsystem' the user may > employ”? No, your program should simply get WxH and draw there. That's the point. Now, certain specific programs may want to know physical

Re: Xlib: DisplayWidth / DisplayHeight

2023-08-31 Thread Zbigniew
>> „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 > > And this what you get. Now when I say

[PATCH] Move xtrans.pc to /usr/share/pkg-config

2023-08-31 Thread Lam Le