> On Sep 13, 2017, at 10:28 AM, Andreas Falkenhahn <andr...@falkenhahn.com> > wrote: > > Thanks, but unfortunately I can't get it to work. The following call returns > NULL which makes SendWindowGroupBehind() fail with "windowGroupInvalidErr": > > theWindowGroup = > GetWindowGroupSibling(GetWindowGroupOfClass(kUtilityWindowClass), false); > > I've also tried to pass "true" instead of "false". Then > GetWindowGroupSibling() > returns a pointer but SendWindowGroupBehind() still fails, the error being > -50 then. > > Any ideas?
It’s obviously been too long since I’ve done much work on the Window Manager. I completely forgot that we have an actual window class for always-floating windows - kOverlayWindowClass. So all you need to do is this: SetWindowGroup( yourWindow, GetWindowGroupOfClass( kOverlayWindowClass ) ); and that should keep your window above other windows regardless of app activation. -eric _______________________________________________ Do not post admin requests to the list. They will be ignored. Carbon-dev mailing list (Carbon-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/carbon-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com