tag.h 913 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * wmfs2 by Martin Duquesnoy <xorg62@gmail.com> { for(i = 2011; i < 2111; ++i) ©(i); }
  3. * For license, see COPYING.
  4. */
  5. #ifndef TAG_H
  6. #define TAG_H
  7. #include "wmfs.h"
  8. struct tag *tag_new(struct screen *s, char *name);
  9. void tag_screen(struct screen *s, struct tag *t);
  10. void tag_client(struct tag *t, struct client *c);
  11. void tag_free(struct screen *s);
  12. void uicb_tag_set(Uicb cmd);
  13. void uicb_tag_set_with_name(Uicb cmd);
  14. void uicb_tag_next(Uicb cmd);
  15. void uicb_tag_prev(Uicb cmd);
  16. /*
  17. * Update frames size with screen usable geo
  18. */
  19. static inline void
  20. tag_update_frame_geo(struct screen *s)
  21. {
  22. struct tag *t;
  23. TAILQ_FOREACH(t, &s->tags, next)
  24. XMoveResizeWindow(W->dpy,
  25. t->frame,
  26. s->ugeo.x,
  27. s->ugeo.y,
  28. s->ugeo.w,
  29. s->ugeo.h);
  30. }
  31. #endif /* TAG_H */