• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Custom window disappears dragging to second display
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Custom window disappears dragging to second display (From: Trygve Inda <email@hidden>)

  • Prev by Date: Re: Custom window disappears dragging to second display
  • Next by Date: Re: Custom window disappears dragging to second display
  • Previous by thread: Re: Custom window disappears dragging to second display
  • Next by thread: Apple Developer Reference Library Safari Plugin
  • Index(es):
    • Date
    • Thread