mirror of
https://github.com/0intro/wmii
synced 2024-11-25 23:30:24 +03:00
eleminated all compile issues
This commit is contained in:
parent
e9cea1dba8
commit
c09888f7a1
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
#include <cext.h>
|
#include <cext.h>
|
||||||
|
|
||||||
static Area zero_area = {0};
|
/*static Area zero_area = {0};*/
|
||||||
|
|
||||||
void
|
void
|
||||||
free_area(Area* a)
|
free_area(Area* a)
|
||||||
@ -46,3 +46,29 @@ focus_area(Area *a, int raise, int up, int down)
|
|||||||
focus_page(p, raise, 0);
|
focus_page(p, raise, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
attach_frame_to_area(Area *a, Frame * f)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
detach_frame_from_area(Frame * f, int ignore_focus_and_destroy)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
draw_area(Area *a)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
hide_area(Area *a)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
show_area(Area *a)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
@ -147,12 +147,10 @@ handle_configurerequest(XEvent * e)
|
|||||||
gravitate(c, tabh ? tabh : bw, bw, 0);
|
gravitate(c, tabh ? tabh : bw, bw, 0);
|
||||||
|
|
||||||
if (f) {
|
if (f) {
|
||||||
XRectangle *frect = rect_of_frame(f);
|
f->rect.x = wc.x = c->rect.x - bw;
|
||||||
frect->x = wc.x = c->rect.x - bw;
|
f->rect.y = wc.y = c->rect.y - (tabh ? tabh : bw);
|
||||||
frect->y = wc.y = c->rect.y - (tabh ? tabh : bw);
|
f->rect.width = wc.width = c->rect.width + 2 * bw;
|
||||||
frect->width = wc.width = c->rect.width + 2 * bw;
|
f->rect.height = wc.height = c->rect.height + bw + (tabh ? tabh : bw);
|
||||||
frect->height = wc.height =
|
|
||||||
c->rect.height + bw + (tabh ? tabh : bw);
|
|
||||||
wc.border_width = 1;
|
wc.border_width = 1;
|
||||||
wc.sibling = None;
|
wc.sibling = None;
|
||||||
wc.stack_mode = ev->detail;
|
wc.stack_mode = ev->detail;
|
||||||
|
@ -360,7 +360,7 @@ handle_frame_buttonpress(XButtonEvent * e, Frame * f)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
attach_Cliento_frame(Frame * f, Client * c)
|
attach_client_to_frame(Frame * f, Client * c)
|
||||||
{
|
{
|
||||||
int size = count_items((void **) f->clients);
|
int size = count_items((void **) f->clients);
|
||||||
wmii_move_ixpfile(c->files[C_PREFIX], f->files[F_CLIENT_PREFIX]);
|
wmii_move_ixpfile(c->files[C_PREFIX], f->files[F_CLIENT_PREFIX]);
|
||||||
|
@ -40,7 +40,7 @@ static Column zero_column = {0};
|
|||||||
static Acme zero_acme = {0};
|
static Acme zero_acme = {0};
|
||||||
|
|
||||||
void
|
void
|
||||||
init_layout_col()
|
init_layout_column()
|
||||||
{
|
{
|
||||||
layouts =
|
layouts =
|
||||||
(Layout **) attach_item_end((void **) layouts, &lcol,
|
(Layout **) attach_item_end((void **) layouts, &lcol,
|
||||||
@ -171,7 +171,7 @@ deinit_col(Area *a)
|
|||||||
while (f->clients && f->clients[0])
|
while (f->clients && f->clients[0])
|
||||||
detach_client_from_frame(f->clients[0], 0, 0);
|
detach_client_from_frame(f->clients[0], 0, 0);
|
||||||
detach_frame_from_area(f, 1);
|
detach_frame_from_area(f, 1);
|
||||||
free_frame(f);
|
destroy_frame(f);
|
||||||
}
|
}
|
||||||
free(col->frames);
|
free(col->frames);
|
||||||
}
|
}
|
||||||
@ -213,7 +213,7 @@ detach_col(Area *a, Client *c, int unmapped, int destroyed)
|
|||||||
col->refresh = 1;
|
col->refresh = 1;
|
||||||
detach_client_from_frame(c, unmapped, destroyed);
|
detach_client_from_frame(c, unmapped, destroyed);
|
||||||
detach_frame_from_area(f, 1);
|
detach_frame_from_area(f, 1);
|
||||||
free_frame(f);
|
destroy_frame(f);
|
||||||
|
|
||||||
arrange_col(a);
|
arrange_col(a);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user