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 08:02:32 +0100 Message-ID: <47EB4688.6020702@swipnet.se> References: <7dbe73ed0803240637r28959abdj813a6ba15ad72b4f@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1206601424 18369 80.91.229.12 (27 Mar 2008 07:03:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 27 Mar 2008 07:03:44 +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 08:04:15 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 1Jem9m-0001Q7-LP for ged-emacs-devel@m.gmane.org; Thu, 27 Mar 2008 08:04:15 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jem9B-0007US-92 for ged-emacs-devel@m.gmane.org; Thu, 27 Mar 2008 03:03:37 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jem97-0007UM-8E for emacs-devel@gnu.org; Thu, 27 Mar 2008 03:03:33 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jem92-0007UA-6v for emacs-devel@gnu.org; Thu, 27 Mar 2008 03:03:31 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jem92-0007U7-2d for emacs-devel@gnu.org; Thu, 27 Mar 2008 03:03:28 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Jem91-0004OL-B3 for emacs-devel@gnu.org; Thu, 27 Mar 2008 03:03:27 -0400 Original-Received: from av8-1-sn3.vrr.skanova.net ([81.228.9.183]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jem90-0003ex-E6 for emacs-devel@gnu.org; Thu, 27 Mar 2008 03:03:26 -0400 Original-Received: by av8-1-sn3.vrr.skanova.net (Postfix, from userid 502) id 83B023825B; Thu, 27 Mar 2008 08:03:24 +0100 (CET) Original-Received: from smtp3-1-sn3.vrr.skanova.net (smtp3-1-sn3.vrr.skanova.net [81.228.9.101]) by av8-1-sn3.vrr.skanova.net (Postfix) with ESMTP id 5EB2737E4C; Thu, 27 Mar 2008 08:03:24 +0100 (CET) Original-Received: from husetbladh.homeip.net (90-231-102-24-no59.tbcn.telia.com [90.231.102.24]) by smtp3-1-sn3.vrr.skanova.net (Postfix) with ESMTP id 3474137E42; Thu, 27 Mar 2008 08:03:23 +0100 (CET) User-Agent: Thunderbird 2.0.0.12 (X11/20080213) In-Reply-To: <7dbe73ed0803240637r28959abdj813a6ba15ad72b4f@mail.gmail.com> X-detected-kernel: by mx20.gnu.org: Linux 2.4-2.6 X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:93619 Archived-At: Mathias Dahl skrev: > Lately I am having problems switching windows (window manager windows) > using Alt+Tab. Like exactly right now when I type this in Emacs I try > to switch window and it does not work. I can see the frame of other > windows being marked/outlined and in the task bar the name of the > window I am trying to switch to becomes bold. I have to use the mouse > to switch instead, very annoying. > > Until today I have thought this being a glitch in Metacity but by > chance I stumbled upon the following messages in my .xsession-errors > file today: > > Window manager warning: last_focus_time (5775062) is greater than > comparison timestamp (3763886959). This most likely represents a > buggy client sending inaccurate timestamps in messages such as > _NET_ACTIVE_WINDOW. Trying to work around... > > Window manager warning: last_user_time (5775062) is greater than > comparison timestamp (3763886959). This most likely represents a > buggy client sending inaccurate timestamps in messages such as > _NET_ACTIVE_WINDOW. Trying to work around... > > Window manager warning: 0x3c000a4 (.emacs) appears to be one of the > offending windows with a timestamp of 5775062. Working around... > > It suddenly occurred to me that I only experience the switching > problem in Emacs and here is a reference to one of my Emacs > windows. Could it be a coincidence or is Emacs doing anything bad? I > don't want to report this as a bug just yet. Does anyone else have similar > experiences? I cannot say when it happens, it suddenly does. When I have > switched using the mouse it works again, for a while... > Do you have click-to-focus? 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? Jan D.