9 #define DESKTOP_ALL (0xffffffff)
11 /*! The number of available desktops */
12 extern guint screen_num_desktops
;
13 /*! The number of virtual "xinerama" screens/heads */
14 extern guint screen_num_monitors
;
15 /*! The current desktop */
16 extern guint screen_desktop
;
17 /*! Are we in showing-desktop mode? */
18 extern gboolean screen_showing_desktop
;
19 /*! The support window also used for focus and stacking */
20 extern Window screen_support_win
;
22 typedef struct DesktopLayout
{
23 ObOrientation orientation
;
24 ObCorner start_corner
;
28 extern DesktopLayout screen_desktop_layout
;
30 /*! An array of gchar*'s which are desktop names in UTF-8 format */
31 extern char **screen_desktop_names
;
33 /*! Take over the screen, set the basic hints on it claming it as ours */
34 gboolean
screen_annex();
36 /*! Once the screen is ours, set up its initial state */
37 void screen_startup();
39 void screen_shutdown();
41 /*! Figure out the new size of the screen and adjust stuff for it */
44 /*! Change the number of available desktops */
45 void screen_set_num_desktops(guint num
);
46 /*! Change the current desktop */
47 void screen_set_desktop(guint num
);
48 /*! Interactively change desktops */
49 guint
screen_cycle_desktop(ObDirection dir
, gboolean wrap
, gboolean linear
,
50 gboolean done
, gboolean cancel
);
52 /*! Shows and focuses the desktop and hides all the client windows, or
53 returns to the normal state, showing client windows. */
54 void screen_show_desktop(gboolean show
);
56 /*! Updates the desktop layout from the root property if available */
57 void screen_update_layout();
59 /*! Get desktop names from the root window property */
60 void screen_update_desktop_names();
62 /*! Installs or uninstalls a colormap for a client. If client is NULL, then
63 it handles the root colormap. */
64 void screen_install_colormap(struct _ObClient
*client
, gboolean install
);
66 void screen_update_areas();
68 Rect
*screen_physical_area();
70 Rect
*screen_physical_area_monitor(guint head
);
72 Rect
*screen_area(guint desktop
);
74 Rect
*screen_area_monitor(guint desktop
, guint head
);
76 gboolean
screen_pointer_pos(int *x
, int *y
);