ports/misc/screen-shm/patches/patch-sched_c

27 lines
452 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
Index: sched.c
--- sched.c.orig
+++ sched.c
@@ -110,6 +110,10 @@ calctimo()
return min;
}
+#ifdef IPC_EXPORT_IMAGE
+ extern struct window *windows;
+#endif
+
void
sched()
{
@@ -121,6 +125,11 @@ sched()
for (;;)
{
+#ifdef IPC_EXPORT_IMAGE
+ /* export image from last used window which is on top of the list */
+ CopyWinImage( windows, shm );
+#endif
+
if (calctimeout)
timeoutev = calctimo();
if (timeoutev)