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 /*! The desktop which was last visible */
18 extern guint screen_last_desktop
;
19 /*! Are we in showing-desktop mode? */
20 extern gboolean screen_showing_desktop
;
21 /*! The support window also used for focus and stacking */
22 extern Window screen_support_win
;
24 typedef struct DesktopLayout
{
25 ObOrientation orientation
;
26 ObCorner start_corner
;
30 extern DesktopLayout screen_desktop_layout
;
32 /*! An array of gchar*'s which are desktop names in UTF-8 format */
33 extern char **screen_desktop_names
;
35 /*! Take over the screen, set the basic hints on it claming it as ours */
36 gboolean
screen_annex();
38 /*! Once the screen is ours, set up its initial state */
39 void screen_startup();
41 void screen_shutdown();
43 /*! Figure out the new size of the screen and adjust stuff for it */
46 /*! Change the number of available desktops */
47 void screen_set_num_desktops(guint num
);
48 /*! Change the current desktop */
49 void screen_set_desktop(guint num
);
50 /*! Interactively change desktops */
51 guint
screen_cycle_desktop(ObDirection dir
, gboolean wrap
, gboolean linear
,
52 gboolean dialog
, gboolean done
, gboolean cancel
);
54 /*! Shows and focuses the desktop and hides all the client windows, or
55 returns to the normal state, showing client windows. */
56 void screen_show_desktop(gboolean show
);
58 /*! Updates the desktop layout from the root property if available */
59 void screen_update_layout();
61 /*! Get desktop names from the root window property */
62 void screen_update_desktop_names();
64 /*! Installs or uninstalls a colormap for a client. If client is NULL, then
65 it handles the root colormap. */
66 void screen_install_colormap(struct _ObClient
*client
, gboolean install
);
68 void screen_update_areas();
70 Rect
*screen_physical_area();
72 Rect
*screen_physical_area_monitor(guint head
);
74 Rect
*screen_area(guint desktop
);
76 Rect
*screen_area_monitor(guint desktop
, guint head
);
78 gboolean
screen_pointer_pos(int *x
, int *y
);