summaryrefslogtreecommitdiff
path: root/src/data.h
diff options
context:
space:
mode:
authorsabetts <sabetts>2003-05-15 06:57:09 +0000
committersabetts <sabetts>2003-05-15 06:57:09 +0000
commit2d8945e4ee37ceee9d58e91681c6d3722a83c956 (patch)
treed996cd52065ba42dbcfb0089934303a8c604aa35 /src/data.h
parent0271c6daa38124232902a976e082a9b21dcc7043 (diff)
downloadratpoison-2d8945e4ee37ceee9d58e91681c6d3722a83c956.zip
(struct rp_screen): rename from
screen_info. Dependant code updated.
Diffstat (limited to 'src/data.h')
-rw-r--r--src/data.h18
1 files changed, 4 insertions, 14 deletions
diff --git a/src/data.h b/src/data.h
index db54432..46115e1 100644
--- a/src/data.h
+++ b/src/data.h
@@ -47,7 +47,7 @@
#define WIN_NAME_RES_NAME 2
typedef struct rp_window rp_window;
-typedef struct screen_info screen_info;
+typedef struct rp_screen rp_screen;
typedef struct rp_action rp_action;
typedef struct rp_window_frame rp_window_frame;
@@ -67,7 +67,7 @@ struct rp_window_frame
struct rp_window
{
- screen_info *scr;
+ rp_screen *scr;
Window w;
int number;
int state;
@@ -108,7 +108,7 @@ struct rp_window
struct list_head node;
};
-struct screen_info
+struct rp_screen
{
GC normal_gc;
XWindowAttributes root_attr;
@@ -207,16 +207,6 @@ extern struct rp_defaults defaults;
/* The prefix key also known as the command character under screen. */
extern struct rp_key prefix_key;
-/* These _sentinel pointers point to a special rp_window whose next
- pointer points to the head of the list and whose prev pointer
- points to the tail. This is done to simplify removing an element
- from the list: since there are no head and tail global variable
- pointers that need to be updated, functions that manipulate
- elements in a list don't need to know what list they belong to. The
- last element's next pointer points to the sentinel as does the
- first element's prev pointer. An empty list is represented by the
- sentinel's prev and next pointers pointing to itself. */
-
/* A list of mapped windows. These windows show up in the window
list and have a number assigned to them. */
extern struct list_head rp_mapped_window;
@@ -226,7 +216,7 @@ extern struct list_head rp_mapped_window;
extern struct list_head rp_unmapped_window;
extern int rp_current_screen;
-extern screen_info *screens;
+extern rp_screen *screens;
extern int num_screens;
extern XEvent rp_current_event;