summaryrefslogtreecommitdiff
path: root/src/frame.c
diff options
context:
space:
mode:
authorsabetts <sabetts>2003-05-15 07:36:21 +0000
committersabetts <sabetts>2003-05-15 07:36:21 +0000
commit55fadaecf93dfdf6a7c9510098057c5152e3b920 (patch)
treef1fc81a4aa497466f1cf5a497386ae994265984c /src/frame.c
parent2d8945e4ee37ceee9d58e91681c6d3722a83c956 (diff)
downloadratpoison-55fadaecf93dfdf6a7c9510098057c5152e3b920.zip
* src/data.h (struct rp_frame): renamed from rp_window_frame. All
dependant code updated. * src/main.c: remove child_info global. Add rp_children global. (chld_handler): update the terminated and status fields of any terminated children. * src/events.c (handle_signals): loop through each child process and remove them from the list. Print a message for any child that doesn't return a 0 status. * src/data.h (rp_child_info): new fields, terminated and node. remove child_info global. Add rp_children global. * src/actions.c (spawn): Add the command to the list of children.
Diffstat (limited to 'src/frame.c')
-rw-r--r--src/frame.c52
1 files changed, 26 insertions, 26 deletions
diff --git a/src/frame.c b/src/frame.c
index 821f47f..c978d7c 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -22,97 +22,97 @@
#include "ratpoison.h"
int
-frame_left (rp_window_frame *frame)
+frame_left (rp_frame *frame)
{
return frame->x;
}
int
-frame_top (rp_window_frame *frame)
+frame_top (rp_frame *frame)
{
return frame->y;
}
int
-frame_right (rp_window_frame *frame)
+frame_right (rp_frame *frame)
{
return frame->x + frame->width;
}
int
-frame_bottom (rp_window_frame *frame)
+frame_bottom (rp_frame *frame)
{
return frame->y + frame->height;
}
int
-frame_width(rp_window_frame *frame)
+frame_width(rp_frame *frame)
{
return frame->width;
}
int
-frame_height(rp_window_frame *frame)
+frame_height(rp_frame *frame)
{
return frame->height;
}
void
-frame_resize_left (rp_window_frame *frame, int amount)
+frame_resize_left (rp_frame *frame, int amount)
{
frame->x -= amount;
frame->width += amount;
}
void
-frame_resize_right (rp_window_frame *frame, int amount)
+frame_resize_right (rp_frame *frame, int amount)
{
frame->width += amount;
}
void
-frame_resize_up (rp_window_frame *frame, int amount)
+frame_resize_up (rp_frame *frame, int amount)
{
frame->y -= amount;
frame->height += amount;
}
void
-frame_resize_down (rp_window_frame *frame, int amount)
+frame_resize_down (rp_frame *frame, int amount)
{
frame->height += amount;
}
void
-frame_move_left (rp_window_frame *frame, int amount)
+frame_move_left (rp_frame *frame, int amount)
{
frame->x -= amount;
}
void
-frame_move_right (rp_window_frame *frame, int amount)
+frame_move_right (rp_frame *frame, int amount)
{
frame->x += amount;
}
void
-frame_move_up (rp_window_frame *frame, int amount)
+frame_move_up (rp_frame *frame, int amount)
{
frame->y -= amount;
}
void
-frame_move_down (rp_window_frame *frame, int amount)
+frame_move_down (rp_frame *frame, int amount)
{
frame->y += amount;
}
-rp_window_frame *
+rp_frame *
frame_new (rp_screen *s)
{
- rp_window_frame *f;
+ rp_frame *f;
- f = xmalloc (sizeof (rp_window_frame));
+ f = xmalloc (sizeof (rp_frame));
f->number = numset_request (s->frames_numset);
f->last_access = 0;
@@ -120,19 +120,19 @@ frame_new (rp_screen *s)
}
void
-frame_free (rp_screen *s, rp_window_frame *f)
+frame_free (rp_screen *s, rp_frame *f)
{
numset_release (s->frames_numset, f->number);
free (f);
}
-rp_window_frame *
-frame_copy (rp_window_frame *frame)
+rp_frame *
+frame_copy (rp_frame *frame)
{
- rp_window_frame *copy;
+ rp_frame *copy;
- copy = xmalloc (sizeof (rp_window_frame));
+ copy = xmalloc (sizeof (rp_frame));
copy->number = frame->number;
copy->x = frame->x;
@@ -146,7 +146,7 @@ frame_copy (rp_window_frame *frame)
}
char *
-frame_dump (rp_window_frame *frame)
+frame_dump (rp_frame *frame)
{
rp_window *win;
char *tmp;
@@ -171,14 +171,14 @@ frame_dump (rp_window_frame *frame)
return tmp;
}
-rp_window_frame *
+rp_frame *
frame_read (char *str)
{
Window w;
rp_window *win;
- rp_window_frame *f;
+ rp_frame *f;
- f = xmalloc (sizeof (rp_window_frame));
+ f = xmalloc (sizeof (rp_frame));
if (sscanf (str, "%d %d %d %d %d %ld %d",
&f->number,
&f->x,