|
|
@ -106,6 +106,13 @@ bool GlWndProc(CDriverGL *driver, HWND hWnd, UINT message, WPARAM wParam, LPARAM
|
|
|
|
driver->_WndActive = true;
|
|
|
|
driver->_WndActive = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
else if ((message == WM_SETFOCUS) || (message == WM_KILLFOCUS))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (driver != NULL)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
driver->_WindowFocus = (message == WM_SETFOCUS);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool trapMessage = false;
|
|
|
|
bool trapMessage = false;
|
|
|
|
if (driver->_EventEmitter.getNumEmitters() > 0)
|
|
|
|
if (driver->_EventEmitter.getNumEmitters() > 0)
|
|
|
@ -291,6 +298,18 @@ bool GlWndProc(CDriverGL *driver, XEvent &e)
|
|
|
|
|
|
|
|
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
case FocusIn:
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
driver->_WindowFocus = true;
|
|
|
|
|
|
|
|
return driver->_EventEmitter.processMessage(e);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
case FocusOut:
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
driver->_WindowFocus = false;
|
|
|
|
|
|
|
|
return driver->_EventEmitter.processMessage(e);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
|
|
|
|
|
|
|
|
// Process the message by the emitter
|
|
|
|
// Process the message by the emitter
|
|
|
|