Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Psheng
xrdp
xrdp-filter-tab-from-mstsc-on-focus-change.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File xrdp-filter-tab-from-mstsc-on-focus-change.patch of Package xrdp
--- xrdp-0.9.20/xrdp/xrdp_wm.c 2022-09-15 13:52:04.000000000 +0800 +++ xrdp-0.9.20/xrdp/xrdp_wm.c.orig 2023-06-24 00:53:51.965983360 +0800 @@ -1506,6 +1506,7 @@ { int msg; struct xrdp_key_info *ki; + static int last_key_status = -1; /*g_printf("count %d\n", self->key_down_list->count);*/ scan_code = scan_code % 128; @@ -1558,8 +1559,12 @@ if (ki != 0) { - self->mm->mod->mod_event(self->mm->mod, msg, ki->chr, ki->sym, - scan_code, device_flags); + if ((last_key_status != WM_KEYDOWN) && (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); } } } @@ -1569,6 +1574,7 @@ msg, scan_code, device_flags); } + last_key_status = msg; return 0; }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor