File xrdp-filter-tab-from-mstsc-on-focus-change.patch of Package xrdp

From 0ea5d60ff8fa5c82fbc3038d8fcb7cfcf96439e2 Mon Sep 17 00:00:00 2001
From: Felix Zhang <fezhang@suse.com>
Date: Wed, 16 Apr 2014 15:40:29 +0800
Subject: [PATCH 6/7] xrdp-filter-tab-from-mstsc-on-focus-change.patch

---
 xrdp/xrdp_wm.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/xrdp/xrdp_wm.c b/xrdp/xrdp_wm.c
index 8c36abf..db1eec1 100644
--- a/xrdp/xrdp_wm.c
+++ b/xrdp/xrdp_wm.c
@@ -1215,7 +1215,12 @@ xrdp_wm_key(struct xrdp_wm* self, int device_flags, int scan_code)
            &(self->keymap));
       if (ki != 0)
       {
-        self->mm->mod->mod_event(self->mm->mod, msg, ki->chr, ki->sym,
+        if ((scan_code == 15) && (device_flags == KBD_FLAG_UP))
+        {
+          g_writeln("Don't track Tab keys from Windows when Max/Min or Move the rdp client window.\n");
+        }
+        else
+          self->mm->mod->mod_event(self->mm->mod, msg, ki->chr, ki->sym,
                                  scan_code, device_flags);
       }
     }
-- 
1.7.12.4
openSUSE Build Service is sponsored by