all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Adrian Robert" <adrian.b.robert@gmail.com>
To: "emacs- devel" <emacs-devel@gnu.org>
Subject: Proposed function: x-display-usable-bounds
Date: Mon, 3 Dec 2007 11:43:58 +0300	[thread overview]
Message-ID: <55f7df060712030043t22ac4321hf18c47f40611f20b@mail.gmail.com> (raw)

Hi,

On the Mac platform both the Carbon and Cocoa ports face the problem
of determining where on the display to place new frames.  For this it
is helpful not just to know the overall dimensions of the display
(x-display-pixel-width,height) but also the portion of the display
that is not obscured/reserved for the dock and menubar.  I assume this
issue comes up as well on Windows (task bar) and on X desktops such as
Gnome or KDE.

The Carbon port was defining its own function to return (top left
width height) for the usable screen area.  Since it seems relevant for
all platforms, it would seem appropriate to name this function with an
x- prefix, e.g., x-display-usable-bounds, and define it for all
platforms.  As a placeholder implementation, a list (0 0
x-display-pixel-width x-display-pixel-height) could be returned.  See
the thread below for the current Carbon and Cocoa implementations.

http://sourceforge.net/mailarchive/forum.php?thread_name=2CE05DE2-B276-4F80-918B-9C1A28DF169A%40gmail.com&forum_name=emacs-app-dev-

             reply	other threads:[~2007-12-03  8:43 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-03  8:43 Adrian Robert [this message]
2007-12-03  9:40 ` Proposed function: x-display-usable-bounds Jan Djärv
2007-12-03 12:34   ` Adrian Robert
2007-12-03 14:36     ` YAMAMOTO Mitsuharu
2007-12-03  9:41 ` Andreas Schwab
2007-12-03 10:00   ` Jason Rumney
2007-12-03 14:56 ` Stefan Monnier
2007-12-04 11:10   ` Adrian Robert
2007-12-04 13:56     ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55f7df060712030043t22ac4321hf18c47f40611f20b@mail.gmail.com \
    --to=adrian.b.robert@gmail.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.