From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Madhu Newsgroups: gmane.emacs.devel Subject: Re: Possible XInput2 cursor bug ? Date: Sun, 12 Dec 2021 20:15:03 +0530 (IST) Message-ID: <20211212.201503.992688684492082768.enometh@meer.net> References: <20211212.104121.676618396851953065.enometh@meer.net> <871r2i1jfk.fsf@yahoo.com> <87wnkaz7gc.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39183"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: luangruo@yahoo.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Dec 12 15:46:13 2021 Return-path: Envelope-to: ged-emacs-devel@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 1mwQ7A-0009vl-Ip for ged-emacs-devel@m.gmane-mx.org; Sun, 12 Dec 2021 15:46:12 +0100 Original-Received: from localhost ([::1]:55680 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mwQ78-0008Je-7b for ged-emacs-devel@m.gmane-mx.org; Sun, 12 Dec 2021 09:46:10 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:48186) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mwQ6N-0006w9-LV for emacs-devel@gnu.org; Sun, 12 Dec 2021 09:45:23 -0500 Original-Received: from smtp6.ctinetworks.com ([205.166.61.199]:56962) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mwQ6L-0000l5-UJ for emacs-devel@gnu.org; Sun, 12 Dec 2021 09:45:23 -0500 Original-Received: from localhost (unknown [117.193.3.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: enometh@meer.net) by smtp6.ctinetworks.com (Postfix) with ESMTPSA id D3AFC839D9; Sun, 12 Dec 2021 09:45:16 -0500 (EST) In-Reply-To: <87wnkaz7gc.fsf@yahoo.com> X-Mailer: Mew version 6.8 on Emacs 29.0.50 X-ctinetworks-Information: Please contact the ISP for more information X-ctinetworks-MailScanner-ID: D3AFC839D9.A97B2 X-ctinetworks-VirusCheck: Found to be clean X-ctinetworks-Watermark: 1640184320.56001@BKEXNjLvSzIqp8qvhZAO3g Received-SPF: pass client-ip=205.166.61.199; envelope-from=enometh@meer.net; helo=smtp6.ctinetworks.com X-Spam_score_int: -3 X-Spam_score: -0.4 X-Spam_bar: / X-Spam_report: (-0.4 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_SORBS_WEB=1.5, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:281796 Archived-At: * Po Lu <87wnkaz7gc.fsf@yahoo.com> Wrote on Sun, 12 Dec 2021 14:02:43 +0800 > Po Lu writes: > >> Madhu writes: >> >>> Hello, finally got back to this. To recap: the problem is consistently >>> reproducible only with my own window manager. The window manager does >>> "focus follows mouse", and (list focus-follows-mouse >>> mouse-autoselect-window) => (nil nil) [sorry I forgot to mention I tried both settings] >> You have to tell Emacs how your window manager behaves in this regard by >> setting `focus-follows-mouse' appropriately. In this case, it should be >> set to `t'. Please try setting it to that and see if the problem >> persists. > > I reproduced your issue on twm. It should be fixed now, please try > latest master. I couldn't reproduce this on twm myself, but I didn't try the default config for twm. The commit 4f987e189d "Fix last change.* src/xterm.c (x_detect_focus_change): Test against FOCUS_EXPLICIT." works, in that the focus is kept in the window. The next commit 11b2dfca287d "* src/xterm.c (x_detect_focus_change): Fix XI2 focus on GTK builds." reverses the condition in the test! this does not work. I haven't grokked xinput2 at all, so I'm just reporting what I'm seeing:)