From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: How about introducing a new frame parameter: topmost Date: Tue, 03 Jun 2008 23:55:49 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1212551778 31051 80.91.229.12 (4 Jun 2008 03:56:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 4 Jun 2008 03:56:18 +0000 (UTC) Cc: emacs-devel@gnu.org To: Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 04 05:56:59 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 1K3k7M-0002dv-9O for ged-emacs-devel@m.gmane.org; Wed, 04 Jun 2008 05:56:56 +0200 Original-Received: from localhost ([127.0.0.1]:37717 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K3k6Z-0005Nq-Tn for ged-emacs-devel@m.gmane.org; Tue, 03 Jun 2008 23:56:07 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K3k6U-0005Mx-GA for emacs-devel@gnu.org; Tue, 03 Jun 2008 23:56:02 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K3k6T-0005Lj-GQ for emacs-devel@gnu.org; Tue, 03 Jun 2008 23:56:01 -0400 Original-Received: from [199.232.76.173] (port=60303 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K3k6T-0005LY-BA for emacs-devel@gnu.org; Tue, 03 Jun 2008 23:56:01 -0400 Original-Received: from 206-248-132-168.dsl.teksavvy.com ([206.248.132.168]:38097 helo=ceviche.home) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K3k6S-0004Ob-Pt for emacs-devel@gnu.org; Tue, 03 Jun 2008 23:56:01 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id A15FDB423C; Tue, 3 Jun 2008 23:55:49 -0400 (EDT) In-Reply-To: (brianjiang@gdnt.com.cn's message of "Wed, 4 Jun 2008 10:59:38 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) 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:98360 Archived-At: >> > If this parameter is true, the frame is shown as a TOPMOST window. >> The tricky part is to coerce the window manager into agreeing >> with Emacs. > It is quit easy to implement it in Windows, simply calling WIN API > SetWindowPos. It needs to work under X11 as well before I'd consider integrating the feature. BTW, another detail is: does this property mean "stay above every other GUI window", or "stay above the current Emacs frame", or "stay above all other frames owned by this Emacs process"? The latter seems more useful. The former is probably what your code does. In X11, there's a feature which could do something like the 2nd option, which is to mark a frame as being "transient", in which case most window managers will try to keep it "above its parent window", at least if that transient window is sufficiently small. Stefan