<html>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'>
</head>
<body>
<style>
font{
line-height: 1.6;
}
ul,ol{
padding-left: 20px;
list-style-position: inside;
}
</style>
<div style = 'font-family:微软雅黑,Verdana,"Microsoft Yahei",SimSun,sans-serif;font-size:14px; line-height:1.6;'>
<div ></div><div>
<div>
<span>ps: </span></div><div><span>I print the status the xserver replies while executing xwininfo( <em>xcb_grab_pointer_reply</em> function returns). And the value of status is 1.
</span></div><div><span>I check it at <a href="https://gitlab.freedesktop.org/xorg/proto/xcbproto/-/blob/1388374c7149114888a6a5cd6e9bf6ad4b42adf8/src/xproto.xml#L2573-2579:" _src="https://gitlab.freedesktop.org/xorg/proto/xcbproto/-/blob/1388374c7149114888a6a5cd6e9bf6ad4b42adf8/src/xproto.xml#L2573-2579:">https://gitlab.freedesktop.org/xorg/proto/xcbproto/-/blob/1388374c7149114888a6a5cd6e9bf6ad4b42adf8/src/xproto.xml#L2573-2579</a> :</span></div><div><pre class="code highlight" lang="xml"><span id="LC2573" lang="xml" data-testid="content" class="line hll"><span class=""> </span><span class="hljs-tag"><span class="hljs-tag"><</span><span class="hljs-name">enum</span><span class="hljs-tag"> </span><span class="hljs-attr">name</span><span class="hljs-tag">=</span><span class="hljs-string">"GrabStatus"</span><span class="hljs-tag">></span></span><span class=""></span></span>
<span id="LC2574" lang="xml" data-testid="content" class="line hll"><span class=""> </span><span class="hljs-tag"><span class="hljs-tag"><</span><span class="hljs-name">item</span><span class="hljs-tag"> </span><span class="hljs-attr">name</span><span class="hljs-tag">=</span><span class="hljs-string">"Success"</span><span class="hljs-tag">></span></span><span class=""> </span><span class="hljs-tag"><span class="hljs-tag"><</span><span class="hljs-name">value</span><span class="hljs-tag">></span></span><span class="">0</span><span class="hljs-tag"><span class="hljs-tag"></</span><span class="hljs-name">value</span><span class="hljs-tag">></span></span><span class="hljs-tag"><span class="hljs-tag"></</span><span class="hljs-name">item</span><span class="hljs-tag">></span></span><span class=""></span></span>
<span id="LC2575" lang="xml" data-testid="content" class="line hll"><span class=""> </span><span class="hljs-tag"><span class="hljs-tag"><</span><span class="hljs-name">item</span><span class="hljs-tag"> </span><span class="hljs-attr">name</span><span class="hljs-tag">=</span><span class="hljs-string">"AlreadyGrabbed"</span><span class="hljs-tag">></span></span><span class="hljs-tag"><span class="hljs-tag"><</span><span class="hljs-name">value</span><span class="hljs-tag">></span></span><span class="">1</span><span class="hljs-tag"><span class="hljs-tag"></</span><span class="hljs-name">value</span><span class="hljs-tag">></span></span><span class="hljs-tag"><span class="hljs-tag"></</span><span class="hljs-name">item</span><span class="hljs-tag">></span></span><span class=""></span></span>
<span id="LC2576" lang="xml" data-testid="content" class="line hll"><span class=""> </span><span class="hljs-tag"><span class="hljs-tag"><</span><span class="hljs-name">item</span><span class="hljs-tag"> </span><span class="hljs-attr">name</span><span class="hljs-tag">=</span><span class="hljs-string">"InvalidTime"</span><span class="hljs-tag">></span></span><span class=""> </span><span class="hljs-tag"><span class="hljs-tag"><</span><span class="hljs-name">value</span><span class="hljs-tag">></span></span><span class="">2</span><span class="hljs-tag"><span class="hljs-tag"></</span><span class="hljs-name">value</span><span class="hljs-tag">></span></span><span class="hljs-tag"><span class="hljs-tag"></</span><span class="hljs-name">item</span><span class="hljs-tag">></span></span><span class=""></span></span>
<span id="LC2577" lang="xml" data-testid="content" class="line hll"><span class=""> </span><span class="hljs-tag"><span class="hljs-tag"><</span><span class="hljs-name">item</span><span class="hljs-tag"> </span><span class="hljs-attr">name</span><span class="hljs-tag">=</span><span class="hljs-string">"NotViewable"</span><span class="hljs-tag">></span></span><span class=""> </span><span class="hljs-tag"><span class="hljs-tag"><</span><span class="hljs-name">value</span><span class="hljs-tag">></span></span><span class="">3</span><span class="hljs-tag"><span class="hljs-tag"></</span><span class="hljs-name">value</span><span class="hljs-tag">></span></span><span class="hljs-tag"><span class="hljs-tag"></</span><span class="hljs-name">item</span><span class="hljs-tag">></span></span><span class=""></span></span>
<span id="LC2578" lang="xml" data-testid="content" class="line hll"><span class=""> </span><span class="hljs-tag"><span class="hljs-tag"><</span><span class="hljs-name">item</span><span class="hljs-tag"> </span><span class="hljs-attr">name</span><span class="hljs-tag">=</span><span class="hljs-string">"Frozen"</span><span class="hljs-tag">></span></span><span class=""> </span><span class="hljs-tag"><span class="hljs-tag"><</span><span class="hljs-name">value</span><span class="hljs-tag">></span></span><span class="">4</span><span class="hljs-tag"><span class="hljs-tag"></</span><span class="hljs-name">value</span><span class="hljs-tag">></span></span><span class="hljs-tag"><span class="hljs-tag"></</span><span class="hljs-name">item</span><span class="hljs-tag">></span></span><span class=""></span></span>
<span id="LC2579" lang="xml" data-testid="content" class="line hll"><span class=""> </span><span class="hljs-tag"><span class="hljs-tag"></</span><span class="hljs-name">enum</span><span class="hljs-tag">></span></span></span>
</pre></div>
<div>
<span>so the status is AlreadyGrabbed !!!
</span></div><div><span>then is seems i need to debug the xserver finding out why there is no existed active grab but status is </span><span style="line-height: 22.4px;">AlreadyGrabbed. Where the part of code about xserver?</span></div>
<div id="ntes-pcmac-signature" style="font-family:'微软雅黑'">
<div style="font-size:14px; padding: 0; margin:0;line-height:14px;">
<div style="padding-bottom:6px;margin-bottom:10px;border-bottom:1px solid #e6e6e6;display:inline-block;">
<a href="https://maas.mail.163.com/dashi-web-extend/html/proSignature.html?ftlId=1&name=starcold14&uid=starcold14%40gmail.com&iconUrl=https%3A%2F%2Fmail-online.nosdn.127.net%2Fqiyelogo%2FdefaultAvatar.png&items=%5B%22starcold14%40gmail.com%22%5D" style="display:block;background:#fff; max-width: 400px; _width: 400px;padding:15px 0 10px 0;text-decoration: none; outline:none;-webkit-tap-highlight-color:transparent;-webkit-text-size-adjust:none !important;text-size-adjust:none !important;"><table cellpadding="0" style="width: 100%; max-width: 100%; table-layout: fixed; border-collapse: collapse;color: #9b9ea1;font-size: 14px;line-height:1.3;-webkit-text-size-adjust:none !important;text-size-adjust:none !important;"><tbody style="font-family: 'PingFang SC', 'Hiragino Sans GB','WenQuanYi Micro Hei', 'Microsoft Yahei', '微软雅黑', verdana !important; word-wrap:break-word; word-break:break-all;-webkit-text-size-adjust:none !important;text-size-adjust:none !important;"><tr class="firstRow"><td width="38" style="padding:0; box-sizing: border-box; width: 38px;"><img width="38" height="38" style="vertical-align:middle; width: 38px; height: 38px; border-radius:50%;" src="https://mail-online.nosdn.127.net/qiyelogo/defaultAvatar.png"></td><td style="padding: 0 0 0 10px; color: #31353b;"><div style="font-size: 16px;font-weight:bold; width:100%; white-space: nowrap; overflow:hidden;text-overflow: ellipsis;">starcold14</div></td></tr><tr width="100%" style="font-size: 14px !important; width: 100%;"><td colspan="2" style="padding:10px 0 0 0; font-size:14px !important; width: 100%;"><div style="width: 100%;font-size: 14px !important;word-wrap:break-word;word-break:break-all;">starcold14@gmail.com</div></td></tr></tbody></table></a>
</div>
</div>
</div>
</div><div class="J-reply" style="background-color:#f2f2f2;color:black;padding-top:6px;padding-bottom:6px;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;margin-top:45px;margin-bottom:20px;font-family:'微软雅黑';">
<div style="font-size:12px;line-height:1.5;word-break:break-all;margin-left:10px;margin-right:10px">On <span class="mail-date">1/5/2024 16:10</span>,<a class="mail-to" style="text-decoration:none;color:#2a83f2;" href="mailto:starcold14@gmail.com">starcold14<starcold14@gmail.com></a> wrote: </div>
</div>
<blockquote id="ntes-pcmail-quote" style="margin: 0; padding: 0; font-size: 14px; font-family: '微软雅黑';">
<style>
font{
line-height: 1.6;
}
ul,ol{
padding-left: 20px;
list-style-position: inside;
}
</style>
<div style="font-family:微软雅黑,Verdana,"Microsoft Yahei",SimSun,sans-serif;font-size:14px; line-height:1.6;">
<div></div><div>
<div>
<div style="line-height: 22.4px;">Hi, alan & Uli & xcb friends,</div><div style="line-height: 22.4px;"><br></div><div style="line-height: 22.4px;">I was trying to reproduce my problem, and today it comes.</div><div style="line-height: 22.4px;">When the problem happened, I typed "xdotool key XF86LogGrabInfo" twice.</div><div style="line-height: 22.4px;">And the result seems no "active grab" exists :</div><div style="line-height: 22.4px;">......</div><div style="line-height: 22.4px;">[ 3094.823] (II) Printing all currently active device grabs:<br>[ 3094.823] (II) End list of active device grabs</div><div style="line-height: 22.4px;">......</div><div style="line-height: 22.4px;"><br></div><div style="line-height: 22.4px;">How it be possible? QAQ</div><div style="line-height: 22.4px;">Since we think it could be FROZEN or ALREADYGRABED.</div><div style="line-height: 22.4px;"><br></div><div style="line-height: 22.4px;">The attachment is Xorg.0.log</div><div style="line-height: 22.4px;"><br></div><div style="line-height: 22.4px;">Yours sincerely.</div><span>
</span>
</div>
<div>
<span>
<br>
</span>
</div>
<div style="font-family:'微软雅黑'">
<div style="font-size:14px; padding: 0; margin:0;line-height:14px;">
<div style="padding-bottom:6px;margin-bottom:10px;border-bottom:1px solid #e6e6e6;display:inline-block;">
<a href="https://maas.mail.163.com/dashi-web-extend/html/proSignature.html?ftlId=1&name=starcold14&uid=starcold14%40gmail.com&iconUrl=https%3A%2F%2Fmail-online.nosdn.127.net%2Fqiyelogo%2FdefaultAvatar.png&items=%5B%22starcold14%40gmail.com%22%5D" style="display:block;background:#fff; max-width: 400px; _width: 400px;padding:15px 0 10px 0;text-decoration: none; outline:none;-webkit-tap-highlight-color:transparent;-webkit-text-size-adjust:none !important;text-size-adjust:none !important;"><table cellpadding="0" style="width: 100%; max-width: 100%; table-layout: fixed; border-collapse: collapse;color: #9b9ea1;font-size: 14px;line-height:1.3;-webkit-text-size-adjust:none !important;text-size-adjust:none !important;"><tbody style="font-family: 'PingFang SC', 'Hiragino Sans GB','WenQuanYi Micro Hei', 'Microsoft Yahei', '微软雅黑', verdana !important; word-wrap:break-word; word-break:break-all;-webkit-text-size-adjust:none !important;text-size-adjust:none !important;"><tr class="firstRow"><td width="38" style="padding:0; box-sizing: border-box; width: 38px;"><img width="38" height="38" style="vertical-align:middle; width: 38px; height: 38px; border-radius:50%;" src="https://mail-online.nosdn.127.net/qiyelogo/defaultAvatar.png"></td><td style="padding: 0 0 0 10px; color: #31353b;"><div style="font-size: 16px;font-weight:bold; width:100%; white-space: nowrap; overflow:hidden;text-overflow: ellipsis;">starcold14</div></td></tr><tr width="100%" style="font-size: 14px !important; width: 100%;"><td colspan="2" style="padding:10px 0 0 0; font-size:14px !important; width: 100%;"><div style="width: 100%;font-size: 14px !important;word-wrap:break-word;word-break:break-all;">starcold14@gmail.com</div></td></tr></tbody></table></a>
</div>
</div>
</div>
</div><div class="J-reply" style="background-color:#f2f2f2;color:black;padding-top:6px;padding-bottom:6px;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;margin-top:45px;margin-bottom:20px;font-family:'微软雅黑';">
<div style="font-size:12px;line-height:1.5;word-break:break-all;margin-left:10px;margin-right:10px">On <span class="mail-date">1/4/2024 01:45</span>,<a class="mail-to" style="text-decoration:none;color:#2a83f2;" href="mailto:alan.coopersmith@oracle.com">Alan Coopersmith<alan.coopersmith@oracle.com></a> wrote: </div>
</div>
<blockquote id="ntes-pcmail-quote" style="margin: 0; padding: 0; font-size: 14px; font-family: '微软雅黑';">
On 1/2/24 23:56, Uli Schlachter wrote:<br> <blockquote class="mmbqc1">Sadly, I have no good suggestion on what to do about this random grab or <br> how to figure out which program grabbed the mouse.<br></blockquote><br>Xorg allows defining a hotkey to log current grabs to the log file - you<br>can trigger it via the command line with:<br> xdotool key "XF86LogGrabInfo"<br><br>Google finds some pages with additional tips on using it, such as:<br>https://thesynack.com/posts/hotkeys-grabbed/<br>https://unix.stackexchange.com/questions/23164/manipulating-x-key-and-pointer-grabs-on-the-command-line<br>https://gitlab.freedesktop.org/xorg/xserver/-/commit/7d2543a3cb3089241982ce4f8984fd723d5312a1<br><br>-- <br> -Alan Coopersmith- alan.coopersmith@oracle.com<br> Oracle Solaris Engineering - https://blogs.oracle.com/solaris<br><br></blockquote><!--😀-->
</div></blockquote><!--😀-->
</div>
</body>
</html>