]> Dogcows Code - chaz/openbox/blob - openbox/screen.h
set the desktop hint if the desktop is changed by the session code
[chaz/openbox] / openbox / screen.h
1 #ifndef __screen_h
2 #define __screen_h
3
4 #include "misc.h"
5 #include "geom.h"
6
7 struct _ObClient;
8
9 #define DESKTOP_ALL (0xffffffff)
10
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;
21
22 typedef struct DesktopLayout {
23 ObOrientation orientation;
24 ObCorner start_corner;
25 guint rows;
26 guint columns;
27 } DesktopLayout;
28 extern DesktopLayout screen_desktop_layout;
29
30 /*! An array of gchar*'s which are desktop names in UTF-8 format */
31 extern char **screen_desktop_names;
32
33 /*! Take over the screen, set the basic hints on it claming it as ours */
34 gboolean screen_annex();
35
36 /*! Once the screen is ours, set up its initial state */
37 void screen_startup();
38 /*! Free resources */
39 void screen_shutdown();
40
41 /*! Figure out the new size of the screen and adjust stuff for it */
42 void screen_resize();
43
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
49 /*! Shows and focuses the desktop and hides all the client windows, or
50 returns to the normal state, showing client windows. */
51 void screen_show_desktop(gboolean show);
52
53 /*! Updates the desktop layout from the root property if available */
54 void screen_update_layout();
55
56 /*! Get desktop names from the root window property */
57 void screen_update_desktop_names();
58
59 /*! Installs or uninstalls a colormap for a client. If client is NULL, then
60 it handles the root colormap. */
61 void screen_install_colormap(struct _ObClient *client, gboolean install);
62
63 void screen_update_areas();
64
65 Rect *screen_physical_area();
66
67 Rect *screen_physical_area_monitor(guint head);
68
69 Rect *screen_area(guint desktop);
70
71 Rect *screen_area_monitor(guint desktop, guint head);
72
73 gboolean screen_pointer_pos(int *x, int *y);
74
75 #endif
This page took 0.040641 seconds and 4 git commands to generate.