Case studies
#powershell#debugging#windows#electron#docker#pterodactyl#python#csharp#wpf#bash#security#cpp#git#performance#ci#nodejs#pyside6#react-native
3 posts · #pyside6
Clear filters·5 min read

Desktop Grid · Story
Why a Desktop Grid zone looked right while dragging and re-inflated after the drop
Deleted icons stayed in a pinned zone's kept list forever, and the icon-hugging border kept stretching toward their old spots. A 5-tick grace period fixed it.
In short
- A pinned zone keeps a list of icon positions, and a deleted or renamed icon stayed in that list forever.
- The border draws itself around every kept position, so a ghost icon far from the zone re-inflated the border after each drop.
- Entries missing for 5 consecutive enforcement ticks, about 10 seconds, are now forgotten, and auto-fit zones re-fit when that happens.
#python#pyside6#windows#debugging
·6 min read

Desktop Grid · Story
Ten commits for a Desktop Grid feature, then one revert
I built a dragging mode for Desktop Grid in 30 minutes, with each commit patching the last one, and then reverted all of it. The history does not say why, and I will not invent a reason.
In short
- The dragging mode took 10 feature commits between 04:59 and 05:25, and almost every one fixed a side effect of the one before.
- One revert commit, cfb8b58 at 05:29, removed 270 lines and added back 27. v1.0.0 was published two minutes later.
- The commit messages tell what the feature was doing. They do not tell why I reverted it.
#python#pyside6#git#scope
·6 min read

Desktop Grid · Story
Desktop Grid: my Qt overlay swallowed every click on the desktop
I ported Desktop Grid to PySide6 and the overlay blocked the whole desktop. The fix, three minutes later, was a 60 ms timer that flips one Windows window style.
In short
- tkinter got click-through from a colour key. Qt's per-pixel alpha window does not, and WMNCHITTEST with HTTRANSPARENT did not forward clicks to other processes.
- A timer polls the cursor every 60 ms and toggles WSEXTRANSPARENT on the overlay.
- Changing window flags in Qt recreates the native window and wipes extended styles, so they are reapplied each time.
#python#pyside6#qt#win32