From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#745: pop-to-buffer, frames, and input focus Date: Fri, 29 Aug 2008 11:26:50 +0200 Message-ID: <48B7C0DA.8040104@gmx.at> References: <48AC2F4A.1000507@gmx.at> <48AC851A.3020906@gmx.at> <48AD2FB5.3000204@gmx.at> <48ADD085.50505@gmx.at> <48AEEBB8.50201@gmx.at> <48AFFD26.3040204@gmx.at> <48B2B78C.9090407@gmx.at> <48B50C63.8010402@gmx.at> <48B69007.20604@gmx.at> <48B7181B.7080706@gmx.at> Reply-To: martin rudalics , 745@emacsbugs.donarmstrong.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 1220003519 16207 80.91.229.12 (29 Aug 2008 09:51:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 29 Aug 2008 09:51:59 +0000 (UTC) Cc: 745@emacsbugs.donarmstrong.com To: Helmut Eller Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Aug 29 11:52:53 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KZ0ey-0006kl-SQ for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 Aug 2008 11:52:53 +0200 Original-Received: from localhost ([127.0.0.1]:48026 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KZ0e0-000491-Ex for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 Aug 2008 05:51:52 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KZ0Zt-0000V0-QK for bug-gnu-emacs@gnu.org; Fri, 29 Aug 2008 05:47:37 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KZ0Zq-0000RS-Jm for bug-gnu-emacs@gnu.org; Fri, 29 Aug 2008 05:47:36 -0400 Original-Received: from [199.232.76.173] (port=34663 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KZ0Zp-0000R5-V8 for bug-gnu-emacs@gnu.org; Fri, 29 Aug 2008 05:47:34 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:59812) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KZ0Zp-0001Sy-5l for bug-gnu-emacs@gnu.org; Fri, 29 Aug 2008 05:47:33 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7T9lTf4009302; Fri, 29 Aug 2008 02:47:29 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m7T9e4CJ006429; Fri, 29 Aug 2008 02:40:04 -0700 X-Loop: don@donarmstrong.com Resent-From: martin rudalics Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 29 Aug 2008 09:40:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 745 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 745-submit@emacsbugs.donarmstrong.com id=B745.12200022534364 (code B ref 745); Fri, 29 Aug 2008 09:40:03 +0000 Original-Received: (at 745) by emacsbugs.donarmstrong.com; 29 Aug 2008 09:30:53 +0000 Original-Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with SMTP id m7T9UnfV004354 for <745@emacsbugs.donarmstrong.com>; Fri, 29 Aug 2008 02:30:50 -0700 Original-Received: (qmail invoked by alias); 29 Aug 2008 09:30:41 -0000 Original-Received: from 62-47-33-217.adsl.highway.telekom.at (EHLO [62.47.33.217]) [62.47.33.217] by mail.gmx.net (mp047) with SMTP; 29 Aug 2008 11:30:41 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX192qs94VOF2HksAafYtE6CdNqxMu7QgfIcXWi0I5C atc8MX43PFKHRV User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) In-Reply-To: X-Y-GMX-Trusted: 0 X-FuHaFi: 0.62 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Fri, 29 Aug 2008 05:47:36 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:19850 > Emacs could first test whether the window manager is EWMH compliant How? Emacs can't even test whether the window manager is click to focus or focus follows mouse. > and > depending on the outcome only call one of those functions. > x_ewmh_activate_frame seems to test whether the WM supports > "_NET_ACTIVE_WINDOW". I guess, we could just move that over to > x-focus-frame. > >>> We agreed that we wont fix 3. >> Yes. > > Over night I had a little idea that could be useful. I'm just writing > it down here so that it's not lost: We could avoid the focus-when-mapped > problem, if we clear the input flag in WM_HINTS (the GTK equivalent > seems to be gtk_window_set_accept_focus) when we create the frame. Again this would work iff we knew that the window manager is EWMH compliant. > But > when we receive the MapNotify event, we enable the flag. This should > prevent the window manager from focusing the frame initially but > afterwards it should be treated as usual. > > I also found the gtk_window_set_focus_on_map function. This seems to > rely on the _NET_WM_USER_TIME EWMH. Sawfish ignores _NET_WM_USER_TIME, > but it could be useful for other window managers. And this would have to be supplied by the user separately. Or is there some way to get such basic information from window-managers? martin