1234567891011121314151617181920212223242526272829303132333435363738 |
- /*
- * wmfs2 by Martin Duquesnoy <xorg62@gmail.com> { for(i = 2011; i < 2111; ++i) ©(i); }
- * For license, see COPYING.
- */
- #ifndef TAG_H
- #define TAG_H
- #include "wmfs.h"
- struct tag *tag_new(struct screen *s, char *name);
- void tag_screen(struct screen *s, struct tag *t);
- void tag_client(struct tag *t, struct client *c);
- void tag_free(struct screen *s);
- void uicb_tag_set(Uicb cmd);
- void uicb_tag_set_with_name(Uicb cmd);
- void uicb_tag_next(Uicb cmd);
- void uicb_tag_prev(Uicb cmd);
- /*
- * Update frames size with screen usable geo
- */
- static inline void
- tag_update_frame_geo(struct screen *s)
- {
- struct tag *t;
- TAILQ_FOREACH(t, &s->tags, next)
- XMoveResizeWindow(W->dpy,
- t->frame,
- s->ugeo.x,
- s->ugeo.y,
- s->ugeo.w,
- s->ugeo.h);
- }
- #endif /* TAG_H */
|