diff options
-rw-r--r-- | hw/xwin/winmonitors.c | 4 | ||||
-rw-r--r-- | hw/xwin/winmultiwindowwm.c | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/hw/xwin/winmonitors.c b/hw/xwin/winmonitors.c index 5484209a9..3f65d2498 100644 --- a/hw/xwin/winmonitors.c +++ b/hw/xwin/winmonitors.c @@ -63,5 +63,7 @@ Bool QueryMonitor(int index, struct GetMonitorInfoData *data) data->requestedMonitor = index; /* query information */ - return EnumDisplayMonitors(NULL, NULL, getMonitorInfo, (LPARAM) data); + EnumDisplayMonitors(NULL, NULL, getMonitorInfo, (LPARAM) data); + + return TRUE; } diff --git a/hw/xwin/winmultiwindowwm.c b/hw/xwin/winmultiwindowwm.c index a33d17eae..5eae76dba 100644 --- a/hw/xwin/winmultiwindowwm.c +++ b/hw/xwin/winmultiwindowwm.c @@ -1961,6 +1961,9 @@ winApplyHints (Display *pDisplay, Window iWindow, HWND hWnd, HWND *zstyle) if (hint & HINT_NOSYSMENU) style = style & ~WS_SYSMENU; + if (hint & HINT_SKIPTASKBAR) + style = style & ~WS_MINIMIZEBOX; /* window will become lost if minimized */ + SetWindowLongPtr (hWnd, GWL_STYLE, style); /* now we have iTaskbar, use that as well */ |