winemac: Properly ignore attempts to set a window's shape to its current shape.
commit31d7f61cc3525d32c0624564f9ac9033010fb968
authorKen Thomases <ken@codeweavers.com>
Thu, 2 Oct 2014 22:06:19 +0000 (2 17:06 -0500)
committerAlexandre Julliard <julliard@winehq.org>
Fri, 3 Oct 2014 06:39:49 +0000 (3 08:39 +0200)
tree98d5755eed572575aa59d9395be9464e9fb2e07c
parent170d80dc90fc3fb23d64f2a05f081747dd5a26c2
winemac: Properly ignore attempts to set a window's shape to its current shape.

NSBezierPath doesn't override the -isEqual: method to actually compare paths,
so it just falls back to object identity which, in our case, makes paths seem
like they're never equal.

Also, memcmp()-ing the rectangle array is almost certainly faster than any
general test for equality between two paths.
dlls/winemac.drv/cocoa_window.h
dlls/winemac.drv/cocoa_window.m