all repos — openbox @ 34e819738b344a992a1dbfd6cdd165e0c8ddb3a9

openbox fork - make it a bit more like ryudo

openbox/screen.h (raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#ifndef __screen_h
#define __screen_h

#include "geom.h"
#include "client.h"

struct Client;

#define DESKTOP_ALL (0xffffffff)

/*! The number of available desktops */
extern guint screen_num_desktops;
/*! The number of virtual "xinerama" screens/heads */
extern guint screen_num_xin_areas;
/*! The current desktop */
extern guint screen_desktop;
/*! The size of the screen */
extern Size  screen_physical_size;
/*! Are we in showing-desktop mode? */
extern gboolean screen_showing_desktop;

/*! Orientation of the desktops */
typedef enum {
    Orientation_Horz = 0,
    Orientation_Vert = 1
} Orientation;

typedef struct DesktopLayout {
    Orientation orientation;
    Corner start_corner;
    guint rows;
    guint columns;
} DesktopLayout;
extern DesktopLayout screen_desktop_layout;

/*! An array of gchar*'s which are desktop names in UTF-8 format */
extern char **screen_desktop_names;

/*! Take over the screen, set the basic hints on it claming it as ours */
gboolean screen_annex();

/*! Once the screen is ours, set up its initial state */
void screen_startup();
/*! Free resources */
void screen_shutdown();

/*! Figure out the new size of the screen and adjust stuff for it */
void screen_resize(int w, int h);

/*! Change the number of available desktops */
void screen_set_num_desktops(guint num);
/*! Change the current desktop */
void screen_set_desktop(guint num);

/*! Shows and focuses the desktop and hides all the client windows, or
  returns to the normal state, showing client windows. */
void screen_show_desktop(gboolean show);

/*! Updates the desktop layout from the root property if available */
void screen_update_layout();

/*! Get desktop names from the root window property */
void screen_update_desktop_names();

/*! Installs or uninstalls a colormap for a client. If client is NULL, then
  it handles the root colormap. */
void screen_install_colormap(struct Client *client, gboolean install);

void screen_update_areas();

Rect *screen_physical_area();

Rect *screen_physical_area_xinerama(guint head);

Rect *screen_area(guint desktop);

Rect *screen_area_xinerama(guint desktop, guint head);

#endif