Re: ratpoison gets confused about what is the active frame

"D.J.J. Ring, Jr." <[email protected]> Mon, 5 Apr 2021 15:39:10 -0400
Newsgroups gmane.comp.window-managers.ratpoison.devel
Message-ID <CADO5Rbi0e8iJVi2POHC7T1qgbB1xZZ0ohiDTpviknf-XXsJLQw@mail.gmail.com>
--0000000000003a32ff05bf3edcdc
Content-Type: text/plain; charset="UTF-8"

Hello I'm just a user but I happened to read something in the ratpoison
user manual "info ratpoison" the other day, and because I think it would
help, at the risk of embarrassing myself for my ignorance, I just wanted to
post this:5.4 Rudeness
============

Some programs will attempt to steal the focus without the users
permission.  Not only is this a sign of a lame programmers attempt to
fix a window manager problem in the wrong place, it's just plain rude.
By default ratpoison will honour these rudeness requests, but it doesn't
have to.  Use the rudeness variable to deal with such programs.

 -- Command: set rudeness N
     The rudeness variable lets you decide what windows pop-up
     automatically and when.  This is often useful for those deep hack
     sessions when you absolutely can't be disturbed.

There are two kinds of windows: normal windows (like an xterm) and
     transient windows (generally pop-up dialog boxes).  When a client
     program wants to display a new window it makes a requests to
     ratpoison.  ratpoison then decides whether to grant the request and
     display the window or ignore it.  A client program can also request
     that one of its windows be raised.  You can customize ratpoison to
     either honour these requests (the default operation) or ignore
     them.

     N is a number from 0 to 15.  Each of the four bits determine which
     requests ratpoison grants.

If I've helped, I am happy and probably amazed, if I have embarrased myself
for my ignorance, excuse the message.

I love RATPOISON - it's the Windows Manager that was supposed to be - it's
so easy to use and it's great having a terminal that runs graphical
programs!

Regards,
David Ring


On Mon, Apr 5, 2021 at 3:20 PM Spiros Bousbouras <[email protected]> wrote:

> On Sun, 4 Apr 2021 13:11:42 -0700  Ian Hickson  wrote :
> > On Sun, Apr 4, 2021 at 2:41 AM Axel Svensson <[email protected]>
> wrote:
>
> > When this problem manifests, it doesn't matter where I move the focus. I
> > can manually shift the focus around to different frames (using
> "focusleft",
> > "focusdown", etc), and in each case whatever window is in that frame does
> > get keyboard focus, and ratpoison does display "Current Frame" in the
> > center of that frame, and I can use the window fine. But if I try to
> change
> > which window is in that frame using "prev" or "next", a different frame's
> > window changes. Indeed, once this issue triggers, it's always the same
> > frame that changes window regardless of how many times I shift the focus
> > around.
> >
> > > Other than that, you say something about an "offending
> > > frame". Maybe it's the window that offends you? Badly behaving
> > > applications can steal focus sometimes
> > >
> >
> > By "offending frame" I meant the frame that is capturing "prev"/"next"
> > ("offending" doesn't mean "causing offense", it means "causing
> problems").
>
> Yes , that's what Axel meant. So the question is , is there for example
> some specific application which always runs on the frame which seems to
> get the commands you execute although that frame does not have focus ? Can
> you think of anything else which may be common among the frames which
> "steal" the commands ?
>
> When the problems arises you may also try to execute the commands (i.e.
> prev , next , etc.) from the  ratpoison command line (i.e. after typing
> C-t :) to make sure there isn't anything strange happening with your
> keybindings.
>
> > Is there any way to log ratpoison's behaviour to a file so that I can see
> > if there's anything common in the logs when the problem manifests?
>
> Type from the shell command line
>     ratpoison -c sfdump > file
>
> There are a few similar commands like  sdump , fdump .The relevant
> commands tend to have "dump" as part of their name.
>
> > In any case I guess the answer to my original question is that this is
> not
> > a known thing. I'll see if I can figure out how to reproduce it.
>
> It has never come up on the list as far as I can remember.
>
>

--0000000000003a32ff05bf3edcdc
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr"><div class=3D"gmail_default" style=3D"fon=
t-size:small">Hello I&#39;m just a user but I happened to read something in=
 the ratpoison user manual &quot;info ratpoison&quot; the other day, and be=
cause I think it would help, at the risk of embarrassing myself for my igno=
rance, I just wanted to post this:5.4 Rudeness</div>=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D<br><br>Some programs will attempt to steal the focus withou=
t the users<br>permission.=C2=A0 Not only is this a sign of a lame programm=
ers attempt to<br>fix a window manager problem in the wrong place, it&#39;s=
 just plain rude.<br>By default ratpoison will honour these rudeness reques=
ts, but it doesn&#39;t<br>have to.=C2=A0 Use the rudeness variable to deal =
with such programs.<br><br>=C2=A0-- Command: set rudeness N<br>=C2=A0 =C2=
=A0 =C2=A0The rudeness variable lets you decide what windows pop-up<br>=C2=
=A0 =C2=A0 =C2=A0automatically and when.=C2=A0 This is often useful for tho=
se deep hack<br>=C2=A0 =C2=A0 =C2=A0sessions when you absolutely can&#39;t =
be disturbed.<br><br><div class=3D"gmail_default" style=3D"font-size:small"=
>There are two kinds of windows: normal windows (like an xterm) and<br>=C2=
=A0 =C2=A0 =C2=A0transient windows (generally pop-up dialog boxes).=C2=A0 W=
hen a client<br>=C2=A0 =C2=A0 =C2=A0program wants to display a new window i=
t makes a requests to<br>=C2=A0 =C2=A0 =C2=A0ratpoison. =C2=A0ratpoison the=
n decides whether to grant the request and<br>=C2=A0 =C2=A0 =C2=A0display t=
he window or ignore it.=C2=A0 A client program can also request<br>=C2=A0 =
=C2=A0 =C2=A0that one of its windows be raised.=C2=A0 You can customize rat=
poison to<br>=C2=A0 =C2=A0 =C2=A0either honour these requests (the default =
operation) or ignore<br>=C2=A0 =C2=A0 =C2=A0them.<br><br>=C2=A0 =C2=A0 =C2=
=A0N is a number from 0 to 15.=C2=A0 Each of the four bits determine which<=
br>=C2=A0 =C2=A0 =C2=A0requests ratpoison grants.<br></div><div class=3D"gm=
ail_default" style=3D"font-size:small"><br></div><div class=3D"gmail_defaul=
t" style=3D"font-size:small"></div><div class=3D"gmail_default" style=3D"fo=
nt-size:small">If I&#39;ve helped, I am happy and probably amazed, if I hav=
e embarrased=C2=A0myself for my ignorance, excuse the message.</div><div cl=
ass=3D"gmail_default" style=3D"font-size:small"><br></div><div class=3D"gma=
il_default" style=3D"font-size:small">I love RATPOISON - it&#39;s the Windo=
ws Manager that was supposed to be - it&#39;s so easy to use and it&#39;s g=
reat having a terminal that runs graphical programs!</div><div class=3D"gma=
il_default" style=3D"font-size:small"><br></div><div class=3D"gmail_default=
" style=3D"font-size:small">Regards,</div><div class=3D"gmail_default" styl=
e=3D"font-size:small">David Ring</div><div class=3D"gmail_default" style=3D=
"font-size:small"><br></div></div></div><br><div class=3D"gmail_quote"><div=
 dir=3D"ltr" class=3D"gmail_attr">On Mon, Apr 5, 2021 at 3:20 PM Spiros Bou=
sbouras &lt;<a href=3D"mailto:[email protected]" target=3D"_blank">spibou@gm=
ail.com</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"=
margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-lef=
t:1ex">On Sun, 4 Apr 2021 13:11:42 -0700=C2=A0 Ian Hickson=C2=A0 wrote :<br=
>
&gt; On Sun, Apr 4, 2021 at 2:41 AM Axel Svensson &lt;<a href=3D"mailto:mai=
[email protected]" target=3D"_blank">[email protected]</a>&gt; wrote:<=
br>
<br>
&gt; When this problem manifests, it doesn&#39;t matter where I move the fo=
cus. I<br>
&gt; can manually shift the focus around to different frames (using &quot;f=
ocusleft&quot;,<br>
&gt; &quot;focusdown&quot;, etc), and in each case whatever window is in th=
at frame does<br>
&gt; get keyboard focus, and ratpoison does display &quot;Current Frame&quo=
t; in the<br>
&gt; center of that frame, and I can use the window fine. But if I try to c=
hange<br>
&gt; which window is in that frame using &quot;prev&quot; or &quot;next&quo=
t;, a different frame&#39;s<br>
&gt; window changes. Indeed, once this issue triggers, it&#39;s always the =
same<br>
&gt; frame that changes window regardless of how many times I shift the foc=
us<br>
&gt; around.<br>
&gt; <br>
&gt; &gt; Other than that, you say something about an &quot;offending<br>
&gt; &gt; frame&quot;. Maybe it&#39;s the window that offends you? Badly be=
having<br>
&gt; &gt; applications can steal focus sometimes<br>
&gt; &gt;<br>
&gt; <br>
&gt; By &quot;offending frame&quot; I meant the frame that is capturing &qu=
ot;prev&quot;/&quot;next&quot;<br>
&gt; (&quot;offending&quot; doesn&#39;t mean &quot;causing offense&quot;, i=
t means &quot;causing problems&quot;).<br>
<br>
Yes , that&#39;s what Axel meant. So the question is , is there for example=
<br>
some specific application which always runs on the frame which seems to<br>
get the commands you execute although that frame does not have focus ? Can<=
br>
you think of anything else which may be common among the frames which<br>
&quot;steal&quot; the commands ?<br>
<br>
When the problems arises you may also try to execute the commands (i.e.<br>
prev , next , etc.) from the=C2=A0 ratpoison command line (i.e. after typin=
g<br>
C-t :) to make sure there isn&#39;t anything strange happening with your<br=
>
keybindings.<br>
<br>
&gt; Is there any way to log ratpoison&#39;s behaviour to a file so that I =
can see<br>
&gt; if there&#39;s anything common in the logs when the problem manifests?=
<br>
<br>
Type from the shell command line<br>
=C2=A0 =C2=A0 ratpoison -c sfdump &gt; file<br>
<br>
There are a few similar commands like=C2=A0 sdump , fdump .The relevant<br>
commands tend to have &quot;dump&quot; as part of their name.<br>
<br>
&gt; In any case I guess the answer to my original question is that this is=
 not<br>
&gt; a known thing. I&#39;ll see if I can figure out how to reproduce it.<b=
r>
<br>
It has never come up on the list as far as I can remember.<br>
<br>
</blockquote></div>

--0000000000003a32ff05bf3edcdc--