[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Proposed function: x-display-usable-bounds

From: Jan Djärv
Subject: Re: Proposed function: x-display-usable-bounds
Date: Mon, 03 Dec 2007 10:40:31 +0100
User-agent: Thunderbird (X11/20071031)

Adrian Robert skrev:

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.

Gnome and KDE follow the Extended windowmanager hints specification. It defines a property on the root window which gives the "usable" display area.


The implementation for KDE and Gnome could easily be done in elisp. Does your patch handle multiple desktops/screens?

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.



Either your mailing list name was misspelled or the list you specified does not exist. If you believe this message to be in error, there may be a temporary outage of Mailing List Archive services. Please consult Site Status for more information.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]