screen.h 504 B

123456789101112131415161718192021222324252627
  1. /*
  2. * wmfs2 by Martin Duquesnoy <xorg62@gmail.com> { for(i = 2011; i < 2111; ++i) ©(i); }
  3. * For license, see COPYING.
  4. */
  5. #ifndef SCREEN_H
  6. #define SCREEN_H
  7. #include "wmfs.h"
  8. static inline struct screen*
  9. screen_gb_id(int id)
  10. {
  11. struct screen *s;
  12. SLIST_FOREACH(s, &W->h.screen, next)
  13. if(s->id == id)
  14. return s;
  15. return SLIST_FIRST(&W->h.screen);
  16. }
  17. void screen_init(void);
  18. struct screen* screen_update_sel(void);
  19. void screen_free(void);
  20. #endif /* SCREEN_H */