8 #define DESKTOP_ALL (0xffffffff)
10 /*! The number of available desktops */
11 extern guint screen_num_desktops
;
12 /*! The current desktop */
13 extern guint screen_desktop
;
14 /*! The size of the screen */
15 extern Size screen_physical_size
;
16 /*! Are we in showing-desktop mode? */
17 extern gboolean screen_showing_desktop
;
19 typedef struct DesktopLayout
{
25 extern DesktopLayout screen_desktop_layout
;
27 /*! An array of gchar*'s which are desktop names in UTF-8 format */
28 extern GPtrArray
*screen_desktop_names
;
30 /*! Take over the screen, set the basic hints on it claming it as ours */
31 gboolean
screen_annex();
33 /*! Once the screen is ours, set up its initial state */
34 void screen_startup();
36 void screen_shutdown();
38 /*! Figure out the new size of the screen and adjust stuff for it */
41 /*! Change the number of available desktops */
42 void screen_set_num_desktops(guint num
);
43 /*! Change the current desktop */
44 void screen_set_desktop(guint num
);
46 /*! Shows and focuses the desktop and hides all the client windows, or
47 returns to the normal state, showing client windows. */
48 void screen_show_desktop(gboolean show
);
50 /*! Updates the desktop layout from the root property if available */
51 void screen_update_layout();
53 /*! Get desktop names from the root window property */
54 void screen_update_desktop_names();
56 /*! Installs or uninstalls a colormap for a client. If client is NULL, then
57 it handles the root colormap. */
58 void screen_install_colormap(struct Client
*client
, gboolean install
);
60 void screen_update_struts();
62 Rect
*screen_area(guint desktop
);
64 Strut
*screen_strut(guint desktop
);