From 127c5cb0af10084f718dd99ec83bd49ed7b29def Mon Sep 17 00:00:00 2001
From: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Date: Mon, 25 Jun 2018 10:44:14 +1000
Subject: [PATCH] winex11: Support WTI_STATUS in WTInfo

WIP: Improve default values.
---
 dlls/winex11.drv/wintab.c | 56 +++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 56 insertions(+)

diff --git a/dlls/winex11.drv/wintab.c b/dlls/winex11.drv/wintab.c
index afdb051..0cc8ccd 100644
--- a/dlls/winex11.drv/wintab.c
+++ b/dlls/winex11.drv/wintab.c
@@ -1210,6 +1210,62 @@ UINT CDECL X11DRV_WTInfoW(UINT wCategory, UINT nIndex, LPVOID lpOutput)
                     rc = 0;
             }
             break;
+        case WTI_STATUS:
+            switch (nIndex)
+            {
+                case STA_CONTEXTS:
+                {
+                    FIXME("STA_CONTEXTS unhandled\n");
+                    rc = 1;
+                    break;
+                }
+                case STA_SYSCTXS:
+                {
+                    FIXME("STA_SYSCTXS unhandled\n");
+                    rc = 1;
+                    break;
+                }
+                case STA_PKTRATE:
+                {
+                    FIXME("STA_PKTRATE unhandled\n");
+                    rc = 0;
+                    break;
+                }
+                case STA_PKTDATA:
+                {
+                    FIXME("STA_PKTDATA unhandled\n");
+                    rc = 0;
+                    break;
+                }
+                case STA_MANAGERS:
+                {
+                    FIXME("STA_MANAGERS unhandled\n");
+                    rc = 1;
+                    break;
+                }
+                case STA_SYSTEM:
+                {
+                    FIXME("STA_SYSTEM unhandled\n");
+                    rc = TRUE;
+                    break;
+                }
+                case STA_BUTTONUSE:
+                {
+                    FIXME("STA_BUTTONUSE unhandled\n");
+                    rc = 0;
+                    break;
+                }
+                case STA_SYSBTNUSE:
+                {
+                    FIXME("STA_SYSBTNUSE unhandled\n");
+                    rc = 0;
+                    break;
+                }
+                default:
+                    FIXME("WTI_STATUS unhandled index %i\n",nIndex);
+                    rc = 0;
+            }
+            break;
         case WTI_DEFSYSCTX:
         case WTI_DDCTXS:
         case WTI_DEFCONTEXT:
-- 
1.9.1

