| 4 | #include <Log.hh> |
| 5 | |
| 6 | static LRESULT CALLBACK windowMessageProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) { |
| 7 | jwm::WindowWin32* window = reinterpret_cast<jwm::WindowWin32*>(GetPropW(hWnd, L"JWM")); |
| 8 | |
| 9 | if (!window) { |
| 10 | jwm::AppWin32& app = jwm::AppWin32::getInstance(); |
| 11 | LRESULT result = app.processEvent(uMsg, wParam, lParam); |
| 12 | return result? result: DefWindowProcW(hWnd, uMsg, wParam, lParam); |
| 13 | } |
| 14 | |
| 15 | return window->processEvent(uMsg, wParam, lParam); |
| 16 | } |
| 17 | |
| 18 | bool jwm::WindowManagerWin32::init() { |
| 19 | // NOTE: We report all coords/sizes in pixels |
nothing calls this directly
no test coverage detected