Re: X applications can't use top menu bar area
Re: X applications can't use top menu bar area
- Subject: Re: X applications can't use top menu bar area
- From: Jeremy Huddleston <email@hidden>
- Date: Mon, 27 Jul 2009 12:04:19 -0700
Chieh Cheng wrote:
> Quite a while back, I wrote a little utility called MagicMenu. It auto-hides the top menu bar in Mac OS X when you move the mouse away. It works with virtually all Mac applications. However, with X11, it can hide the top menu bar, but none of the X application can be moved into the top menu bar area when it is hidden.
>
> With any other Mac application, such as Finder, Firefox, etc., you can move their windows into the top menu bar space when the top menu bar is hidden.
>
The X11 screen is the entire visual desktop less the menu bar (unless
you're in fullscreen). In fullscreen mode, we change the screen size to
include the menubar area.
This is a bug in AppKit:
<rdar://problem/6395220> [NSScreen visibleFrame] subtracts dock and
menubar even when hidden by another app
The problem is that X11.app is figuring out the menu bar height from:
NSHeight([NSScreen mainScreen] frame]) - NSMaxY([[NSScreen mainScreen]
visibleScreen])
but we are told that visibleScreen is the mainScreen less a menubar even
though the menu bar isn't there.
I'd recommend that you can file a radar about this issue at
http://bugreport.apple.com
> I have Mac OS X 10.5.4 installed. Originally, I tried it with X11 delivered with 10.5.4. But since then, I had installed XQuartz 2.3.0. The same problem persists in both versions of X11.
>
> Is this a bug with X11? Or is there an implementation constraint that prevents X11 from ever using the top menu bar space?
>
It's not a bug in X11. We specifically don't consider the menu area
part of X11's screen. The problem is that a bug in NSScreen is telling
us that the menu is still there. Filing a radar will tell people that
this issue affects other projects and is not just an internal issue that
can be worked around in X11.
> MagicMenu is located here, in case you want to test this problem with X11:
> http://www.cynosurex.com/Software/MagicMenu/
>
> Chieh
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden