From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: joakim@verona.se Newsgroups: gmane.emacs.help Subject: numpad doesnt seem to send kp events in wayland Date: Tue, 22 Oct 2024 01:17:07 +0200 Message-ID: <874j55qc5o.fsf@tanaka.verona.se> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22832"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 22 01:18:03 2024 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1t31ez-0005jk-0N for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 22 Oct 2024 01:18:01 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t31eL-0002bx-TB; Mon, 21 Oct 2024 19:17:22 -0400 Original-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 1t31eJ-0002bo-0X for help-gnu-emacs@gnu.org; Mon, 21 Oct 2024 19:17:20 -0400 Original-Received: from smtp.outgoing.loopia.se ([93.188.3.37]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t31eG-0007sp-Gf for help-gnu-emacs@gnu.org; Mon, 21 Oct 2024 19:17:18 -0400 Original-Received: from s807.loopia.se (localhost [127.0.0.1]) by s807.loopia.se (Postfix) with ESMTP id AC96B30A86 for ; Tue, 22 Oct 2024 01:17:09 +0200 (CEST) Original-Received: from s981.loopia.se (unknown [172.22.191.5]) by s807.loopia.se (Postfix) with ESMTP id 8EB1830698 for ; Tue, 22 Oct 2024 01:17:09 +0200 (CEST) Original-Received: from s470.loopia.se (unknown [172.22.191.6]) by s981.loopia.se (Postfix) with ESMTP id 8D63122B164B for ; Tue, 22 Oct 2024 01:17:09 +0200 (CEST) X-Virus-Scanned: amavisd-new at amavis.loopia.se Authentication-Results: s470.loopia.se (amavisd-new); dkim=neutral reason="invalid (public key: not available)" header.d=verona.se Original-Received: from s980.loopia.se ([172.22.191.5]) by s470.loopia.se (s470.loopia.se [172.22.190.34]) (amavisd-new, port 10024) with LMTP id yz4Xh1dTm03v for ; Tue, 22 Oct 2024 01:17:08 +0200 (CEST) X-Loopia-Auth: user X-Loopia-User: smtpuser@verona.se X-Loopia-Originating-IP: 193.234.148.196 Original-Received: from tanaka.verona.se (unknown [193.234.148.196]) (Authenticated sender: smtpuser@verona.se) by s980.loopia.se (Postfix) with ESMTPSA id E2100220161B for ; Tue, 22 Oct 2024 01:17:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=verona.se; s=loopiadkim1720028670; t=1729552628; bh=Prtg5sQbQE2905pEcpO4w42CXplHADn+k6w3YCoDTDU=; h=From:To:Subject:Date; b=xKb0t92aIDmc/GmRaoG6ihpbCxGGl6S1VvPdqlMqVhHIGrMi3VSYi+jIh0j07s2Ee mXJy3NssKLSiS3+UsSf0k1SL1aq6rv/MS96/mwTdDEKxbRon+sCfxid1rCDHvU+I/c pW8drLvOv8hyhWR7oSUUtazASDYTggBe0Cdy3fZBsevqOtczCndxwO2IpuhEw3cmkg kbBPywarQzBDkc1WVxpHRv9mJYrx26Rjyu6qiIqO8UjJ244mA/FVUcKQG3YtsKFaNp hpzwbIP4CSiM0SIHQswnCYmTt4OW2vAw83ylpHQcZb65UJ/jqno6hVmCV8yBKAcoAO VAG55NAftiICw== Received-SPF: pass client-ip=93.188.3.37; envelope-from=joakim@verona.se; helo=smtp.outgoing.loopia.se X-Spam_score_int: -33 X-Spam_score: -3.4 X-Spam_bar: --- X-Spam_report: (-3.4 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-1.699, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:148207 Archived-At: Hello, I used to use a numpad to bind to do things in emacs. This used to work really well on the i3wm window manager and a gtk emacs build. Then I bought a nice new framework laptop which has a hidpi screen, so I switched to using the sway wm, and emacs-pgtk. Now the numpad no longer sends keypad events in a way that emacs recognizes, instead just plain numbers are received. for some reason i3 wont work anymore so I dont have anything to compare with. Is this just me or is this a well known problem? below is an example of the code I use, but normally I just test with c-h k to see which key emacs receives. I also tried xev, and there it seems I get kp events, at least under xwayland I guess. (define-key cider-mode-map (kbd "") 'sylt-stop) (define-key cider-mode-map (kbd "") 'sylt-play-metro) (defmacro sylt-song-event-map-key (key num) `(define-key cider-mode-map (kbd ,key) (lambda () (interactive) (cider-nrepl-sync-request:eval ,(concat "(sylt.core/song-event \"" num "\")"))))) (sylt-song-event-map-key "" "init") (sylt-song-event-map-key "" "1") -- Joakim Verona joakim@verona.se