1
1
Fork 0
mirror of https://github.com/QB64Official/qb64.git synced 2024-07-05 10:00:23 +00:00

Detect focus using GetForegroundWindow instead of GetActiveWindow.

This commit is contained in:
FellippeHeitor 2017-09-25 02:25:53 -03:00
parent 4f23fd9b7b
commit 7998aa89cd

View file

@ -29525,7 +29525,7 @@ void sub__maptriangle(int32 cull_options,float sx1,float sy1,float sx2,float sy2
#ifdef CORE_FREEGLUT
#ifdef QB64_WINDOWS
if (window_handle==GetActiveWindow()) {
if (window_handle==GetForegroundWindow()) {
if (key==112){vk=VK+QBVK_LSHIFT;}
if (key==113){vk=VK+QBVK_RSHIFT;}
if (key==114){vk=VK+QBVK_LCTRL;}