From unknown Fri Jun 20 07:25:02 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#75674 <75674@debbugs.gnu.org> To: bug#75674 <75674@debbugs.gnu.org> Subject: Status: 31.0.50; Random keyboard input detected when clicking with mouse in Emacs Reply-To: bug#75674 <75674@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:25:02 +0000 retitle 75674 31.0.50; Random keyboard input detected when clicking with mo= use in Emacs reassign 75674 emacs submitter 75674 Bartosz Kaczy=C5=84ski severity 75674 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 19 14:13:19 2025 Received: (at submit) by debbugs.gnu.org; 19 Jan 2025 19:13:19 +0000 Received: from localhost ([127.0.0.1]:47474 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tZajX-00040Z-1N for submit@debbugs.gnu.org; Sun, 19 Jan 2025 14:13:19 -0500 Received: from lists.gnu.org ([2001:470:142::17]:39334) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tZajU-00040J-Je for submit@debbugs.gnu.org; Sun, 19 Jan 2025 14:13:17 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tZajN-0007v3-Am for bug-gnu-emacs@gnu.org; Sun, 19 Jan 2025 14:13:09 -0500 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tZajK-0007Qm-5P for bug-gnu-emacs@gnu.org; Sun, 19 Jan 2025 14:13:08 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id C1AF9240027 for ; Sun, 19 Jan 2025 20:13:01 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1737313982; bh=WyZjwBafLyGtNTEGhPnxguvLfXcQVEbdjxT9MA7+VyI=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type:From; b=VzY19GZmzP83pu8feNFdZsYISDf9WMgzsiwhLM4vkENPkhC9EDv7kp7oe96WJETXN /4BiR4E5U0GSF4ZygfKhsMVSpRQ20qmkQSUn2alOEMSXObhLm2Y3PBbz+gsittmdsI HRpDjiP4kwhvIbh/AewqEH8ERGhBLll9iLHI2YYdqmvQt/aElTacjuyJxtIY2sA4uI /w5zzhBYmYvCCibmXBw5wf59o4EA5h2HqBRHi0h/igmGj7k6NJed1VwLc2SoOhUc77 2addxkIikEVazXSGfY0uQFoqccFkMZBbngq8ddguGsBkfvmHAruR5QiJ63Idfqnpa8 a0sstyS9sHMtw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4YbjmD6gN2z9rxT for ; Sun, 19 Jan 2025 20:13:00 +0100 (CET) From: =?utf-8?Q?Bartosz_Kaczy=C5=84ski?= To: bug-gnu-emacs@gnu.org Subject: 31.0.50; Random keyboard input detected when clicking with mouse in Emacs X-Debbugs-Cc: Date: Sun, 19 Jan 2025 19:12:58 +0000 Message-ID: <87ikqasjlx.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=bkaczynski@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -53 X-Spam_score: -5.4 X-Spam_bar: ----- X-Spam_report: (-5.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=-1, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Hello, I have encountered an issue in Emacs where random keyboard input (e.g., single letters like d or repeated ones like cc) is inserted into the current buffer when I click inside the Emacs window with the mouse and while switching focus between Emacs and other application (e.g. browser or file manager). This behavior occurs inconsistently but is reproducible over time. I added the following diagnostic function to my configuration to capture input events: (defun my/debug-input-event () (interactive) (let ((event (read-event))) (message "Event detected: %s" event) (push event unread-command-events))) (global-set-key [mouse-1] 'my/debug-input-event) Using this code, I observed the following log in the *Messages* buffer when the issue occurred: Event detected: 100 For context, ASCII value 100 corresponds to the letter d. However, other times, I observe different letters like cc. I am using openSUSE Tumbleweed GNU/Linux distro on KDE Wayland system and running Emacs as a daemon and connecting via emacsclient. In GNU Emacs 31.0.50 (build 2, x86_64-suse-linux-gnu, GTK+ Version 3.24.43, cairo version 1.18.2) Windowing system distributor 'SUSE LINUX', version 11.0.12401004 System Description: openSUSE Tumbleweed Configured using: 'configure --disable-build-details --without-pop --with-mailutils --without-hesiod --with-gameuser=:games --with-kerberos --with-kerberos5 --with-file-notification=inotify --with-modules --enable-autodepend --with-gpm --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --localstatedir=/var --sharedstatedir=/var/lib --libexecdir=/usr/libexec --with-file-notification=yes --libdir=/usr/lib64 --enable-locallisppath=/usr/share/emacs/31.0.50/site-lisp:/usr/share/emacs/site-lisp --with-x --with-xim --with-sound --with-xpm --with-jpeg --with-tiff --with-gif --with-png --with-rsvg --with-dbus --with-webp --with-xft --with-imagemagick --with-tree-sitter --with-x-toolkit=gtk3 --without-pgtk --with-toolkit-scroll-bars --x-includes=/usr/include --x-libraries=/usr/lib64 --with-libotf --with-m17n-flt --with-cairo --with-native-compilation --build=x86_64-suse-linux --with-dumping=pdumper 'CFLAGS=-O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -g -D_GNU_SOURCE -DGDK_DISABLE_DEPRECATION_WARNINGS -DGLIB_DISABLE_DEPRECATION_WARNINGS -pipe -Wno-pointer-sign -Wno-unused-variable -Wno-unused-label -DPDMP_BASE='\''"emacs-gtk"'\''' LDFLAGS=-Wl,-O2' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ IMAGEMAGICK JPEG LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP X11 XDBE XIM XINPUT2 XPM GTK3 ZLIB Important settings: value of $LC_CTYPE: en_US.UTF-8 value of $LC_NUMERIC: POSIX value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Group Minor modes in effect: server-mode: t global-company-mode: t company-mode: t doom-modeline-mode: t yas-global-mode: t yas-minor-mode: t which-key-mode: t smartparens-global-mode: t global-diff-hl-mode: t savehist-mode: t recentf-mode: t override-global-mode: t gnus-topic-mode: t gnus-undo-mode: t fido-vertical-mode: t icomplete-vertical-mode: t icomplete-mode: t fido-mode: t save-place-mode: t global-auto-revert-mode: t global-hl-line-mode: t delete-selection-mode: t minibuffer-depth-indicate-mode: t tooltip-mode: t global-eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t minibuffer-regexp-mode: t buffer-read-only: t column-number-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: /home/bartk/.emacs.d/elpa/which-key-20240620.2145/which-key hides /usr/share/emacs/31.0.50/lisp/which-key /home/bartk/.emacs.d/elpa/ef-themes-1.9.0.0.20250110.75248/theme-loaddefs hides /usr/share/emacs/31.0.50/lisp/theme-loaddefs /usr/share/emacs/site-lisp/compat hides /usr/share/emacs/31.0.50/lisp/emacs-lisp/compat Features: (shadow sort gnus-cite mail-extr emacsbug gnus-demon nndraft nnmh utf-7 epa-file network-stream nsm nnfolder nnnil gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg nntp gnus-cache go-mode find-file ffap shortdoc help-fns radix-tree org-agenda org-indent visual-fill-column image-file image-converter oc-basic disp-table org-element org-persist org-id org-element-ast inline avl-tree ol-eww eww vtable mule-util url-queue mm-url ol-rmail ol-mhe ol-irc ol-info ol-gnus nnselect ol-docview doc-view jka-compr image-mode exif ol-bibtex bibtex ol-bbdb ol-w3m ol-doi org-link-doi misearch multi-isearch face-remap pulse color server display-fill-column-indicator display-line-numbers checkdoc lisp-mnt flymake compile company-oddmuse company-keywords company-etags etags fileloop generator xref company-gtags company-dabbrev-code company-dabbrev company-files company-clang company-capf company-cmake company-semantic company-template company-bbdb company doom-modeline doom-modeline-segments doom-modeline-env doom-modeline-core comp comp-cstr warnings comp-run comp-common shrink-path f s nerd-icons nerd-icons-faces nerd-icons-data nerd-icons-data-mdicon nerd-icons-data-flicon nerd-icons-data-codicon nerd-icons-data-devicon nerd-icons-data-sucicon nerd-icons-data-wicon nerd-icons-data-faicon nerd-icons-data-powerline nerd-icons-data-octicon nerd-icons-data-pomicon nerd-icons-data-ipsicon init yasnippet which-key smartparens advice loadhist dash exec-path-from-shell diff-hl log-view log-edit add-log pcvs-util vc-dir ewoc vc vc-dispatcher diff-mode track-changes savehist recentf tree-widget init-org ob-C cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs ob-plantuml ob-python python project compat compat-30 pcase ob-shell cl-extra edmacro kmacro bind-key easy-mmode init-gnus gnus-topic gnus-icalendar org-capture org-refile org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-src sh-script smie treesit executable ob-comint org-pcomplete org-list org-footnote org-faces org-entities noutline outline org-version ob-emacs-lisp ob-core ob-eval org-cycle org-table ol org-fold org-fold-core org-keys oc org-loaddefs thingatpt find-func org-compat org-macs gnus-art mm-uu mml2015 mm-view mml-smime smime gnutls dig gnus-sum shr pixel-fill kinsoku url-file svg dom gnus-group gnus-undo gnus-start gnus-dbus dbus xml gnus-cloud nnimap nnmail mail-source utf7 nnoo gnus-spec gnus-int gnus-range message sendmail yank-media puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg rfc6068 epg-config mailabbrev mailheader gnus-win gnus nnheader gnus-util text-property-search mail-utils range wid-edit mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr gmm-utils icalendar diary-lib diary-loaddefs cal-menu calendar cal-loaddefs icomplete auth-source-pass saveplace tramp-cache time-stamp tramp-sh tramp trampver tramp-integration files-x tramp-message help-mode tramp-compat shell pcomplete comint ansi-osc ring parse-time iso8601 time-date format-spec ansi-color tramp-loaddefs autorevert filenotify hl-line delsel mb-depth cus-load ef-elea-dark-theme ef-themes finder-inf 0blayout-autoloads 0x0-autoloads ace-window-autoloads avy-autoloads chatgpt-shell-autoloads company-autoloads devdocs-autoloads diff-hl-autoloads doom-modeline-autoloads ef-themes-autoloads exec-path-from-shell-autoloads flymake-ruff-autoloads go-mode-autoloads jenkinsfile-mode-autoloads groovy-mode-autoloads json-mode-autoloads json-snatcher-autoloads markdown-mode-autoloads mathjax-autoloads multiple-cursors-autoloads nerd-icons-autoloads nov-autoloads esxml-autoloads kv-autoloads pass-autoloads password-store-otp-autoloads password-store-autoloads shell-maker-autoloads shrink-path-autoloads f-autoloads s-autoloads smartparens-autoloads dash-autoloads systemd-autoloads rx visual-fill-column-autoloads which-key-autoloads info with-editor-autoloads yaml-mode-autoloads yasnippet-autoloads package browse-url xdg url url-proxy url-privacy url-expand url-methods url-history url-cookie generate-lisp-file url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs icons password-cache json subr-x map byte-opt gv bytecomp byte-compile url-vars cl-loaddefs cl-lib ispell early-init rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd touch-screen tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo gtk x-toolkit xinput2 x multi-tty move-toolbar make-network-process tty-child-frames native-compile emacs) Memory information: ((conses 16 690563 563638) (symbols 48 45812 30) (strings 32 232349 149044) (string-bytes 1 5789622) (vectors 16 75590) (vector-slots 8 744362 354782) (floats 8 668 8455) (intervals 56 1097 1092) (buffers 992 22)) From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 20 07:07:47 2025 Received: (at 75674) by debbugs.gnu.org; 20 Jan 2025 12:07:47 +0000 Received: from localhost ([127.0.0.1]:49246 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tZqZG-0005N2-Vf for submit@debbugs.gnu.org; Mon, 20 Jan 2025 07:07:47 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:60544) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tZqZD-0005Mm-VA for 75674@debbugs.gnu.org; Mon, 20 Jan 2025 07:07:44 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tZqZ7-0008DW-E2; Mon, 20 Jan 2025 07:07:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=7fekuIzmq/LFTFpECcwcpUmO4r6fperXNfnlUeDtjC8=; b=Jne3MT1zjrU1D4giTU23 hWUI4IuJtJfT52FxQdvX4voH7OdKepS4WC/1cjf9kKHTW8874BQ5Bvzf1UnrLWgFVaMle5IkG41fw P21oqejBD2mn0Gr/2+6hyLftU5EiJoxRwqVhucKjS20Og9pv6CtOZwfLU/dYtcn99MYooOuXjwH25 kepx4UUfQHgiraRwqP/i47YXYnQ7sMSfRsnU+/9ECsZzKcarXeTkvpuU70AMkB+LIYV6cKo+pZnj5 OoVvyilUUguDni0GwkVtTMN6reEhgCxprdMzW5ws7I6ZZdbRjikaeRbIFd+FwvYCh10n8CvoBJCUw miMHLsgK4VQQ/Q==; Date: Mon, 20 Jan 2025 14:07:32 +0200 Message-Id: <86msfl7kor.fsf@gnu.org> From: Eli Zaretskii To: Bartosz =?utf-8?Q?Kaczy=C5=84ski?= In-Reply-To: <87ikqasjlx.fsf@posteo.net> (message from Bartosz =?utf-8?Q?K?= =?utf-8?Q?aczy=C5=84ski?= on Sun, 19 Jan 2025 19:12:58 +0000) Subject: Re: bug#75674: 31.0.50; Random keyboard input detected when clicking with mouse in Emacs References: <87ikqasjlx.fsf@posteo.net> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 75674 Cc: 75674@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Bartosz Kaczyński > Date: Sun, 19 Jan 2025 19:12:58 +0000 > > > I have encountered an issue in Emacs where random keyboard input (e.g., > single letters like d or repeated ones like cc) is inserted into the > current buffer when I click inside the Emacs window with the mouse and > while switching focus between Emacs and other application (e.g. browser > or file manager). This behavior occurs inconsistently but is > reproducible over time. Is this on GUI frame or on TTY frame? > I added the following diagnostic function to my configuration to capture > input events: > > (defun my/debug-input-event () > (interactive) > (let ((event (read-event))) > (message "Event detected: %s" event) > (push event unread-command-events))) > > (global-set-key [mouse-1] 'my/debug-input-event) > > Using this code, I observed the following log in the *Messages* buffer > when the issue occurred: > > Event detected: 100 > > For context, ASCII value 100 corresponds to the letter d. However, other > times, I observe different letters like cc. > > I am using openSUSE Tumbleweed GNU/Linux distro on KDE Wayland system and > running Emacs as a daemon and connecting via emacsclient. I cannot think of any reason except some problem with your hardware or system software. From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 22 11:15:01 2025 Received: (at 75674) by debbugs.gnu.org; 22 Jan 2025 16:15:01 +0000 Received: from localhost ([127.0.0.1]:36063 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tadNc-0002NA-SL for submit@debbugs.gnu.org; Wed, 22 Jan 2025 11:15:01 -0500 Received: from mout01.posteo.de ([185.67.36.65]:60921) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tadNa-0002Mq-Ui for 75674@debbugs.gnu.org; Wed, 22 Jan 2025 11:14:59 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 8C735240028 for <75674@debbugs.gnu.org>; Wed, 22 Jan 2025 17:14:50 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1737562490; bh=jNVUSsMTPQuCXlGXlWclgleeco0T1rknY/3qyQ2tQOU=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:From:Content-Type: Content-Transfer-Encoding:From; b=Ns3jkdBMoIy/GB1tTK9Jr3uFPe5ND/E6OQDAhdYQYIuHRg24qh74i+hcxlEI8Ha9h XBfgb8SGcNT5htmzkthu59XoWVUUHhT4kRABwllcOLN+KlbQ5CEy1cixau9teRwjkj YLGesJ1oCsLJ0dn89xulQ1lg5+R06H6ip5Cd4Zf9wvSjqPKZkPPcFgI7KrapxJH1Qq EfNtS30ZYV/tVlZ2WoU/vrqY0W0EN8npORi89uEOm7XfHpqSXhWNnyV16eWvzpE2dZ qjiNxRaUEe4p/vNs9Ir5AI0rQLMLSmEg+QMFY/FPWZMlYiGCMGrA1tzn4x79eBp+vt fbjQLOd2Tvdgg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4YdTgF54gVz6v0D; Wed, 22 Jan 2025 17:14:49 +0100 (CET) Message-ID: <0b5da8b0-b126-457c-aa1d-0c5854fd177a@posteo.net> Date: Wed, 22 Jan 2025 16:14:48 +0000 MIME-Version: 1.0 Subject: Re: bug#75674: 31.0.50; Random keyboard input detected when clicking with mouse in Emacs To: Eli Zaretskii References: <87ikqasjlx.fsf@posteo.net> <86msfl7kor.fsf@gnu.org> Content-Language: en-US, pl From: =?UTF-8?Q?Bartosz_Kaczy=C5=84ski?= In-Reply-To: <86msfl7kor.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 75674 Cc: 75674@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) On 1/20/25 13:07, Eli Zaretskii wrote: >> From: Bartosz Kaczyński >> Date: Sun, 19 Jan 2025 19:12:58 +0000 >> >> >> I have encountered an issue in Emacs where random keyboard input (e.g., >> single letters like d or repeated ones like cc) is inserted into the >> current buffer when I click inside the Emacs window with the mouse and >> while switching focus between Emacs and other application (e.g. browser >> or file manager). This behavior occurs inconsistently but is >> reproducible over time. > > Is this on GUI frame or on TTY frame? GUI frame > >> I added the following diagnostic function to my configuration to capture >> input events: >> >> (defun my/debug-input-event () >> (interactive) >> (let ((event (read-event))) >> (message "Event detected: %s" event) >> (push event unread-command-events))) >> >> (global-set-key [mouse-1] 'my/debug-input-event) >> >> Using this code, I observed the following log in the *Messages* buffer >> when the issue occurred: >> >> Event detected: 100 >> >> For context, ASCII value 100 corresponds to the letter d. However, other >> times, I observe different letters like cc. >> >> I am using openSUSE Tumbleweed GNU/Linux distro on KDE Wayland system and >> running Emacs as a daemon and connecting via emacsclient. > > I cannot think of any reason except some problem with your hardware or > system software. Thank you for your response. While I understand that this could be caused by hardware or system software, I would like to ask for guidance in diagnosing whether the issue might caused from my Emacs configuration or related software (e.g., the windowing system, input handling in Emacs, etc.). From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 22 11:42:43 2025 Received: (at 75674) by debbugs.gnu.org; 22 Jan 2025 16:42:43 +0000 Received: from localhost ([127.0.0.1]:36128 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tadoQ-0003t5-KO for submit@debbugs.gnu.org; Wed, 22 Jan 2025 11:42:42 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:43984) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tadoN-0003sj-IV for 75674@debbugs.gnu.org; Wed, 22 Jan 2025 11:42:40 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tadoH-00043v-9J; Wed, 22 Jan 2025 11:42:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=mwFA+AhbtDeXjLixmtA9ewhd8UO6kqH9nQjjABo5910=; b=IlMmyr9ZEspL1ri1k1cy VvD8+JrA4UeIG6+2vMVPVlvSUXIZiy74a/awWVFjUOXyqn92MQ02EMztf9imb/sqDndFTbEYUF0+o dF1JqgLrk8vQWzlNi6QmqaDq5DJ/NddBAN+VaBzQNdxJyfjp9uwyZu0wCtJMI7PZrn5aSGiNvbCoW axvczUNoEToFnqySlsmemJcOos8PFywifBiKVJItZj0G0DiX89jgplIeYM7OGqqVz4nMCT3aacc/r Clqv4NhWHoUIMhVetfs5V450NvmzSBQGnnoh6JiQlE4FuM6YC7VuA8mGBbCRmDZEHlvgISdls7SPC ltLoJvCjRYpmoA==; Date: Wed, 22 Jan 2025 18:42:28 +0200 Message-Id: <86cyge3imj.fsf@gnu.org> From: Eli Zaretskii To: Bartosz =?utf-8?Q?Kaczy=C5=84ski?= In-Reply-To: <0b5da8b0-b126-457c-aa1d-0c5854fd177a@posteo.net> (message from Bartosz =?utf-8?Q?Kaczy=C5=84ski?= on Wed, 22 Jan 2025 16:14:48 +0000) Subject: Re: bug#75674: 31.0.50; Random keyboard input detected when clicking with mouse in Emacs References: <87ikqasjlx.fsf@posteo.net> <86msfl7kor.fsf@gnu.org> <0b5da8b0-b126-457c-aa1d-0c5854fd177a@posteo.net> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 75674 Cc: 75674@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Wed, 22 Jan 2025 16:14:48 +0000 > Cc: 75674@debbugs.gnu.org > From: Bartosz Kaczyński > > >> Event detected: 100 > >> > >> For context, ASCII value 100 corresponds to the letter d. However, other > >> times, I observe different letters like cc. > >> > >> I am using openSUSE Tumbleweed GNU/Linux distro on KDE Wayland system and > >> running Emacs as a daemon and connecting via emacsclient. > > > > I cannot think of any reason except some problem with your hardware or > > system software. > > Thank you for your response. While I understand that this could be > caused by hardware or system software, I would like to ask for guidance > in diagnosing whether the issue might caused from my Emacs configuration > or related software (e.g., the windowing system, input handling in > Emacs, etc.). Maybe something special/unusual in how mouse events work on that system? or some input method? I'm really stabbing in the dark here, because I cannot think of any way a mouse click could produce a keyboard key or a character event.