Re: pop up windows

Bart Massey <[email protected]> Sun, 16 Feb 2025 17:47:19 -0800
Newsgroups gmane.comp.freedesktop.xcb
Message-ID <CAA6gtp=u1iiCrf338sk9F7feauzxWtCC+gOgeUn-_iBhDFfGbA@mail.gmail.com>
--0000000000009e91fc062e4cb696
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

You should not need to reinstall xcb: it has been stable for a long time
and is unlikely to be the source of a problem.

You should not need to reboot when the grab is successful. First, you
should be able to switch to another virtual console and kill your program
from there in the worst case. Second, the way the program is currently
written, clicking in the program's main window deletes the dialog window,
which ends the grab. (Since the grab is with pointer mode Asynchronous, the
grabbing application can continue to process events.)

I can verify that the version of your code here
https://gist.github.com/BartMassey/f4a904cbefc18045b32f39cfcf1b11f6
compiles and runs cleanly for me, and does grab the pointer when clicked in
the dialog window, such that I cannot interact with other applications.

Good luck!

On Sun, Feb 16, 2025 at 3:09=E2=80=AFAM Steven J Abner <[email protected]=
> wrote:

> On Sun, Feb 16 2025 at 08:31:57 AM +0000, Steven J Abner
> <[email protected]> wrote:
> > xcb_ungrab_pointer() so on running you should have to reboot since
> > grab pointer aint letting go :)
>
> Please let me know your result on the having to reboot. That leads me
> to think, if I'm the only one with problem, then maybe I should try a
> reinstall of xcb. Maybe a single bit is off on that function for me.
> Also found the some of my focus code was unneeded with a working grab,
> so is possible that it's hiding a non-working grab. Can also use debug
> code and turn on motion reporting to see if events outside of white
> window, or huge button :) or being reported.
>  Kinda scared to re-install xcb, so please let me know.
> Thanks
> Steve
>
>
>

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

<div dir=3D"ltr"><div>You should not need to reinstall xcb: it has been sta=
ble for a long time and is unlikely to be the source of a problem.</div><di=
v><br></div><div>You should not need to reboot when the grab is successful.=
 First, you should be able to switch to another virtual console and kill yo=
ur program from there in the worst case. Second, the way the program is cur=
rently written, clicking in the program&#39;s main window deletes the dialo=
g window, which ends the grab. (Since the grab is with pointer mode Asynchr=
onous, the grabbing application can continue to process events.)<br><br></d=
iv><div>I can verify that the version of your code here <a href=3D"https://=
gist.github.com/BartMassey/f4a904cbefc18045b32f39cfcf1b11f6">https://gist.g=
ithub.com/BartMassey/f4a904cbefc18045b32f39cfcf1b11f6</a> compiles and runs=
 cleanly for me, and does grab the pointer when clicked in the dialog windo=
w, such that I cannot interact with other applications.</div><div><br></div=
><div>Good luck!<br></div></div><br><div class=3D"gmail_quote gmail_quote_c=
ontainer"><div dir=3D"ltr" class=3D"gmail_attr">On Sun, Feb 16, 2025 at 3:0=
9=E2=80=AFAM Steven J Abner &lt;<a href=3D"mailto:[email protected]">pheo=
[email protected]</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" s=
tyle=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);pad=
ding-left:1ex">On Sun, Feb 16 2025 at 08:31:57 AM +0000, Steven J Abner <br=
>
&lt;<a href=3D"mailto:[email protected]" target=3D"_blank">pheonix.sja@at=
t.net</a>&gt; wrote:<br>
&gt; xcb_ungrab_pointer() so on running you should have to reboot since <br=
>
&gt; grab pointer aint letting go :)<br>
<br>
Please let me know your result on the having to reboot. That leads me <br>
to think, if I&#39;m the only one with problem, then maybe I should try a <=
br>
reinstall of xcb. Maybe a single bit is off on that function for me. <br>
Also found the some of my focus code was unneeded with a working grab, <br>
so is possible that it&#39;s hiding a non-working grab. Can also use debug =
<br>
code and turn on motion reporting to see if events outside of white <br>
window, or huge button :) or being reported.<br>
=C2=A0Kinda scared to re-install xcb, so please let me know.<br>
Thanks<br>
Steve<br>
<br>
<br>
</blockquote></div>

--0000000000009e91fc062e4cb696--