winemac: Check the display link running state as well as the window count to decide...
commitfd6f2a1781354a1a86a0469abd0766afd6304005
authorKen Thomases <ken@codeweavers.com>
Fri, 8 Dec 2017 08:54:06 +0000 (8 02:54 -0600)
committerAlexandre Julliard <julliard@winehq.org>
Fri, 8 Dec 2017 09:56:33 +0000 (8 10:56 +0100)
tree9d4f2157806fdc4987568320924a5b7129969d61
parent20aaf167dd9f23fa68ff12984f24a2335dd94c03
winemac: Check the display link running state as well as the window count to decide whether to start/stop it.

The display link may be stopped even if there are associated windows, due to
idleness.  So, it may need to be started when a window is added even if it's
not the first window.

Signed-off-by: Ken Thomases <ken@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/winemac.drv/cocoa_window.m