actually, i wanted to check the height and width, and if i am checking width twice, taht means that the second test needs to be for this statement here:
(DisplayHeightMM(dpy,i) < 1)
instead of what it is now, which is:
(DisplayWidthMM(dpy,i) < 1)
change that line to the appropriate check and it'll work even better, because it won't let the applications crash due to having a 0 for the height and/or width.
actually, i wanted to check the height and width, and if i am checking width twice, taht means that the second test needs to be for this statement here:
(DisplayHeightM M(dpy,i) < 1)
instead of what it is now, which is:
(DisplayWidthMM (dpy,i) < 1)
change that line to the appropriate check and it'll work even better, because it won't let the applications crash due to having a 0 for the height and/or width.