]> Pileus Git - wmpus/blobdiff - sys-win32.c
Add auto-focus for primary monitor
[wmpus] / sys-win32.c
index 6d57bb6c1d77ec49179e3a16994c9eedc9034a06..8e34940c22da440489f9af14c88ae5d1be7be864 100644 (file)
@@ -295,6 +295,7 @@ BOOL CALLBACK MonProc(HMONITOR mon, HDC dc, LPRECT rect, LPARAM _screens)
        win_t *screen = new0(win_t);
        screen->x = work->left;
        screen->y = work->top;
+       screen->z = !!(info.dwFlags & MONITORINFOF_PRIMARY);
        screen->w = work->right  - work->left;
        screen->h = work->bottom - work->top;
        *screens = list_append(*screens, screen);