<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>433079</bug_id>
          
          <creation_ts>2021-02-17 15:28:23 +0000</creation_ts>
          <short_desc>On Wayland container windows created by XEmbedSNIProxy are not stacked below root window</short_desc>
          <delta_ts>2025-10-19 01:07:52 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Plasma</classification>
          <product>plasmashell</product>
          <component>XembedSNIProxy</component>
          <version>5.21.0</version>
          <rep_platform>openSUSE</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.kde.org/show_bug.cgi?id=432744</see_also>
    
    <see_also>https://bugs.kde.org/show_bug.cgi?id=409768</see_also>
    
    <see_also>https://bugs.kde.org/show_bug.cgi?id=485971</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>wayland-only</keywords>
          <priority>HI</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>tneo</reporter>
          <assigned_to name="Plasma Bugs List">plasma-bugs-null</assigned_to>
          <cc>auxsvr</cc>
    
    <cc>bizyaev</cc>
    
    <cc>brianjcohen</cc>
    
    <cc>budinero</cc>
    
    <cc>bugseforuns</cc>
    
    <cc>butirsky</cc>
    
    <cc>darinsmiller</cc>
    
    <cc>dennis.lissov</cc>
    
    <cc>dion</cc>
    
    <cc>dpbasti</cc>
    
    <cc>dylanwolters</cc>
    
    <cc>el</cc>
    
    <cc>felixl</cc>
    
    <cc>j.filzmaier</cc>
    
    <cc>jesus.guerrero.botella</cc>
    
    <cc>katonag</cc>
    
    <cc>kde</cc>
    
    <cc>kdebugs</cc>
    
    <cc>kocelfc</cc>
    
    <cc>kodyvonbargen</cc>
    
    <cc>mario+bugs.kde.org</cc>
    
    <cc>materka</cc>
    
    <cc>mauromol</cc>
    
    <cc>mikel5764</cc>
    
    <cc>mistrasserino</cc>
    
    <cc>m_becker</cc>
    
    <cc>nairaner</cc>
    
    <cc>nate</cc>
    
    <cc>noahadvs</cc>
    
    <cc>n_s_mendoza</cc>
    
    <cc>plasma-bugs-null</cc>
    
    <cc>postix</cc>
    
    <cc>rdieter</cc>
    
    <cc>ryu.ketsueki</cc>
    
    <cc>sam</cc>
    
    <cc>tddzmely</cc>
    
    <cc>thothonegan</cc>
    
    <cc>timofeevsv1989</cc>
    
    <cc>xalt7x.service</cc>
    
    <cc>zetaphor</cc>
          
          <cf_commitlink>https://invent.kde.org/plasma/plasma-workspace/-/commit/50bbe56bb08f9b265ad56510e2adc37db66f4d2d</cf_commitlink>
          <cf_versionfixedin>6.1</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2003359</commentid>
    <comment_count>0</comment_count>
    <who name="">tneo</who>
    <bug_when>2021-02-17 15:28:23 +0000</bug_when>
    <thetext>SUMMARY
When the panel is at the top of the screen and the kickoff menu in the top-left corner, when clicking the menu icon Claws-mail is opened.

STEPS TO REPRODUCE
1. Start Plasma wayland session
2. Place panel at top and the kickoff menu in top-left corner
3. Start claws-mail and minimise to tray
4. Click on the Kickoff menu.

OBSERVED RESULT
Claws-mail is focused and brought forward.

EXPECTED RESULT
The kickoff menu to be opened.

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20210215
KDE Plasma Version: 5.21.0
KDE Frameworks Version: 5.78.0
Qt Version: 5.15.2
Kernel Version: 5.10.16-1-default


ADDITIONAL INFORMATION
The keyboard button combination assigned to kickoff still opens the menu. This behaviour is only seen when using a wayland session.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2003480</commentid>
    <comment_count>1</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2021-02-17 19:30:20 +0000</bug_when>
    <thetext>1. Does this still happen if you click on the bottom-right corner of the kickoff icon, not the top-left corner of it?

2. Do you have compositing turned off?

If both are true, this is probably an example of Bug 432744.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2003527</commentid>
    <comment_count>2</comment_count>
    <who name="">tneo</who>
    <bug_when>2021-02-17 20:51:09 +0000</bug_when>
    <thetext>Ad 1: Yes, this happens whenever and where-ever I click on the kickoff icon. This only happens if the panel is placed at top or left, where kickoff is residing in the top-left corner. When placed on the right or bottom there is no issue.

When I close claws-mail it starts working again. The action might switch to a different gtk program. Though the behaviour is the same, the menu is not opening.

This behaviour is only seen when using Wayland. 

Ad 2: I have compositing enabled, with plasma 5.21 I don&apos;t see how to turn it off. In the issue you relate to there is no black square for me on the top-left corner. It all looks clean as expected.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2003529</commentid>
    <comment_count>3</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2021-02-17 20:53:45 +0000</bug_when>
    <thetext>Thanks. Some more questions for you:

3. If you move your panel elsewhere so that the Kickoff icon is no longer in the top-left corner, does claws-mail still open if you click in that spot in the top-left corner?

4. Does the problem go away if you run `killall xembedsniproxy` in a terminal window?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2003545</commentid>
    <comment_count>4</comment_count>
    <who name="">tneo</who>
    <bug_when>2021-02-17 21:45:10 +0000</bug_when>
    <thetext>Ad 3: The behaviour is tied to the top-left corner. When I click there it opens claws. The click action becomes available roughly when you see the expose illumination come up.

Ad 4: That stopped the behaviour but also made claws hide, so that I can&apos;t acces it. 

Thus it does seem related to your issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2003583</commentid>
    <comment_count>5</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2021-02-17 23:06:46 +0000</bug_when>
    <thetext>I had a feeling. It&apos;s the same issue--or at least the same underlying root cause.

*** This bug has been marked as a duplicate of bug 432744 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2008091</commentid>
    <comment_count>6</comment_count>
    <who name="Konrad Materka">materka</who>
    <bug_when>2021-03-02 22:43:02 +0000</bug_when>
    <thetext>*** Bug 433396 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2008277</commentid>
    <comment_count>7</comment_count>
    <who name="Konrad Materka">materka</who>
    <bug_when>2021-03-03 16:51:22 +0000</bug_when>
    <thetext>Just to be sure - can you test on X11, to confirm that it only affects Wayland?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2041384</commentid>
    <comment_count>8</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2021-06-16 17:14:48 +0000</bug_when>
    <thetext>*** Bug 438690 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2041943</commentid>
    <comment_count>9</comment_count>
    <who name="Nataniel">n_s_mendoza</who>
    <bug_when>2021-06-18 08:28:32 +0000</bug_when>
    <thetext>(In reply to Konrad Materka from comment #7)
&gt; Just to be sure - can you test on X11, to confirm that it only affects
&gt; Wayland?

I have the same problem but with MegaSync instead of Claws-mail and it happened only after I switched to Wayland (because devs keep saying plasma is now wayland-ready so I tried)! So yeah, doesn&apos;t happen in X11 :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2082392</commentid>
    <comment_count>10</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2021-12-03 16:08:51 +0000</bug_when>
    <thetext>*** Bug 444009 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2082394</commentid>
    <comment_count>11</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2021-12-03 16:09:22 +0000</bug_when>
    <thetext>*** Bug 418370 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2082396</commentid>
    <comment_count>12</comment_count>
    <who name="Filzmaier Josef">j.filzmaier</who>
    <bug_when>2021-12-03 16:14:16 +0000</bug_when>
    <thetext>I have the same issue and can confirm that it only happens in wayland and also only for autostart applications.
If i close these apps and reopen them, the click hit rect seems to be in the right spot</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2083903</commentid>
    <comment_count>13</comment_count>
    <who name="">tneo</who>
    <bug_when>2021-12-08 17:21:14 +0000</bug_when>
    <thetext>It only happens under Wayland. Anydesk has the same issue. I have stopped using / trying Wayland because of this issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2092646</commentid>
    <comment_count>14</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2022-01-12 16:41:44 +0000</bug_when>
    <thetext>Reproduced with hexchat:

killall -9 xembedsniproxy ; QT_LOGGING_RULES=kde.xembedsniproxy.debug=true xembedsniproxy
Qt: Session management error: Could not open network socket
kde.xembedsniproxy: starting
kde.xembedsniproxy: Manager selection claimed
kde.xembedsniproxy: trying to dock window  16780239
kde.xembedsniproxy: adding damage watch for  16780239
kde.xembedsniproxy: Resizing window 16780239 &quot;hexchat&quot; from w*h QSize(200, 200)
Container window visible, stack below
kde.xembedsniproxy: Skip transparent xembed icon for 16780239 &quot;hexchat&quot;
kde.xembedsniproxy: No xembed icon for 16780239 &quot;hexchat</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2092849</commentid>
    <comment_count>15</comment_count>
    <who name="Konrad Materka">materka</who>
    <bug_when>2022-01-12 21:50:31 +0000</bug_when>
    <thetext>Log: &quot;Container window visible, stack below&quot; is printed when we detect that &quot;XEmbed&quot; window is visible. Here is the check:
https://invent.kde.org/plasma/plasma-workspace/-/blob/Plasma/5.23/xembed-sni-proxy/fdoselectionmanager.cpp#L149
It is fully transparent so that you can&apos;t see it, but it is there - initially in right left corner. It should be stacked behind desktop so that it does not obscure anything. It may happen, even on X11, that it will pop up on top (for example during/after KWin restart) that&apos;s why we have this check.

Seems that stacking X11 windows doesn&apos;t work on Wayland. Probably not only this - in Bug 448050 clicks does not work, I&apos;m pretty sure that &quot;XEmbed&quot; window is not moved - it should move to receive click correctly.

Unfortunately right now I cannot test it (NVIDIA...) but this is above my skills anyway. It might be that XWayland is not handling STACK and WINDOW_X/_Y properties, it is also possible that KWin forbids/ignores those - don&apos;t know.

xembedsniproxy was a dirty hack on X11, I&apos;m not surprised that it doesn&apos;t work on Wayland - I&apos;m surprised it partially works! :)

Good test would be to check if xembedsniproxy works on Gnome on Wayland.

PS. This log should use qCDebug, ops...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2104682</commentid>
    <comment_count>16</comment_count>
    <who name="Konrad Materka">materka</who>
    <bug_when>2022-02-14 22:44:04 +0000</bug_when>
    <thetext>*** Bug 449841 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2105594</commentid>
    <comment_count>17</comment_count>
    <who name="Zetaphor">zetaphor</who>
    <bug_when>2022-02-17 03:18:38 +0000</bug_when>
    <thetext>I was am also having this issue with Megasync on Wayland.

While not a permanent solution, I was able to resolve it by using a window rule to match against the &quot;megasync&quot; window class and then force disable compositing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2121752</commentid>
    <comment_count>18</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2022-05-06 13:39:28 +0000</bug_when>
    <thetext>*** Bug 453441 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2122347</commentid>
    <comment_count>19</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2022-05-09 17:50:41 +0000</bug_when>
    <thetext>*** Bug 453581 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2127979</commentid>
    <comment_count>20</comment_count>
    <who name="Noah Davis">noahadvs</who>
    <bug_when>2022-05-31 10:31:14 +0000</bug_when>
    <thetext>*** Bug 454623 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2144694</commentid>
    <comment_count>21</comment_count>
    <who name="Zamundaaa">xaver.hugl</who>
    <bug_when>2022-08-09 22:47:58 +0000</bug_when>
    <thetext>*** Bug 457424 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2173619</commentid>
    <comment_count>22</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2022-11-15 17:47:22 +0000</bug_when>
    <thetext>No reports from Plasma 5.26 yet, and I can&apos;t reproduce the issue myself anymore.

Is anyone who was previously experiencing this issue still able to reproduce it in Plasma 5.26 or later?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2173626</commentid>
    <comment_count>23</comment_count>
    <who name="Filzmaier Josef">j.filzmaier</who>
    <bug_when>2022-11-15 17:52:29 +0000</bug_when>
    <thetext>I am still experiencing this issue on my machine

Operating System: Arch Linux
KDE Plasma Version: 5.26.3
KDE Frameworks Version: 5.99.0
Qt Version: 5.15.7
Kernel Version: 6.0.8-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 8 × 11th Gen Intel® Core™ i7-1185G7 @ 3.00GHz
Memory: 31,1 GiB of RAM
Graphics Processor: Mesa Intel® Xe Graphics
Manufacturer: LENOVO
Product Name: 20XWCTO1WW
System Version: ThinkPad X1 Carbon Gen 9</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2173628</commentid>
    <comment_count>24</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2022-11-15 17:53:01 +0000</bug_when>
    <thetext>Ok, thanks a lot!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2173896</commentid>
    <comment_count>25</comment_count>
      <attachid>153789</attachid>
    <who name="">tneo</who>
    <bug_when>2022-11-16 04:03:58 +0000</bug_when>
    <thetext>Created attachment 153789
expose highlight

It is still there in 5.26.3. Once the expose illumination comes you can&apos;t access the kicker menu and only the application in that corner will open. That application is the same consistently, no matter how many GTK applications you have open.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2255269</commentid>
    <comment_count>26</comment_count>
    <who name="felix">felixl</who>
    <bug_when>2023-09-25 20:25:21 +0000</bug_when>
    <thetext>The Bug is still there. Happens with wire and beyond all reason. Is there some idea how to fix this

Operating System: Debian GNU/Linux 12
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
Kernel Version: 6.1.0-10-amd64 (64-bit)
Graphics Platform: Wayland</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2256674</commentid>
    <comment_count>27</comment_count>
    <who name="Brian Cohen">brianjcohen</who>
    <bug_when>2023-10-03 15:21:16 +0000</bug_when>
    <thetext>I am able to reproduce this issue in Plasma 5.27.8.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2259409</commentid>
    <comment_count>28</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2023-10-16 19:51:11 +0000</bug_when>
    <thetext>*** Bug 475613 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2259428</commentid>
    <comment_count>29</comment_count>
    <who name="">tneo</who>
    <bug_when>2023-10-16 20:51:19 +0000</bug_when>
    <thetext>This issue has been blocking me to make the switch to Wayland. I have however made the jump to Wayland and this issue is not present for me, but now the app indicator is not showing claws-mail in the system-tray. I don&apos;t know whether those are related. Expose works correctly, I can access the kicker menu, but I don&apos;t see my mail indicator.

Operating System: openSUSE Tumbleweed 20231013
KDE Plasma Version: 5.27.8
KDE Frameworks Version: 5.110.0
Qt Version: 5.15.11
Kernel Version: 6.5.6-1-default (64-bit)
Graphics Platform: Wayland</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2264657</commentid>
    <comment_count>30</comment_count>
    <who name="David Redondo">kde</who>
    <bug_when>2023-11-10 09:53:42 +0000</bug_when>
    <thetext>*** Bug 476782 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2294409</commentid>
    <comment_count>31</comment_count>
    <who name="Tom Dzmelyk">tddzmely</who>
    <bug_when>2024-03-04 02:51:42 +0000</bug_when>
    <thetext>Operating System: Arch 
KDE Plasma Version: 6.0.0
KDE Frameworks Version: 6.0.0
Qt Version: 6
Kernel Version: 6.6.19
Session: wayland

Since this has been 100% reproducible for me with Discord on Plasma 6  I finally decided to look into this. 

I was mucking around in sniproxy.cpp and it seems like this is actually needs attention both in SNIproxy and systemtray/statusnotifier.

There is no mechanism to for SNIproxy to know where it &quot;should&quot; be until it receives an event from StatusNotifierItemJob::performJob(), so it can&apos;t occupy the correct position and it just exists at (0,0) until a click/scroll action goes through and tells it where it needs to be.

The constructor in sniproxy.cpp just dumps it at (0,0) since it needs to be &quot;somewhere&quot;

148 &gt;    // move window we&apos;re embedding
149 &gt;    const uint32_t windowMoveConfigVals[2] = {0, 0};
150 &gt; 
151 &gt;    xcb_configure_window(c, wid, XCB_CONFIG_WINDOW_X | XCB_CONFIG_WINDOW_Y, windowMoveConfigVals);

and it doesn&apos;t get moved until SNIProxy::sendClick() is triggered by the Activate, SecondaryActivate, ContextMenu, or Scroll functions.

522 &gt;    // move our window so the mouse is within its geometry
523 &gt;    uint32_t configVals[2] = {0, 0};
524 &gt;    const QPoint clickPoint = calculateClickPoint();
525 &gt;    if (mouseButton &gt;= XCB_BUTTON_INDEX_4) {
526 &gt;        // scroll event, take pointer position
527 &gt;        auto cookie = xcb_query_pointer(c, m_windowId);
528 &gt;        UniqueCPointer&lt;xcb_query_pointer_reply_t&gt; pointer(xcb_query_pointer_reply(c, cookie, nullptr));
529 &gt;        configVals[0] = pointer-&gt;root_x;
530 &gt;        configVals[1] = pointer-&gt;root_y;
531 &gt;    } else {
532 &gt;        configVals[0] = static_cast&lt;uint32_t&gt;(x - clickPoint.x());
533 &gt;        configVals[1] = static_cast&lt;uint32_t&gt;(y - clickPoint.y());
534 &gt;    }
535 &gt;    xcb_configure_window(c, m_containerWid, XCB_CONFIG_WINDOW_X | XCB_CONFIG_WINDOW_Y, configVals);

Once this code block in executes the bug fixes itself.

So systemtray/statusnotifier needs to be able to query it&apos;s position when initialized and needs to pass that to SNIProxy to properly initialize it&apos;s own position.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2294712</commentid>
    <comment_count>32</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2024-03-04 19:25:57 +0000</bug_when>
    <thetext>Promoting this to be a 15-minute bug since it&apos;s Wayland-only and the Wayland-session is the default in Plasma 6 now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2301575</commentid>
    <comment_count>33</comment_count>
    <who name="">nairaner</who>
    <bug_when>2024-03-16 00:34:18 +0000</bug_when>
    <thetext>*** Bug 470773 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2310013</commentid>
    <comment_count>34</comment_count>
    <who name="Maarten">m_becker</who>
    <bug_when>2024-04-10 07:28:17 +0000</bug_when>
    <thetext>*** Bug 484879 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2311301</commentid>
    <comment_count>35</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2024-04-13 14:21:47 +0000</bug_when>
    <thetext>*** Bug 485474 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2319785</commentid>
    <comment_count>36</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2024-05-15 12:10:57 +0000</bug_when>
    <thetext>A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/4324</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2319892</commentid>
    <comment_count>37</comment_count>
    <who name="David Edmundson">kde</who>
    <bug_when>2024-05-15 21:05:07 +0000</bug_when>
    <thetext>*** Bug 459534 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2319894</commentid>
    <comment_count>38</comment_count>
    <who name="David Edmundson">kde</who>
    <bug_when>2024-05-15 21:05:23 +0000</bug_when>
    <thetext>*** Bug 485971 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2320411</commentid>
    <comment_count>39</comment_count>
    <who name="Konrad Materka">materka</who>
    <bug_when>2024-05-18 13:40:08 +0000</bug_when>
    <thetext>*** Bug 487166 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2321483</commentid>
    <comment_count>40</comment_count>
    <who name="Vlad Zahorodnii">vlad.zahorodnii</who>
    <bug_when>2024-05-23 11:20:19 +0000</bug_when>
    <thetext>Git commit 50bbe56bb08f9b265ad56510e2adc37db66f4d2d by Vlad Zahorodnii, on behalf of David Edmundson.
Committed on 23/05/2024 at 11:20.
Pushed by vladz into branch &apos;master&apos;.

xembedsniproxy: Set input region when hidden to avoid grabbing clicks

xembedsniproxy is a hidden window. It is used for grabbing content and
replaying events.
It tried to hide itself by adjusting the stacking order.

This is insufficient on wayland where we might be the lowest X window,
but that can still be above the desktop. Instead set an empty shape
when we should be hidden.


### Test plan

Had a floating compact panel (this is important as it means the system tray icon moves about when I open new windows)

Ran hexchat and clicked on the icon and and other icons.

xembedsniproxy was compiled with &quot;VISUAL_DEBUG&quot; flag enabled so I could see where to click, and now (with XWayland &gt;= 2.41) events are never intercepted from the panel.

&lt;!--
If this merge request introduces a visual change, please add before-and-after screenshots in the following format:

| Before | After |
| ------ | ----- |
| [drag &quot;before&quot; screenshot here] | [drag &quot;after&quot; screenshot here] |
--&gt;

### Bugs fixed
&lt;!--
If the changes in this merge request fix any Bugzilla tickets, add the following keyword for each one:
--&gt;

M  +32   -16   xembed-sni-proxy/sniproxy.cpp
M  +1    -1    xembed-sni-proxy/sniproxy.h

https://invent.kde.org/plasma/plasma-workspace/-/commit/50bbe56bb08f9b265ad56510e2adc37db66f4d2d</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2327153</commentid>
    <comment_count>41</comment_count>
    <who name="Zamundaaa">xaver.hugl</who>
    <bug_when>2024-06-12 17:43:29 +0000</bug_when>
    <thetext>*** Bug 454847 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2462741</commentid>
    <comment_count>42</comment_count>
    <who name="Jesús Guerrero Botella">jesus.guerrero.botella</who>
    <bug_when>2025-10-17 15:21:12 +0000</bug_when>
    <thetext>Ugh, sorry to necropost but this still happens for me with anydesk in plasma 5.27.12 (only under wayland; X11 works fine). I &quot;fixed&quot; it by shortening my vertical panel in the left side of the screen. I&apos;ve been wondering for one day why the heck the K menu was bringing up the anydesk UI...</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>153789</attachid>
            <date>2022-11-16 04:03:58 +0000</date>
            <delta_ts>2022-11-16 04:03:58 +0000</delta_ts>
            <desc>expose highlight</desc>
            <filename>Screenshot_20221115_220239.png</filename>
            <type>image/png</type>
            <size>2052</size>
            <attacher>tneo</attacher>
            
              <data encoding="base64">iVBORw0KGgoAAAANSUhEUgAAAEwAAAAxCAIAAAD/SdhjAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAH
tklEQVRoQ81ZbYwW1RV+7p0py767ywIBklLb2gQTNIX6gSxlP2T9QEBCLK1Rm1bS0qaJiZiUP0Z/
mfZP/7SUkJqItW0wJqKlMdRShYVlV0pF+dBta6olJcSaagPuLoi4O3OPP869Z+7cmfdltyLMs/PO
3nvuueec55x7Z+adV3U/shUAwYAIRADZRtY2ubYxIAOTKpOSSVFyGFBi2wDSBJcbGgBAICeQRtAu
oP7ghE1cKsQEA0IdnpR1+L89e6VuTKPh4CVDDCKAo/Hito18lLbtiayWsHVDBJeFSsCRBNzGcyNC
KauYKORZec2g09XVpVzbx/DISCgCAAy9/noouhiIXdzICDhWilwCJOzsCsQDMlaU8xDOfnjuirmf
96UApre3BxIAJ06eDEUXCfnlCp+Ga/gcrAIynSIxT66c9MNz50RDa33+/HnpMmZMnx5IL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