From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: YAMAMOTO Mitsuharu Newsgroups: gmane.emacs.devel Subject: Re: x-display-pixel-width/height inconsistency Date: Thu, 21 Mar 2013 13:22:06 +0900 Organization: Faculty of Science, Chiba University Message-ID: References: <87vc8nyoat.fsf@yandex.ru> <8738vrq67p.fsf@yandex.ru> <87vc8metkw.fsf@yandex.ru> <8738vqyxnt.fsf@yandex.ru> <87sj3po835.fsf@yandex.ru> <514A73D0.8020503@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1363839742 20607 80.91.229.3 (21 Mar 2013 04:22:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 21 Mar 2013 04:22:22 +0000 (UTC) Cc: emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 21 05:22:46 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UIX1Y-0003Zd-Cw for ged-emacs-devel@m.gmane.org; Thu, 21 Mar 2013 05:22:44 +0100 Original-Received: from localhost ([::1]:49190 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIX1A-0005ur-UC for ged-emacs-devel@m.gmane.org; Thu, 21 Mar 2013 00:22:20 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:54433) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIX14-0005uj-7l for emacs-devel@gnu.org; Thu, 21 Mar 2013 00:22:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UIX12-0005gG-2D for emacs-devel@gnu.org; Thu, 21 Mar 2013 00:22:14 -0400 Original-Received: from mathmail.math.s.chiba-u.ac.jp ([133.82.132.2]:52271) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIX11-0005fv-Hv for emacs-devel@gnu.org; Thu, 21 Mar 2013 00:22:11 -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 92C90C055D; Thu, 21 Mar 2013 13:22:06 +0900 (JST) In-Reply-To: User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.6 Emacs/22.3 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 133.82.132.2 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:158021 Archived-At: >>>>> On Thu, 21 Mar 2013 12:47:02 +0900, YAMAMOTO Mitsuharu said: > Third, I guess distinguishing physical monitors on X11 requires the > Xinerama extension or some help of window managers. So such > functionality seems to be at a different level from other > x-display-* functions. GDK might be an alternative choice when using GTK+. > One may want to query not only the size of a particular physical > monitor but also the position and the displayable area (i.e., except > Panel, Dock, or Taskbar). I think it would be better to provide the > functions that are aware of physical monitors as a new group of > them, rather than by breaking the existing argument convention of > x-display-* functions. And gdk_screen_*_monitor* could be a candidate of a design guide for such a new group of functions. gint gdk_screen_get_n_monitors (GdkScreen *screen); gint gdk_screen_get_primary_monitor (GdkScreen *screen); void gdk_screen_get_monitor_geometry (GdkScreen *screen, gint monitor_num, GdkRectangle *dest); void gdk_screen_get_monitor_workarea (GdkScreen *screen, gint monitor_num, GdkRectangle *dest); gint gdk_screen_get_monitor_at_point (GdkScreen *screen, gint x, gint y); gint gdk_screen_get_monitor_at_window (GdkScreen *screen, GdkWindow *window); gint gdk_screen_get_monitor_height_mm (GdkScreen *screen, gint monitor_num); gint gdk_screen_get_monitor_width_mm (GdkScreen *screen, gint monitor_num); gchar *gdk_screen_get_monitor_plug_name (GdkScreen *screen, gint monitor_num); https://developer.gnome.org/gdk3/3.6/GdkScreen.html YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp