9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Rio: possibility to forbid resizing a window?
@ 2015-12-31 17:08 tlaronde
  2015-12-31 19:33 ` Skip Tavakkolian
  2016-01-01 22:58 ` erik quanstrom
  0 siblings, 2 replies; 5+ messages in thread
From: tlaronde @ 2015-12-31 17:08 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Hello,

After a long delay, I'm working back on kerTeX and I'm adding the
display for METAFONT (it's more interesting than one could think, since
METAFONT is the program mainly ignored while being a drawing program
and a rasterizer engine...).

But once the size of the root window for display (the user can subdivise
this root window from METAFONT) is given and the window created, the
dimension should not be altered.

There is the possibility, in X11, to give the window manager hints and
to disallow resizing the window.

Is there such possibility with rio?

TIA
--
        Thierry Laronde <tlaronde +AT+ polynum +dot+ com>
                     http://www.kergis.com/
                     http://www.arts-po.fr/
Key fingerprint = 0FF7 E906 FBAF FE95 FD89  250D 52B1 AE95 6006 F40C

--
        Thierry Laronde <tlaronde +AT+ polynum +dot+ com>
                     http://www.kergis.com/
                     http://www.arts-po.fr/
Key fingerprint = 0FF7 E906 FBAF FE95 FD89  250D 52B1 AE95 6006 F40C



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [9fans] Rio: possibility to forbid resizing a window?
  2015-12-31 17:08 [9fans] Rio: possibility to forbid resizing a window? tlaronde
@ 2015-12-31 19:33 ` Skip Tavakkolian
  2015-12-31 20:22   ` tlaronde
  2016-01-01 22:58 ` erik quanstrom
  1 sibling, 1 reply; 5+ messages in thread
From: Skip Tavakkolian @ 2015-12-31 19:33 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

[-- Attachment #1: Type: text/plain, Size: 1241 bytes --]

I wonder if it would work if wctl was chmod to read-only? Might break other
things.

On Thu, 31 Dec 2015, 9:08 a.m.  <tlaronde@polynum.com> wrote:

> Hello,
>
> After a long delay, I'm working back on kerTeX and I'm adding the
> display for METAFONT (it's more interesting than one could think, since
> METAFONT is the program mainly ignored while being a drawing program
> and a rasterizer engine...).
>
> But once the size of the root window for display (the user can subdivise
> this root window from METAFONT) is given and the window created, the
> dimension should not be altered.
>
> There is the possibility, in X11, to give the window manager hints and
> to disallow resizing the window.
>
> Is there such possibility with rio?
>
> TIA
> --
>         Thierry Laronde <tlaronde +AT+ polynum +dot+ com>
>                      http://www.kergis.com/
>                      http://www.arts-po.fr/
> Key fingerprint = 0FF7 E906 FBAF FE95 FD89  250D 52B1 AE95 6006 F40C
>
> --
>         Thierry Laronde <tlaronde +AT+ polynum +dot+ com>
>                      http://www.kergis.com/
>                      http://www.arts-po.fr/
> Key fingerprint = 0FF7 E906 FBAF FE95 FD89  250D 52B1 AE95 6006 F40C
>
>

[-- Attachment #2: Type: text/html, Size: 1882 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [9fans] Rio: possibility to forbid resizing a window?
  2015-12-31 19:33 ` Skip Tavakkolian
@ 2015-12-31 20:22   ` tlaronde
  0 siblings, 0 replies; 5+ messages in thread
From: tlaronde @ 2015-12-31 20:22 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On Thu, Dec 31, 2015 at 07:33:42PM +0000, Skip Tavakkolian wrote:
> I wonder if it would work if wctl was chmod to read-only? Might break other
> things.

Hum... Thanks for the suggestion, but I imagine that rio, when a
user resizes with the mouse a window, does not send commands, pixel
by pixel, to the window for resizing but call the very code called
for the command passed via wctl?

Actually, I will not use neither wctl, nor cons or mouse, since the
window is just for the graphical display. I will not fork either a
process and will just draw using the $wsys hierachy (since the
namespace is the one of METAFONT and the particular window files
in the namespace will be the ones of the shell where mf was called).

>
> On Thu, 31 Dec 2015, 9:08 a.m.  <tlaronde@polynum.com> wrote:
>
> > Hello,
> >
> > After a long delay, I'm working back on kerTeX and I'm adding the
> > display for METAFONT (it's more interesting than one could think, since
> > METAFONT is the program mainly ignored while being a drawing program
> > and a rasterizer engine...).
> >
> > But once the size of the root window for display (the user can subdivise
> > this root window from METAFONT) is given and the window created, the
> > dimension should not be altered.
> >
> > There is the possibility, in X11, to give the window manager hints and
> > to disallow resizing the window.
> >
> > Is there such possibility with rio?
> >
> > TIA
> > --
> >         Thierry Laronde <tlaronde +AT+ polynum +dot+ com>
> >                      http://www.kergis.com/
> >                      http://www.arts-po.fr/
> > Key fingerprint = 0FF7 E906 FBAF FE95 FD89  250D 52B1 AE95 6006 F40C
> >
> > --
> >         Thierry Laronde <tlaronde +AT+ polynum +dot+ com>
> >                      http://www.kergis.com/
> >                      http://www.arts-po.fr/
> > Key fingerprint = 0FF7 E906 FBAF FE95 FD89  250D 52B1 AE95 6006 F40C
> >
> >

--
        Thierry Laronde <tlaronde +AT+ polynum +dot+ com>
                     http://www.kergis.com/
                     http://www.arts-po.fr/
Key fingerprint = 0FF7 E906 FBAF FE95 FD89  250D 52B1 AE95 6006 F40C



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [9fans] Rio: possibility to forbid resizing a window?
  2015-12-31 17:08 [9fans] Rio: possibility to forbid resizing a window? tlaronde
  2015-12-31 19:33 ` Skip Tavakkolian
@ 2016-01-01 22:58 ` erik quanstrom
  2016-01-02  0:05   ` tlaronde
  1 sibling, 1 reply; 5+ messages in thread
From: erik quanstrom @ 2016-01-01 22:58 UTC (permalink / raw)
  To: 9fans

> Is there such possibility with rio?

yes, this is implemented by games/sudoku.  just refuse to resize.

- erik



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [9fans] Rio: possibility to forbid resizing a window?
  2016-01-01 22:58 ` erik quanstrom
@ 2016-01-02  0:05   ` tlaronde
  0 siblings, 0 replies; 5+ messages in thread
From: tlaronde @ 2016-01-02  0:05 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On Fri, Jan 01, 2016 at 02:58:07PM -0800, erik quanstrom wrote:
> > Is there such possibility with rio?
>
> yes, this is implemented by games/sudoku.  just refuse to resize.
>

Thanks. I will give a look to the code.
--
        Thierry Laronde <tlaronde +AT+ polynum +dot+ com>
                     http://www.kergis.com/
                     http://www.arts-po.fr/
Key fingerprint = 0FF7 E906 FBAF FE95 FD89  250D 52B1 AE95 6006 F40C



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-01-02  0:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-31 17:08 [9fans] Rio: possibility to forbid resizing a window? tlaronde
2015-12-31 19:33 ` Skip Tavakkolian
2015-12-31 20:22   ` tlaronde
2016-01-01 22:58 ` erik quanstrom
2016-01-02  0:05   ` tlaronde

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).