Window moves when clicking control in title region with titlebarAppearsTransparent

Originator:google
Number:rdar://21973457 Date Originated:2015-07-23
Status:Closed: fixed in 10.11b7 Resolved:2015-08-21
Product:OS X Product Version:10.10.4
Classification:UI bug Reproducible:Always
 
Summary:
Note: I posted this as a Stack Overflow question, but got no answer: http://stackoverflow.com/questions/31488063/window-moves-when-clicking-control-in-title-region-with-titlebarappearstranspare

Submitted to DTS, was told it's a bug with no workaround.

I have a window that uses the Yosemite titlebarAppearsTransparent and titleVisibility = NSWindowTitleHidden properties to extend the content under the title region. It is also movableByWindowBackground.

This works fine, however if I have a control, e.g. NSPopUpButton, in the titlebar region, when I click and attempt to choose a menu item, the whole window moves (while the menu stays put).

Here's a demo:

http://i.imgur.com/ISlcnEV.gif

I've tried subclassing the NSPopUpButton and overriding mouseDownCanMoveWindow, but that doesn't help (it's called, but apparently ignored).

I created a demo project to reproduce the issue. It seems related to embedding the popup inside a NSSplitViewController. I can't avoid that, though, so I'm not sure what the solution might be.

Here's the demo project: http://www.dejal.com/files/2015/stackoverflow/hiddentitlesissuedemo.zip

Steps to Reproduce:
1. Run the demo project.
2. Click on either popup menu.
3. Try to select an item.

Expected Results:
The window doesn't move.

Actual Results:
The window will unexpectedly move.

Version:
Yosemite 10.10.4.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!