<div dir="ltr">I'm sorry for the late reply. I've realized I made a mistake in the initial post, the server is actually running motif windows manager.<div><br></div><div>The output of xlsclients is:</div><div><br></div><div># xlsclients -al<br>Window 0x60005b:<br> Machine: localhost.localdomain<br> Name: mwm<br> Icon Name: mwm<br> Command: /usr/bin/mwm<br> Instance/Class: mwm/Mwm<br></div><div><br></div><div>The output of xwininfo is:<div><br></div><div># xwininfo -root -tree<br><br>xwininfo: Window id: 0xde (the root window) (has no name)<br><br> Root window id: 0xde (the root window) (has no name)<br> Parent window id: 0x0 (none)<br> 13 children:<br> 0x600088 (has no name): () 800x600+0+0 +0+0<br> 1 child:<br> 0x600089 (has no name): () 800x600+0+0 +0+0<br> 1 child:<br> 0x800005 "CTM - tc3": ("
CTM
" "
CTM
") 800x600+0+0 +0+0<br> 0x60008a (has no name): () 62x79+0+0 +0+0<br> 0x800007 (has no name): () 1x1+0+0 +0+0<br> 0x800003 (has no name): () 3x3+0+0 +0+0<br> 0x60005e (has no name): () 5x5+0+0 +0+0<br> 1 child:<br> 0x60005f (has no name): () 117x153+0+0 +0+0<br> 0xa00001 (has no name): () 10x10+-20+-20 +-20+-20<br> 0x60005b "mwm": ("mwm" "Mwm") 10x10+10000+0 +10000+0<br> 0x600055 (has no name): () 5x5+0+0 +0+0<br> 1 child:<br> 0x600056 (has no name): () 84x175+0+0 +0+0<br> 0x600054 (has no name): () 1x1+0+0 +0+0<br> 0x600023 (has no name): () 10x10+-100+-100 +-100+-100<br> 0x600015 (has no name): () 10x10+10000+10000 +10000+10000<br> 1 child:<br> 0x600016 (has no name): () 10x10+0+0 +10000+10000<br> 0x600007 (has no name): () 1x1+0+0 +0+0<br> 0x600006 "mwm": ("mwm" "Mwm") 1x1+0+0 +0+0<br><div><br></div><div>Where "
CTM
" is an executable running in a separate computer on the same network, showing its content on the local X server using "export DISPLAY=...". When that machine dies, the screen does not go black, instead the last image of the
CTM executable stays on screen. </div><div><br></div><div>Then if I try to do a netstat, I can see that the TCP connections from the machine (that is now powered off) are still ESTABLISHED. </div><div><br></div><div>I guess there should be a way of activating a KEEPALIVE mechanism on the connection to the Xorg, but I'm not quite sure how to do that. The application is using Qt by the way, if it matters.</div><div><br></div><div>Regards.</div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">El mié, 24 feb 2021 a las 10:18, Ilya Anfimov (<<a href="mailto:ilan@tzirechnoy.com">ilan@tzirechnoy.com</a>>) escribió:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Wed, Feb 17, 2021 at 05:13:45PM +0100, Jos?? Tom??s Tocino Garc??a wrote:<br>
> Hello.<br>
> I have an xorg server running in a Linux box with no wm, and a separate<br>
> machine running an application exporting to the X server in the first<br>
> machine.<br>
> <br>
> The problem arises when the connection is lost between the two machines or<br>
> the application exporting the display fails. The X111 server keeps a stale<br>
> image on screen that is obviously unresponsive. I'd rather it turn black<br>
> the moment the connection is lost.<br>
> <br>
> Is there a way of forcing the X server to stop showing that stale image<br>
> when the connection is lost? Not sure if it has something to do with it<br>
> not having a wm.<br>
> Thanks!<br>
> Regards.<br>
<br>
This looks rather strange. Usually connection failures<br>
closes tcp socket, then windows, created by the<br>
app should be destroyed be the server.<br>
What does xlsclients -al and xwininfo -root -tree show<br>
before and after failure?<br>
Does the client still connected? Does it's window(s) still exists?<br>
<br>
> --<br>
> Jose Tomas Tocino<br>
> <a href="http://josetomastocino.com" rel="noreferrer" target="_blank">http://josetomastocino.com</a><br>
> <a href="http://cadizenmoto.com" rel="noreferrer" target="_blank">http://cadizenmoto.com</a><br>
<br>
> _______________________________________________<br>
> <a href="mailto:xorg@lists.x.org" target="_blank">xorg@lists.x.org</a>: X.Org support<br>
> Archives: <a href="http://lists.freedesktop.org/archives/xorg" rel="noreferrer" target="_blank">http://lists.freedesktop.org/archives/xorg</a><br>
> Info: <a href="https://lists.x.org/mailman/listinfo/xorg" rel="noreferrer" target="_blank">https://lists.x.org/mailman/listinfo/xorg</a><br>
> Your subscription address: %(user_address)s<br>
<br>
_______________________________________________<br>
<a href="mailto:xorg@lists.x.org" target="_blank">xorg@lists.x.org</a>: X.Org support<br>
Archives: <a href="http://lists.freedesktop.org/archives/xorg" rel="noreferrer" target="_blank">http://lists.freedesktop.org/archives/xorg</a><br>
Info: <a href="https://lists.x.org/mailman/listinfo/xorg" rel="noreferrer" target="_blank">https://lists.x.org/mailman/listinfo/xorg</a><br>
Your subscription address: %(user_address)s<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div style="font-size:small">José Tomás Tocino</div><div style="font-size:small"><a href="http://josetomastocino.com" target="_blank">http://josetomastocino.com</a></div><div style="font-size:small"><a href="http://cadizenmoto.com" target="_blank">http://cadizenmoto.com</a></div></div></div></div>