From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Jan_Dj=E4rv?= Newsgroups: gmane.emacs.devel Subject: Re: Does Emacs wm-window handling misbehave? Date: Thu, 27 Mar 2008 19:04:17 +0100 Message-ID: <47EBE1A1.5090505@swipnet.se> References: <7dbe73ed0803240637r28959abdj813a6ba15ad72b4f@mail.gmail.com> <47EB4688.6020702@swipnet.se> <7dbe73ed0803270253g39c9671fjd021e8bd18de3bcc@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1206641150 5620 80.91.229.12 (27 Mar 2008 18:05:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 27 Mar 2008 18:05:50 +0000 (UTC) Cc: emacs-devel@gnu.org To: Mathias Dahl Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 27 19:06:20 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JewTR-0002Hp-PF for ged-emacs-devel@m.gmane.org; Thu, 27 Mar 2008 19:05:34 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JewSq-0003qH-3F for ged-emacs-devel@m.gmane.org; Thu, 27 Mar 2008 14:04:36 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JewSl-0003pw-Sk for emacs-devel@gnu.org; Thu, 27 Mar 2008 14:04:31 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JewSj-0003pT-PM for emacs-devel@gnu.org; Thu, 27 Mar 2008 14:04:30 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JewSj-0003pQ-KA for emacs-devel@gnu.org; Thu, 27 Mar 2008 14:04:29 -0400 Original-Received: from av11-1-sn2.hy.skanova.net ([81.228.8.183]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JewSi-00054n-Vw for emacs-devel@gnu.org; Thu, 27 Mar 2008 14:04:29 -0400 Original-Received: by av11-1-sn2.hy.skanova.net (Postfix, from userid 502) id 680E0381A6; Thu, 27 Mar 2008 19:04:27 +0100 (CET) Original-Received: from smtp4-1-sn2.hy.skanova.net (smtp4-1-sn2.hy.skanova.net [81.228.8.92]) by av11-1-sn2.hy.skanova.net (Postfix) with ESMTP id 12CAA37EB7; Thu, 27 Mar 2008 19:04:26 +0100 (CET) Original-Received: from husetbladh.homeip.net (90-231-102-24-no59.tbcn.telia.com [90.231.102.24]) by smtp4-1-sn2.hy.skanova.net (Postfix) with ESMTP id C59CA37E54; Thu, 27 Mar 2008 19:04:25 +0100 (CET) User-Agent: Thunderbird 2.0.0.12 (X11/20080227) In-Reply-To: <7dbe73ed0803270253g39c9671fjd021e8bd18de3bcc@mail.gmail.com> X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:93650 Archived-At: Mathias Dahl skrev: >> Do you have click-to-focus? > > I can focus/select and raise wm-windows by clicking them if that is > what you ask. > > This is strange, because Emacs only sends >> _NET_ACTIVE_WINDOW when x-focus-frame is called. >> We did have an issue with timestamps, but that should have been fixed some >> time ago. > >> Can you explicitly call x-focus-frame and at the same time do a >> tail -f on .xsession-errors and see if the above message comes up? > > Interesting. After I have evaluated the following expression in Emacs > I get the problem right away: > > (x-focus-frame (selected-frame)) > > I need to minimize Emacs using M-z or click some other windows to get > it to behave normally again. > I tried this on Ubuntu 7.10 with metacity but did not get any error. You can check if the timestamp Emacs sends corresponds to one of those in the error message by printing it out in the function x_ewmh_activate_frame in xterm.c (i.e. printf("%u\n", last_user_time); ). However, that function is not called unless you call x-focus-frame. > That call itself does not generate any new messages in > .xsession-errors. However, after clicking around a bit, switching to > FireFox writing this e-mail for example, I see this: > > Window manager warning: last_focus_time (262538802) is greater than > comparison timestamp (4020640236). This most likely represents a > buggy client sending inaccurate timestamps in messages such as > _NET_ACTIVE_WINDOW. Trying to work around... It actually don't make sense, as 262538802 is not greater than 4020640236. You might have the same problem as the bug http://bugzilla.gnome.org/show_bug.cgi?id=392889. There is a lot of discussion in the beginning but the hang bug is discussed at the end. And then there is https://bugzilla.redhat.com/show_bug.cgi?id=224611, but it doesn't sound like that one. It is strange that I can't reproduce the problem, I have the same system as you. It must be something in the configuration that triggers this bug. > Window manager warning: last_user_time (262538802) is greater than > comparison timestamp (4020640236). This most likely represents a > buggy client sending inaccurate timestamps in messages such as > _NET_ACTIVE_WINDOW. Trying to work around... > Window manager warning: 0x40000a4 (emacs - ma) appears to be one of > the offending windows with a timestamp of 262538802. Working > around... > > As you can see, again an Emacs window is mentioned. Can you configrm that the window id belongs to Emacs? Jan D.