[1447] in Athena Bugs
OLC Question on XGetGeometry
daemon@ATHENA.MIT.EDU (nudelta@ATHENA.MIT.EDU)
Wed Nov 30 19:06:32 1988
From: <nudelta@ATHENA.MIT.EDU>
To: bugs@ATHENA.MIT.EDU
Date: Wed, 30 Nov 88 19:06:01 EST
Log Initiated for user Joseph C Wang (joe@M4-167-6.MIT.EDU)
(88/11/30 17:39:00)
Topic: xwindows
Question:
When I use XGetGeometry with an RT I get meaningless numbers, could it be a
bug, it works O.K. on the VAX. BTW I'm compile with the R3 libraries in
StaffTools.
___________________________________________________________
--- Connected to consultant Ilham Ahmed (ilham@M34-501-16.MIT.EDU)
[88/11/30 18:13:18]
*** Reply from consultant ilham@M34-501-16.MIT.EDU
[88/11/30 18:16:11]
Sorry, but I do know know what the trouble can be .... I will forward your
questions for the next available consultant. Thanx for using OLC.
- Ilham
--- Question forwarded by ilham
[88/11/30 18:16:13]
--- User read the reply.
[88/11/30 18:16:28]
*** Message from user joe@M4-167-6.MIT.EDU
[88/11/30 18:20:42]
I've found the problem (maybe). The program works in R2 so I diff'ed the
include files. I was defining the inputs to the XGetGeometry as Dimension
which is defined in R2 as unsigned int but in R3 as ShortCard. Since
XGetGeometry wants a pointer to unsigned int, the routine returns funny
numbers. I think a bug report is in order since the Xlib and XToolkit
definitions should be consistent.
*** Message from user joe@M4-167-6.MIT.EDU
[88/11/30 18:21:28]
Enter your message. End with a ^D or '.' on a line by itself.
I've found the problem (maybe). The program works in R2 so I diff'ed the
include files. I was defining the inputs to the XGetGeometry as Dimension
which is defined in R2 as unsigned int but in R3 as ShortCard. Since
XGetGeometry wants a pointer to unsigned int, the routine returns funny
numbers. I think a bug report is in order since the Xlib and XToolkit
definitions should be consistent.
--- User has logged out.
[88/11/30 19:00:32]
--- Connected to consultant George A. Nunn (nudelta@M11-115-4.MIT.EDU)
[88/11/30 19:00:34]
*** Reply from consultant nudelta@M11-115-4.MIT.EDU
[88/11/30 19:04:13]
Hi Joe,
If you don't mind, could you please send mail to bugs (if you have not a
lready done so) to report your troubles (I'll mail this message to bugs now...)
I will take your question off of olc now, if you have any other problems
or questions please contact us, thanks.
-George
--- User has logged out.
[88/11/30 19:04:16]