From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: YAMAMOTO Mitsuharu Newsgroups: gmane.emacs.bugs Subject: bug#5721: Feature request: Function that returns absolute coordinates Date: Sat, 17 Jul 2010 09:30:43 +0900 Organization: Faculty of Science, Chiba University Message-ID: References: <4B9E4521.9030909@yahoo.co.jp> <4C2C8C02.1010906@swipnet.se> <4C2D9009.60405@swipnet.se> <4C3DD633.7040004@swipnet.se> <4C3EA59E.40300@swipnet.se> <4C3EBDAD.1040800@swipnet.se> <4C3EC17E.6060101@swipnet.se> <4C3EC863.3030803@swipnet.se> <4C3ECE08.2040604@swipnet.se> <4C3ED669.1020607@swipnet.se> <4C3EE966.5050704@swipnet.se> <4C3FFE74.2090602@swipnet.se> <4C401CFD.3020306@swipnet.se> <4C404E49.1050101@swipnet.se> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1279328444 2245 80.91.229.12 (17 Jul 2010 01:00:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 17 Jul 2010 01:00:44 +0000 (UTC) Cc: 5721@debbugs.gnu.org To: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 17 03:00:42 2010 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.69) (envelope-from ) id 1OZvlh-0005gU-5h for geb-bug-gnu-emacs@m.gmane.org; Sat, 17 Jul 2010 03:00:41 +0200 Original-Received: from localhost ([127.0.0.1]:49300 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OZvlg-00008Y-B7 for geb-bug-gnu-emacs@m.gmane.org; Fri, 16 Jul 2010 21:00:40 -0400 Original-Received: from [140.186.70.92] (port=51658 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OZvlX-00007G-0U for bug-gnu-emacs@gnu.org; Fri, 16 Jul 2010 21:00:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OZvlU-0003X3-7f for bug-gnu-emacs@gnu.org; Fri, 16 Jul 2010 21:00:30 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46710) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OZvlU-0003Ww-4T for bug-gnu-emacs@gnu.org; Fri, 16 Jul 2010 21:00:28 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OZvJ0-00037F-8I; Fri, 16 Jul 2010 20:31:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: YAMAMOTO Mitsuharu Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 17 Jul 2010 00:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 5721 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 5721-submit@debbugs.gnu.org id=B5721.127932663611968 (code B ref 5721); Sat, 17 Jul 2010 00:31:02 +0000 Original-Received: (at 5721) by debbugs.gnu.org; 17 Jul 2010 00:30:36 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OZvIZ-00036z-Nb for submit@debbugs.gnu.org; Fri, 16 Jul 2010 20:30:36 -0400 Original-Received: from mathmail.math.s.chiba-u.ac.jp ([133.82.132.2]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OZvIW-00036u-OV for 5721@debbugs.gnu.org; Fri, 16 Jul 2010 20:30:34 -0400 Original-Received: from church.math.s.chiba-u.ac.jp (church [133.82.132.36]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id 02BC6C0557; Sat, 17 Jul 2010 09:30:44 +0900 (JST) In-Reply-To: <4C404E49.1050101@swipnet.se> User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 =?UTF-8?Q?(Shij=C5=8D)?= APEL/10.6 Emacs/22.3 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 16 Jul 2010 20:31:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org 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:38618 Archived-At: >>>>> On Fri, 16 Jul 2010 14:19:21 +0200, Jan Dj=E4rv = said: >>> That depends on your window manager. If I do the same command, I >>> get 'top equal to 124, as the title bar is 24 pixels high and the >>> window manager (Compiz) puts the top of the title bar at 100. >>> Other window managers may choose to put the Emacs window at 100 >>> and the title bar above that. It isn't defined what a window >>> manager should do. >>=20 >> I also checked that CDE's window manager behaves like Mac OS X's, >> i.e., left/top frame parameters points to the title bar. >>=20 >> You mean one can specify the position of the top-left corner of the >> title bar with the geometry specification, but that cannot reliably >> be done with left/top frame parameters? > When there is a window manager present, no move or resize can be > done reliably. The window manager is free to modify them. Some > don't allow move partly offscreen, some do. Some don't allow move > over the gnome-panel, some do. In that case, Emacs is supposed to adjust left/top frame parameters according to the title-bar top-left corner position that the window manager modified, in response to some notification events. Even with Compiz, left/top frame parameters point to the title bar if we turn off visual effects. I tested it with Ubuntu 10.04. I suspect x_real_positions fails to get the window for decoration for Compiz if visual effects are turned on. Maybe Compiz does not assign X11 windows for window decorations. YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp