shmpatch-sched_c 574 B

123456789101112131415161718192021222324252627
  1. $OpenBSD: shmpatch-sched_c,v 1.1 2003/11/22 00:56:58 espie Exp $
  2. --- sched.c.orig 2003-09-08 16:26:36.000000000 +0200
  3. +++ sched.c 2003-11-17 23:37:54.000000000 +0100
  4. @@ -110,6 +110,10 @@ calctimo()
  5. return min;
  6. }
  7. +#ifdef IPC_EXPORT_IMAGE
  8. + extern struct window *windows;
  9. +#endif
  10. +
  11. void
  12. sched()
  13. {
  14. @@ -121,6 +125,11 @@ sched()
  15. for (;;)
  16. {
  17. +#ifdef IPC_EXPORT_IMAGE
  18. + /* export image from last used window which is on top of the list */
  19. + CopyWinImage( windows, shm );
  20. +#endif
  21. +
  22. if (calctimeout)
  23. timeoutev = calctimo();
  24. if (timeoutev)