Re: Is there a way to programmatically determine if the X Server is using XQuartz?
Re: Is there a way to programmatically determine if the X Server is using XQuartz?
- Subject: Re: Is there a way to programmatically determine if the X Server is using XQuartz?
- From: Jeremy Huddleston <email@hidden>
- Date: Thu, 16 Dec 2010 20:39:20 -0800
On Dec 16, 2010, at 18:02, Cook, Rich wrote:
> I am having an issue where I place a window in my application and then XQuartz moves it down 22 pixels I guess to make room for the title bar. I need to correct for this behavior, but it only happens when the X Server is X11.app or Xorg.app. Is there a way for my Unix application (running on linux or OS X) to detect XQuartz and take evasive action? Thanks!
The X11 side of XQuartz actually doesn't even know about the menu bar. If you notice, the X11 display thinks the resolution is 22 pixels smaller than it really is (because the menu bar is not part of X11).
Can you give an example of the problem you are facing?
Your best bet is to check the list of extensions:
$ xdpyinfo | grep Apple
Apple-DRI
Apple-WM
See XListExtensions. You can see how it's used in print_extension_info in xdpyinfo.c (http://cgit.freedesktop.org/xorg/app/xdpyinfo/tree/xdpyinfo.c)
--Jeremy _______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden