Re: Dual Monitors
- From: "Brian J. Tarricone" <bjt23 cornell edu>
- To: gtk-app-devel-list gnome org
- Subject: Re: Dual Monitors
- Date: Thu, 28 Oct 2004 16:23:55 -0700
On 10/28/04 16:06, David Corrigan wrote:
Is there a way to detect how many displays are setup?
gdk_display_get_n_screens() will tell you how many non-xinerama screens
there are, and gdk_screen_get_n_monitors() on each screen will tell
you how many monitors make up that particular xinerama screen.
see the gdk API docs for details:
http://developer.gnome.org/doc/API/2.0/gdk/
(specifically, the Multi-head Support Overview and the API docs on
GdkDisplay and GdkScreen). note that this requires gtk 2.2 at minimum;
otherwise you'll need to use some Xlib functions, as well as checking
for the presence of and enabled/disabled state of the xinerama extension.
-brian
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]