changed page flip policy

This commit is contained in:
garbeam 2005-12-17 16:14:59 +02:00
parent 7c7e43b6bf
commit 03f7aacd1f
2 changed files with 8 additions and 9 deletions

View File

@ -62,17 +62,17 @@ void hide_area(Area * a)
{
Frame *f;
for (f = a->layout->frames(a); f; f = f->next)
XUnmapWindow(dpy, f->win);
XMoveWindow(dpy, f->win, 2 * rect.width, 2 * rect.height);
}
void show_area(Area *a, Bool raise)
{
Frame *f;
for (f = a->layout->frames(a); f; f = f->next)
for (f = a->layout->frames(a); f; f = f->next) {
XMoveWindow(dpy, f->win, f->rect.x, f->rect.y);
if (raise)
XMapRaised(dpy, f->win);
else
XMapWindow(dpy, f->win);
XRaiseWindow(dpy, f->win);
}
}
Area *sel_area()

View File

@ -273,12 +273,11 @@ void center_pointer(Frame * f);
/* page.c */
Page *pageat(unsigned int idx);
Page *alloc_page();
void free_page(Page * p);
void destroy_page(Page * p);
void destroy_page(Page *p);
void focus_page(Page *p);
XRectangle *rectangles(unsigned int *num);
void hide_page(Page * p);
void show_page(Page * p);
void hide_page(Page *p);
void show_page(Page *p);
/* layout.c */
Layout *match_layout(char *name);