From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Mathias Dahl" Newsgroups: gmane.emacs.devel Subject: Re: Does Emacs wm-window handling misbehave? Date: Thu, 27 Mar 2008 10:53:16 +0100 Message-ID: <7dbe73ed0803270253g39c9671fjd021e8bd18de3bcc@mail.gmail.com> References: <7dbe73ed0803240637r28959abdj813a6ba15ad72b4f@mail.gmail.com> <47EB4688.6020702@swipnet.se> 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 1206611659 16552 80.91.229.12 (27 Mar 2008 09:54:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 27 Mar 2008 09:54:19 +0000 (UTC) Cc: emacs-devel@gnu.org To: "=?ISO-8859-1?Q?Jan_Dj=E4rv?=" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 27 10:54:47 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 1Jeoom-0007VT-1M for ged-emacs-devel@m.gmane.org; Thu, 27 Mar 2008 10:54:44 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JeooA-0005BD-Iv for ged-emacs-devel@m.gmane.org; Thu, 27 Mar 2008 05:54:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JeonQ-0004m0-77 for emacs-devel@gnu.org; Thu, 27 Mar 2008 05:53:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JeonP-0004lZ-5l for emacs-devel@gnu.org; Thu, 27 Mar 2008 05:53:19 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JeonO-0004lQ-OA for emacs-devel@gnu.org; Thu, 27 Mar 2008 05:53:18 -0400 Original-Received: from wa-out-1112.google.com ([209.85.146.178]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JeonO-0001k1-Bn for emacs-devel@gnu.org; Thu, 27 Mar 2008 05:53:18 -0400 Original-Received: by wa-out-1112.google.com with SMTP id k34so4912071wah.10 for ; Thu, 27 Mar 2008 02:53:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=1+FxQckOK6BbiIRM1K0v9d0hQ8vWI/lqoyKmh28/YOc=; b=s/HDnAPjNYkgd3X6nZ8/9gfSnupy5ZetSI3+SxJl87gVPY5SS9FJYfyee5N+CYvhZC3Hwm2Ykrx01UKKlUybsK4w9z5fNmDh9asaMr/ZINdF9NIDCClXMxpfLTR1AaUFeMrpGJHCuK53E9bomn1XO6Bac033uU3Gd0wG0qhgvDg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=J8ROpV5BUApLf5YTEmgQ1PIo1S4wNQ2U1WJe02mznoIL8f6dQRf4FzX0ydHRbW01w3cPcKpL6vZafJbcoN4C1y5J0gtvCPOfQ+NBKtXRXHKI32WN1yNA0nONQBHclEiIQrm+lDh6xOpVbqokiCj4zid9TD6sU3Q5QSjnqiXeguw= Original-Received: by 10.114.78.1 with SMTP id a1mr1068671wab.36.1206611596893; Thu, 27 Mar 2008 02:53:16 -0700 (PDT) Original-Received: by 10.114.146.9 with HTTP; Thu, 27 Mar 2008 02:53:16 -0700 (PDT) In-Reply-To: <47EB4688.6020702@swipnet.se> Content-Disposition: inline X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) 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:93630 Archived-At: > 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. 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... 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. I get this in emacs -Q as well as with a fully loaded .emacs.