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 14356 invoked from network); 14 Jul 2021 16:20:16 -0000 Received: from 1ess.inri.net (216.126.196.35) by inbox.vuxu.org with ESMTPUTF8; 14 Jul 2021 16:20:16 -0000 Received: from mail-pj1-f43.google.com ([209.85.216.43]) by 1ess; Wed Jul 14 08:54:13 -0400 2021 Received: by mail-pj1-f43.google.com with SMTP id jx7-20020a17090b46c7b02901757deaf2c8so1375174pjb.0 for <9front@9front.org>; Wed, 14 Jul 2021 05:54:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=b0lI7WxVrgVPLqZoyWid/8NsSCTh/MynOyEF69Qeh2I=; b=Qua0oGKJyGGAHpZiWExKEo4Z+e+rws197sGCFHBo4XwhQc/Rw6ZgBSPxsZVFFzt7Ww TqSPn/q0lhZ3SCjd5t0aFMNywLIDNheZ/iQEhxoH1COd02ahaOaBonlr2QLLAOfCJ88E 2YnLreGREnwKTwb0r9vlyIV5s1/b7dTUIvUEetg2SzpStLi3GZ/YMlSif3yIZWbiTlCQ 8Mj8BSRqhWQz7NDp2bFkoC2onpa96nos19gra3N3GKkbtlp5hNxckU8jINQEq03FYor1 J4/HCk54ArDqxRELsa9BYglDX0MryaHoQmqo7coNsRRtnK3bz+u/8lDDYZNf+m8VWDY1 6l9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=b0lI7WxVrgVPLqZoyWid/8NsSCTh/MynOyEF69Qeh2I=; b=A9e1vCpeNLluuVk6PuBoPyHzp9GqY/D0zLMXfKCLa4CT+dOoQQbEKyK0rMJegrXDDh 78sZGaxCKFCxn2IngpbA76nclQD+WhfvKbVNqNM8Jc1ltxUTaKg8VqpVoyzUF4sw65mt mf5+KdqqbFvX+J4nIuplmqP6fMd1ZzfYy1odGOYDsT2ploHNoaOvhz5WWXOBPZCNQQt/ c8TTRBNSptts5a1Clk8wD3GmHHUTf7MOpi13js64cW9qHT6mmsDQ5fvQdYZFh0yLFu5D eJeZnJcHo4tZKHGKt3Ocn7Az6Ouj/ha/uCAewhmL4lvwIqE5TEuDHdb0f+56s/PJvhAD /Ecg== X-Gm-Message-State: AOAM532juMGiLl8dufpStnWkpWZBswSCkHDyM2RHw5IgM2FQ3ogNEPBu yNYpqB5fCVj5u10MIHCttev7oZEfsCvcnV7OE7kyGrUP X-Google-Smtp-Source: ABdhPJxDhnYK2T4RTQ/DjRaQ7rGtqmPti4mUASSee2PlerCKzDtsfQKMZ4GAwQ6YW3tCU4Gldg7TWsTfBEjyQxRczhk= X-Received: by 2002:a17:90a:ca04:: with SMTP id x4mr9772965pjt.110.1626267246661; Wed, 14 Jul 2021 05:54:06 -0700 (PDT) MIME-Version: 1.0 References: <8C9FAE220B289A9204D46D41829E52F1@eigenstate.org> In-Reply-To: From: =?UTF-8?B?Sm9zw6kgTWlndWVsIFPDoW5jaGV6IEdhcmPDrWE=?= Date: Wed, 14 Jul 2021 14:53:55 +0200 Message-ID: To: 9front@9front.org Content-Type: text/plain; charset="UTF-8" List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: extended service rails event Subject: Re: [9front] Mouse clipping patch Reply-To: 9front@9front.org Precedence: bulk Okay, now I think the best way to solve it while keeping transparency is to rely on convention, just like ESC and Del. Programs clipping the mouse should unclip it if a particular key is pressed. Programs like screenlock can choose to ignore this convention, as they rely on having a permanent grab. Rio would simply pass the event to the focused window (if it's a window grabbing the mouse, it'll release it; if it's a nested rio, it will also pass down the event, if it's a regular window it will do whatever it wants with it). Does that sound good? On Wed, Jul 14, 2021 at 2:28 PM Stuart Morrow wrote: > > On 14/07/2021, hiro <23hiro@gmail.com> wrote: > > i still don't see it. either rio consumes the commands or it forwards > > them. i don't see anything inbetween. > > where is the complication? > > It's not a complication in terms of code, it's that it's an > untransparent interface. If we think that window management : the > windows :: the line discipline : the shell, then keyboard-driven wm is > like when the line discipline used to interpret # and @. > > There's nothing obvious about Unix commands, which one you want for > what you're trying to do. But knowing the command is *all* the > difficulty - there's no further difficulty in the "transmit the > command from the user to the shell" layer, it's just "for each letter > in the command, type that letter on the keyboard". > > The outermost layer needs to be transparent, perhaps so that stuff on > the other side of it can get more leeway to be confusing.