From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 5336 invoked from network); 16 Jul 2021 09:18:08 -0000 Received: from 1ess.inri.net (216.126.196.35) by inbox.vuxu.org with ESMTPUTF8; 16 Jul 2021 09:18:08 -0000 Received: from mail-ed1-f53.google.com ([209.85.208.53]) by 1ess; Fri Jul 16 05:07:11 -0400 2021 Received: by mail-ed1-f53.google.com with SMTP id h2so12045803edt.3 for <9front@9front.org>; Fri, 16 Jul 2021 02:07:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-transfer-encoding; bh=/BKvHaqvdrUFHgSQ8RH8d73ze3pUlmgdEgT3x6mbbzQ=; b=qQseyD+8KHDePxI+gqA3rNpzXWfA2f4AKgRiQOr43HkOkwIcEhVp0qWdJdt/0OQwGk o51SgzqbyWqThAwgqHhDnB9JpoRR8hNb/+idALxnZMkTzJXdj3jWJCVzt4gJnIxMqxKs g02VA5eZIrzmLeYlFsMxPyaV6exH7Jhz0rfQz7SiQhCoM0Eip/EOvNGoV1fTu23PlSwX q2FfFOdSk0KVPAk83DAsBB00pssnryYca1OU6Uqhude+aBaMzd7wqRtkKrQXN24Y1+nR fD8g4AbMHRI13Zu6Xvp3ctDGHdAMk/G5UgI9KnMawrR42hs+wF9/enByTI+dbgj8Oy39 +SHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-transfer-encoding; bh=/BKvHaqvdrUFHgSQ8RH8d73ze3pUlmgdEgT3x6mbbzQ=; b=Ag7+zrlG6I5TjDowdWieYr6GJDkQVLcHtoPkrIwjs7yahO31xJt35Hg7HV/7ofKVkP dU50lwmMynm4tJKzfs9KBqdWUKFW2tIQYoStu3OYfJm+KgkHgQQkhV3VyWf37sGUhNEw zuQB1AsCVaorAIBa2q3fakG114VBI8ncJu4PDgR69YCMY4uFk+58gkJr7mI3KzsLpwyn dvAr6ar1sjQvfFotHnvtuPyaZV4/HJtCDdMOfHEstVvgv77gSoeBW2bjI/EkgDEblOFx waQw1Nb+iE5KwijuApU9zhHQTD2MsQShnnSciRKVR+7CKWxXbtbXKZOIofsgrtJthjgt M7ow== X-Gm-Message-State: AOAM530eoah1O85eONEm4IdYYqEL7TKqtVATpCyT5aKY1g9IF3el7Cib S7XnSy1LR39Kt5HlE4r3+KhmzOXMMkq6tWq8hEJUSdHdqe8= X-Google-Smtp-Source: ABdhPJwqcCobnE4mJgQ4mhk+5thPbwt/727ooOP/iQXlOy301tlxxxnlHx4tcqWm49X3WHKDsja0YhcggJnkKfUWZz4= X-Received: by 2002:a05:6402:1001:: with SMTP id c1mr13235306edu.26.1626426423718; Fri, 16 Jul 2021 02:07:03 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a17:906:76c8:b029:4d9:7711:78cc with HTTP; Fri, 16 Jul 2021 02:07:02 -0700 (PDT) In-Reply-To: <5DC2C69CF1837BEADA2CE21DC0DEBDF0@eigenstate.org> References: <5DC2C69CF1837BEADA2CE21DC0DEBDF0@eigenstate.org> From: Stuart Morrow Date: Fri, 16 Jul 2021 10:07:02 +0100 Message-ID: To: 9front@9front.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: storage table Subject: Re: [9front] Re: speaking of screenlock Reply-To: 9front@9front.org Precedence: bulk > What makes you think they can't access > each other's malloc'ed objects? Because it crashes in the second call to redraw (new function, only in the first of this thread, assuming you got that), and moreover, I can get past the killer 'r =3D screen->r' using a trick: redraw(void) { int fd, dx, dy; static Image *i; static Rectangle r, unusedr, screenr; Point p, q; screen =3D _screen->image; /* fullscreen */ /* we can access screen->r the first time. */ /* getwindow doesn't change it=E2=80=A6 fullscreen is fullscreen=E2=80=A6 = */ if(eqrect(screenr, unusedr)) screenr =3D screen->r; (and then s/screen->r/screenr/g for the rest of the function) just to then get killed by, I guess, draw(screen, ...). So it seems like just touching certain objects is killing me. Regardless, the following should replace what's in current screenlock: void top(void*) { int fd, n; char buf[128]; if((fd =3D open("/dev/wctl", ORDWR)) < 0) return; for(;;){ n =3D read(fd, buf, sizeof buf); if(n > 48) if(strstr(buf+48, "notcurrent")){ write(fd, "current", 7); /* rio redraws border=E2=80=A6 */ (getwindow-redraw is right here in the crashing version) } } } Stuart