windows: Use FindWindow to locate the window related to the timer 78/250178/3
authorWander Lairson Costa <wander.lairson@gmail.com>
Mon, 21 Dec 2020 17:39:42 +0000 (14:39 -0300)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Tue, 5 Jan 2021 18:27:08 +0000 (18:27 +0000)
commitd7be18652d706b03d16e0a99d26935a60fc77ba8
treea3322440043e1a3e7a3cb32f716c4fed0302c270
parentb6df7959fc145b1bfc25e3c718ead8b026769abe
windows: Use FindWindow to locate the window related to the timer

If our window is not the foreground window, GetActiveWindow() will
return a null handle, which causes the call to SetTimer to ignore the
given timer ID.

We solve this by calling FindWindow() passing the window class name when
GetActiveWindow returns null.

Change-Id: Icc3e3c9f3fd0f9cfb4f4e8cb97fabffe347c7b5d
dali/internal/window-system/windows/platform-implement-win.cpp