From unknown Thu Mar 28 18:46:45 2024 X-Loop: owner@bugs.x2go.org Subject: Bug#1172: Fwd: Modifier Keys not working as expected Reply-To: Ulrich Sibiller , 1172@bugs.x2go.org Resent-From: Ulrich Sibiller Original-Sender: ulrich.sibiller@gmail.com Resent-To: x2go-dev@lists.x2go.org Resent-CC: X2Go Developers X-Loop: owner@bugs.x2go.org Resent-Date: Tue, 26 Sep 2017 12:15:02 +0000 Resent-Message-ID: Resent-Sender: owner@bugs.x2go.org X-X2Go-PR-Message: followup 1172 X-X2Go-PR-Package: nx-libs X-X2Go-PR-Keywords: Received: via spool by 1172-submit@bugs.x2go.org id=B1172.15064280776925 (code B ref 1172); Tue, 26 Sep 2017 12:15:02 +0000 Received: (at 1172) by bugs.x2go.org; 26 Sep 2017 12:14:37 +0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on ymir.das-netzwerkteam.de X-Spam-Level: X-Spam-Status: No, score=0.8 required=3.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FROM,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.1 Received: from localhost (localhost [127.0.0.1]) by ymir.das-netzwerkteam.de (Postfix) with ESMTP id 73D095DACF for <1172@bugs.x2go.org>; Tue, 26 Sep 2017 14:14:33 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at ymir.das-netzwerkteam.de Received: from ymir.das-netzwerkteam.de ([127.0.0.1]) by localhost (ymir.das-netzwerkteam.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0SwgRxCZxl3e for <1172@bugs.x2go.org>; Tue, 26 Sep 2017 14:14:28 +0200 (CEST) Received: from mail-ua0-x235.google.com (mail-ua0-x235.google.com [IPv6:2607:f8b0:400c:c08::235]) by ymir.das-netzwerkteam.de (Postfix) with ESMTPS id 612505DA81 for <1172@bugs.x2go.org>; Tue, 26 Sep 2017 14:14:28 +0200 (CEST) Received: by mail-ua0-x235.google.com with SMTP id c27so6303352uah.2 for <1172@bugs.x2go.org>; Tue, 26 Sep 2017 05:14:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to; bh=FnA0j2BUFi0FIB32kNslOgH96BbaYrG6UtfIi4DpnDc=; b=Hfqc/ftAaXlG2iueiXIpYdI21RT5zYIxJO74PJ32r0VJHf4TwANw0kPFNFjsPYbRBO zcUFNI6lM/P2fjGL01CFSasOZbw5Ypb+ifw7y8mvpaTyDzspNOABlkCev9Em3JfbckA/ jejRpy+jBwkzx7DWtOM19qc9OrE25jtfIfafnIF0vcn8KHjYV2wgSIZVmYUgot8MNJGE fx5K/uaYpvDpJmp+fguEL8201U38PK92J+MxEODBa//NH7+1dybyUlv4v0N19G+RpRRL cBl8m5sJw3QaYQmmX/31YluKWTDuK1ukVEStpZV7MWY+wphChMMjG3Da+k+sBmD1UPLh hqlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to; bh=FnA0j2BUFi0FIB32kNslOgH96BbaYrG6UtfIi4DpnDc=; b=Em4y568HQXsCTY8rsMg/OJMT8Ez+wVnhGaXHv2VJTMqMI00qtqkit5XQzabclyGGFl Fu7Cafz63WlVXj1ac36aR2zkaNijfBZ0D8qK+v6dwYODsnk3XHBwLqnWuzEf+LLRvclc tAeB6FTS32qW+g9PLcHTIPjMEuU3OyfoemTfagOozcRqSOOp4+aOOpChxJ/xFOYKbfjG dczE4HuJzKH2oEDnd4xnc0mW0G7pOuxGaaL+LbD7ao/Xvmnsko5wE6EN/hMlITTc1Mop NFtYDpFU68kCiMqYEm6hxWelwy3CJHWVMetwfqGsDVtUMzU2HSvpuNTXLT+QG1Ffdb63 avWQ== X-Gm-Message-State: AHPjjUgnIp2TNct+2UKYcrfuZti7zHEw/H7n1DhRPJOza1G/Z75EAass /ZYoxvs4vQ/bqAReoCgbFm6AOM7j+PSU7wF6WdME/g== X-Google-Smtp-Source: AOwi7QAEcBSPF3wDqndOXaHIgcEg84LDLM7gj9+XUFfUc4DaJC79E2zXwYsiXWst2ncfyResmI9aLFn8uXz+7nbsjWw= X-Received: by 10.176.21.109 with SMTP id p42mr10427531uae.127.1506428067201; Tue, 26 Sep 2017 05:14:27 -0700 (PDT) MIME-Version: 1.0 Sender: ulrich.sibiller@gmail.com Received: by 10.176.90.202 with HTTP; Tue, 26 Sep 2017 05:14:06 -0700 (PDT) In-Reply-To: References: <9c4f4c5c-0338-cc06-d057-6eec833e8190@baur-itcs.de> From: Ulrich Sibiller Date: Tue, 26 Sep 2017 14:14:06 +0200 X-Google-Sender-Auth: xnpgZxleToEptK_pSfuAiGBBhO0 Message-ID: To: 1172@bugs.x2go.org Content-Type: text/plain; charset="UTF-8" On Tue, Sep 26, 2017 at 1:57 PM, Stefan Baur wrote: > Am 26.09.2017 um 12:20 schrieb Ulrich Sibiller: > >>> A certain application requires the following keypresses: >> >> Is the spplication's name secret? > > No, but closed-source/commercial/proprietary. > > >>> - Hold down ctrl, shift and alt >>> - while holding them down, press the space bar >>> - let go of shift and space bar, keep holding down ctrl and alt >> >> leaving you with ctrl-alt > > In theory, yes. But somehow the shift and space bar being pressed and > released first tell it to "keep" the keypresses to itself, rather than > sending them and the function key on to the X Server. No, it's the other way round. The X server gets the keypresses and passes them on to the client(s). This application probably instructs the xserver to send these keys only to the app and not to anyone else (and neither interpret them itself). https://tronche.com/gui/x/xlib/input/XGrabKeyboard.html states this: The XGrabKeyboard() function actively grabs control of the keyboard and generates FocusIn and FocusOut events. Further key events are reported only to the grabbing client. [...] If the keyboard_mode argument is GrabModeAsync, keyboard event processing continues as usual. If the keyboard is currently frozen by this client, then processing of keyboard events is resumed. If the keyboard_mode argument is GrabModeSync , the state of the keyboard (as seen by client applications) appears to freeze, and the X server generates no further keyboard events until the grabbing client issues a releasing XAllowEvents() call or until the keyboard grab is released. Actual keyboard changes are not lost while the keyboard is frozen; they are simply queued in the server for later processing. >> But for analysis we'd need the application to see what is doing. > > They offer a time-limited trial version [0], but IIRC, you still need to > register somewhere with your E-Mail address (and they'll send you promo > E-Mails during the trial phase, and possibly even afterwards). > > >> For the records: I think it is nx-libs so we should open an issue >> there. But I am not sure if we will be able to fix that at all. > > As I said, feel free to do so - you're way more knowledgeable about the > code involved than I am. I can do that eventually. Uli