<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: CozySnow</title>
    <description>The latest articles on DEV Community by CozySnow (@cozysnowapp).</description>
    <link>https://dev.to/cozysnowapp</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4272708%2F20cd3718-94c4-465e-b652-71ec192688c9.png</url>
      <title>DEV Community: CozySnow</title>
      <link>https://dev.to/cozysnowapp</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/cozysnowapp"/>
    <language>en</language>
    <item>
      <title>I built a desktop snow overlay where the snow actually piles up on your open windows</title>
      <dc:creator>CozySnow</dc:creator>
      <pubDate>Sun, 29 Nov 2026 17:20:37 +0000</pubDate>
      <link>https://dev.to/cozysnowapp/i-built-a-desktop-snow-overlay-where-the-snow-actually-piles-up-on-your-open-windows-bh7</link>
      <guid>https://dev.to/cozysnowapp/i-built-a-desktop-snow-overlay-where-the-snow-actually-piles-up-on-your-open-windows-bh7</guid>
      <description>&lt;p&gt;Every December I want my desktop to feel a bit like a cabin window. The old desktop-snow toys just drift flakes over everything, so this year I built &lt;strong&gt;CozySnow&lt;/strong&gt;: snow that falls, lands on the tops of your real windows, and stays there until you move the window or brush it off.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvz0bsd87y21c8fbvx3fg.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvz0bsd87y21c8fbvx3fg.gif" alt="CozySnow demo" width="480" height="323"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  How it works (Windows build)
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;A click-through overlay.&lt;/strong&gt; The overlay is a frameless, always-on-top PyQt6 window covering the screen. With the Win32 extended styles &lt;code&gt;WS_EX_LAYERED | WS_EX_TRANSPARENT | WS_EX_NOACTIVATE | WS_EX_TOOLWINDOW&lt;/code&gt; it never steals focus or clicks, and it stays out of Alt-Tab. A 16 ms timer drives the simulation at about 60 fps.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Finding the "ledges".&lt;/strong&gt; Every tick a window tracker walks the visible top-level windows with &lt;code&gt;EnumWindows&lt;/code&gt;, takes their real bounds from DWM (the extended frame bounds, not the padded &lt;code&gt;GetWindowRect&lt;/code&gt;), and skips cloaked windows (other virtual desktops, suspended UWP apps). The tricky part is overlap: if one window covers half of another's title bar, snow should only pile on the visible part. So each window's top edge is an interval, and the tracker subtracts every window above it in z-order, leaving only the exposed segments as ledges. The taskbar top is the floor.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Snow piles that follow windows.&lt;/strong&gt; Each ledge gets a height map in small bins. Flakes that hit a ledge add to it and the pile rides along when you drag the window. Shake the window and the pile bursts off in clumps and the icicles underneath shatter; fling it fast and chunks shed off the edge. Icicles hang from the edges, and a little yellow snowplow clears the floor now and then.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Staying polite.&lt;/strong&gt; It checks for a fullscreen game or video and pauses rendering, so it costs nothing while you play. Global hotkeys spawn a snowman or throw a snowball at the screen.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Extras.&lt;/strong&gt; A frost mode that fogs the whole screen like cabin glass (wipe it with the cursor), snowmen, gift drops, and Santa's sleigh crossing the moon.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fikd3kd8xjryx4h6sdz0m.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fikd3kd8xjryx4h6sdz0m.png" alt="Frost and snowplow" width="800" height="538"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;There is also a macOS build. If you want to try it, it is $5.99 one-time at &lt;a href="https://cozysnow.app" rel="noopener noreferrer"&gt;https://cozysnow.app&lt;/a&gt;. I'm happy to answer questions about the window-occlusion math or the Win32 overlay tricks in the comments.&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>python</category>
      <category>christmas</category>
    </item>
  </channel>
</rss>
