<html>
 <head>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
 </head>
 <body>
  <div style="font-family: sans-serif;">
   <span dir="ltr" style="margin-top:0; margin-bottom:0;">Hello Kitten,</span> <br> <br> <span dir="ltr" style="margin-top:0; margin-bottom:0;">Thank you for your detailed inquiry.</span> <br> <br> <span dir="ltr" style="margin-top:0; margin-bottom:0;">As far as I see it, herbstluftwm already adheres to the recommendation given by XScreenSaver FAQ. It only uses XRaiseWindow for fullscreen windows and if you raise a window by command. For everything e</span>
   <blockquote style="border-left:3px solid #ccc; padding-left:10px;margin:0;">
    <blockquote style="border-left:3px solid #ccc; padding-left:10px;margin:0;">
     <span dir="ltr" style="margin-top:0; margin-bottom:0;">lse, <span style="color:#BCBCBC;"><span style="font-size:small;"><span style="font-family:arial;"><span style="font-family:Cousine, "Courier New", Courier, monospace;">XRestackWindows</span></span></span></span><span style="color:#BCBCBC;"><span style="font-size:small;"><span style="font-family:arial;"><span style="font-family:Cousine, "Courier New", Courier, monospace;"> </span></span></span></span></span>
    </blockquote>
   </blockquote> <span dir="ltr" style="margin-top:0; margin-bottom:0;">is performed.</span> <br> <br> <span dir="ltr" style="margin-top:0; margin-bottom:0;">Notification windows are often unmanaged. I assume that's the case for the ones you are having problems with (a simple giveaway is if they are not decorated by herbstluftwm). Maybe setting a rule to managing them could help but will have other effects you might not like (window placement).</span> <br> <br> <span dir="ltr" style="margin-top:0; margin-bottom:0;">Maybe this issue (and related ones) may also help: https://GitHub.com/dunst-project/dunst/issues/553</span> <br> <span dir="ltr" style="margin-top:0; margin-bottom:0;">Here, a recommendation for picom config if given (do you use a composite manager?)</span> <br> <br> <span dir="ltr" style="margin-top:0; margin-bottom:0;">Johannes</span> <br>
  </div>
  <div>
   <br>
   <div>
    <p>Feb 7, 2023 10:57:27 Kitten via hlwm <hlwm@lists.herbstluftwm.org>:</p>
   </div>
   <blockquote style="margin:0;border-left:3px solid #ccc; padding-left:10px">
    <div style=" font-size: 14px;font-family: Arial">
     Hi, I've loved the WM for years, and I wanted to bring up a small problem I've noticed. XScreenSaver occasionally has squares drawn over it, namely Polybar and Dunst notifications, so I went to read XScreenSaver's FAQ and found the following: <br>
    </div>
    <div style=" font-size: 14px;font-family: Arial">
     <br>
    </div>
    <blockquote style=" color: rgb(102, 102, 102); border-left: 3px solid rgb(200, 200, 200); padding-left: 10px;border-color: rgb(200, 200, 200)">
     <div style=" font-size: 14px;font-family: Arial">
       <span><b> Programs sometimes pop up dialog boxes over the screen saver while my display is locked, and I wish they didn't.</b></span>
      <p>This is a bug in your window manager and/or that application, and there is little that XScreenSaver can do about it. If this is happening it is because of one of two reasons:</p>
      <ol type="A">
       <li>The window manager is placing windows on screen with <tt>XRaiseWindow</tt>, meaning, "place this window atop all others, including the screen saver." This is wrong. <p>What it should be doing instead is ordering its windows using <tt>XRestackWindows</tt>, the semantics of which are, "here is the list of windows I manage, and the order in which they should be stacked." By using <tt>XRestackWindows</tt>, the window manager will never alter the stacking order of non-managed windows that are not within its remit.</p><p></p></li>
       <li>The application is using an <tt>Override<wbr>Redirect</tt> window, explicitly hiding its pop-up window from the window manager. This is also wrong. <p>Pop-ups, notifications, and all similar windows should be mapped as <tt>WM_<wbr>TRANSIENT_<wbr>FOR</tt> and/or <tt>_NET_<wbr>WM_WINDOW_<wbr>TYPE_<wbr>DIALOG</tt> windows, as has been explained by the <a href="https://x.org/releases/X11R7.6/doc/xorg-docs/specs/ICCCM/icccm.html">ICCCM</a> and the <a href="https://www.freedesktop.org/wiki/Specifications/wm-spec/">FreeDesktop</a> <a href="https://specifications.freedesktop.org/wm-spec/wm-spec-1.3.html#idm46400537374992">EWMH</a> specifications for decades.</p></li>
      </ol>
      <p>XScreenSaver can't prevent such improperly-mapped windows from appearing on screen, but it does slightly mitigate that by raising itself above them every few minutes. The real fix is for your window manager to not allow this to happen in the first place.</p>
     </div>
    </blockquote>
    <div style=" font-size: 14px;font-family: Arial">
     I'm wondering whether there's something I could look into in terms of rules in my autostart, or I should be digging into my notification daemon and bar, or if this is something that could be solved in in HLWM's code.
    </div>
    <div style=" font-size: 14px;font-family: Arial">
     <br>
    </div>
    <div style=" font-size: 14px;font-family: Arial">
     Thank you very much for your time and work.
    </div>
    <div style=" font-size: 14px;font-family: Arial">
     <br>
    </div>
    <div class="protonmail_signature_block" style=" font-size: 14px;font-family: Arial">
     <div class="protonmail_signature_block-user">
      <div>
       <span style="font-size:10px" class="size"><b><span style="font-family:menlo, consolas, 'courier new', monospace, sans-serif" class="font">Stay hydrated.</span><span style="font-family:menlo, consolas, 'courier new', monospace, sans-serif" class="font"><br></span></b></span>
      </div>
      <div>
       <span style="font-size:10px" class="size"><b><span style="font-family:menlo, consolas, 'courier new', monospace, sans-serif" class="font">-Kitten (like a small cat)</span></b></span><span style="font-family:menlo, consolas, 'courier new', monospace, sans-serif" class="font"></span><br>
      </div>
     </div>
     <div style=" font-size: 14px;font-family: Arial">
      <br>
     </div>
     <div class="protonmail_signature_block-proton">
      Sent with <a target="_blank" href="https://proton.me/" rel="noopener noreferrer">Proton Mail</a> secure email.
     </div>
    </div>
   </blockquote>
  </div>
 </body>
</html>