4 * Copyright 2001 Sun Microsystems Inc.
6 * Erwann Chenede <erwann.chenede@sun.com>
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either
11 * version 2 of the License, or (at your option) any later version.
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Library General Public License for more details.
18 * You should have received a copy of the GNU Library General Public
19 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
22 #ifndef __GDK_X11_SCREEN__
23 #define __GDK_X11_SCREEN__
25 #include "gdkscreenprivate.h"
26 #include "gdkx11screen.h"
27 #include "gdkvisual.h"
28 #include "xsettings-client.h"
34 typedef struct _GdkX11Monitor GdkX11Monitor;
38 GdkScreen parent_instance;
44 GdkWindow *root_window;
46 /* Xinerama/RandR 1.2 */
48 GdkX11Monitor *monitors;
51 /* Xft resources for the display, used for default values for
59 long last_wmspec_check_time;
60 Window wmspec_check_window;
61 char *window_manager_name;
63 /* TRUE if wmspec_check_window has changed since last
64 * fetch of _NET_SUPPORTED
66 guint need_refetch_net_supported : 1;
67 /* TRUE if wmspec_check_window has changed since last
68 * fetch of window manager name
70 guint need_refetch_wm_name : 1;
71 guint is_composited : 1;
72 guint xft_init : 1; /* Whether we've intialized these values yet */
73 guint xft_antialias : 1;
74 guint xft_hinting : 1;
79 GdkVisual *system_visual;
80 gint available_depths[7];
81 GdkVisualType available_types[6];
82 gint16 navailable_depths;
83 gint16 navailable_types;
84 GHashTable *visual_hash;
85 GdkVisual *rgba_visual;
88 XSettingsClient *xsettings_client;
90 /* cache for window->translate vfunc */
93 /* cache for Xinerama monitor indices */
94 GHashTable *xinerama_matches;
97 struct _GdkX11ScreenClass
99 GdkScreenClass parent_class;
101 void (* window_manager_changed) (GdkX11Screen *x11_screen);
104 GType _gdk_x11_screen_get_type (void);
105 GdkScreen * _gdk_x11_screen_new (GdkDisplay *display,
108 void _gdk_x11_screen_setup (GdkScreen *screen);
109 void _gdk_x11_screen_window_manager_changed (GdkScreen *screen);
110 void _gdk_x11_screen_size_changed (GdkScreen *screen,
112 void _gdk_x11_screen_process_owner_change (GdkScreen *screen,
114 gint _gdk_x11_screen_get_xinerama_index (GdkScreen *screen,
116 void _gdk_x11_screen_get_edge_monitors (GdkScreen *screen,
124 #endif /* __GDK_X11_SCREEN__ */