Re: Custom window disappears dragging to second display
Re: Custom window disappears dragging to second display
- Subject: Re: Custom window disappears dragging to second display
- From: Ken Thomases <email@hidden>
- Date: Mon, 02 May 2016 22:47:54 -0500
On May 2, 2016, at 9:26 PM, Trygve Inda <email@hidden> wrote:
>
> I have a custom window that basically eliminates the large title area.
>
> When you drag a normal window to a second screen, as the drag is in
> progress, the window appears semi-transparent on the second screen until
> enough of the window covers the second screen, whereupon it becomes opaque
> on the second screen and semi-transparent on the original one.
>
> With my custom window, as the drag is in progress, the window portion that
> is supposed to be semi-transparent is 100% transparent - not visible at all.
>
> What would cause this?
Are you handling the dragging manually, by handling mouse events and setting the window's frame?
The issue is almost certainly due to System Preferences > Mission Control > Displays have separate Spaces. When that is enabled (the default), windows can't span displays. They are clipped to the display which contains the majority of their area. That's what you're seeing.
The real question is how is it that a normal window shows semi-transparent when it's being dragged. The answer to that is that the window server manages the window drag. It's not Cocoa in the individual app process. The window server is special and can do things that an app can't, such as make a window span multiple displays when Displays have separate Spaces is enabled.
Regards,
Ken
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden