X2Go Bug report logs - #1369
Keys do not release when using Emacs in X2GO Client

version graph

Package: x2goclient; Maintainer for x2goclient is X2Go Developers <x2go-dev@lists.x2go.org>; Source for x2goclient is src:x2goclient.

Reported by: Yan Zhang <kriszhyan@gmail.com>

Date: Mon, 28 Jan 2019 06:00:04 UTC

Severity: normal

Found in version 4.1.2.0

Full log


Message #70 received at 1369@bugs.x2go.org (full text, mbox, reply):

Received: (at 1369) by bugs.x2go.org; 14 Jan 2021 16:41:18 +0000
From andreas@ehliar.se  Thu Jan 14 17:41:16 2021
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
	ymir.das-netzwerkteam.de
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=3.0 tests=BAYES_50,HTML_MESSAGE,
	SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2
Received: from smtpout-51.fbg1.glesys.net (smtpout-51.fbg1.glesys.net [IPv6:2a02:751:100:2::51])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTPS id C12D65DAC1
	for <1369@bugs.x2go.org>; Thu, 14 Jan 2021 17:41:15 +0100 (CET)
Received: from mail.glesys.se (185-39-145-142-static.serverhotell.net [185.39.145.142])
	by mail-halon-02.fbg1.glesys.net (Halon) with ESMTPA
	id 4ee5ffff-5687-11eb-b529-ebc997f73d07;
	Thu, 14 Jan 2021 17:41:10 +0100 (CET)
Mime-Version: 1.0
Date: Thu, 14 Jan 2021 16:41:10 +0000
Content-Type: multipart/alternative;
 boundary="----=_Part_287_295559224.1610642470"
Message-ID: <49edd52e90648791d560769cf7625f94@mail.glesys.se>
X-Mailer: Afterlogic webmail client
From: "Andreas Ehliar - Emacs related" <emacs@ehliar.se>
Subject: Re: [X2Go-Dev] Bug#1369: Bug#1369: Keys do not release when using
 Emacs in X2GO Client
To: 1369@bugs.x2go.org
X-Priority: 3 (Normal)
[Message part 1 (text/plain, inline)]
I may have found a hint of the root cause of this bug (tested with emacs 27.1).
I believe that it is related to clipboard updating. If I disable clipboard updating from emacs the stuck key behavior goes away.
Note that for every line that we widen the selection in emacs the clipboard is automatically updated. (I proved this by repeatedly pressing ctrl-v in notepadwhile emacs exhibited the stuck key behavior and each time the pasted text grew.)
If it turns out that emacs and/or x2go prioritizes clipboard updates before key-up events we may end up in a race where the clipboard takes longer to update than it takes emacs to scroll the cursor one line and enlarge the clipboard even further.
To play around with this you can redefine the gui-set-selection function as a nop in emacs to disable the updating. (This is not a workaround though since it completely disables copying from an emacs window. A better work-around may be to add some sort of rate-limit to this function but I haven't played around with that yet.)
(defun gui-set-selection (type data))
/Andreas
[Message part 2 (text/html, inline)]

Send a report that this bug log contains spam.


X2Go Developers <owner@bugs.x2go.org>. Last modified: Thu Apr 25 00:44:03 2024; Machine Name: ymir.das-netzwerkteam.de

X2Go Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.