indragiek / INAppStoreWindow

NSWindow subclass with a highly customizable title bar and traffic lights
BSD 2-Clause "Simplified" License
1.06k stars 162 forks source link

Window flicker when drag in the original titlebar area and move to top of the screen #206

Open xiaodw opened 8 years ago

xiaodw commented 8 years ago

This problem reproduce with the latest code. And some app such as SoureTree\WeChat has the problem also,reason and solution as below: The problem caused by the call of convertBaseToScreen(INAppStoreWindow.m line 567),it works well if caculate the offset of window move without the convert. NSPoint now = [window convertBaseToScreen:theEvent.locationInWindow]; NSPoint now = [NSEvent mouseLocation];