Caption Buttons Customizer
Move the caption buttons to the left, reposition the window icon and title, and optionally draw macOS-style traffic lights (or your own button images).
Author: grn15RenS

Moves the caption buttons (minimize, maximize, close) to the left side of the title bar and repositions the window icon and title to match. It can also draw macOS-style traffic lights (red / yellow / green circles) or your own button images. It works by hooking internal functions of the Desktop Window Manager (dwm.exe / uDWM.dll), so it works on standard Win32 windows. See Compatibility and known issues for apps it cannot change.
⚙️ Setup
dwm.exe is a critical system process, so Windhawk does not inject into it by default. To use this mod, add dwm.exe to the process inclusion list: Windhawk Settings > Advanced settings > More advanced settings > Process inclusion list. Without it, only the explorer.exe part of the mod loads and the caption buttons will not move.

🔧 Features & Preview 🖼️
1. Caption Buttons on the Left
|
|
| Before |
 |
| After |
 |
- Turn on Move caption buttons to the left to move the buttons to the left side of the title bar. When it is off, they stay in their default place on the right.
- If the buttons don't sit where you want them, adjust Left margin (px).
- If the buttons look too far apart, raise Tighten button spacing (px). It works on the left and on the right, and in File Explorer once
CabinetWClass is removed from Excluded window classes. Values above about 20 have no extra effect, so the middle button stays usable. The clickable area of each button gets narrower along with the spacing.
- Tighten button spacing is meant for the macOS and Custom images styles. The circles are smaller than the button slot (46 px at 100% scaling), and the effect is capped, so the buttons cannot get quite as close together as on macOS.
2. Button order
Pick one of three presets in the Button order setting. The order is counted from the left edge of the window.
| Close, minimize, maximize |
Close, maximize, minimize |
Minimize, maximize, close |
 |
 |
 |
3. Show the close button on dialogs
Windows with only a close button (message boxes, About windows, Properties dialogs) can hide that button with Show the close button on dialogs. Alt+F4 and Esc still close the window. Their icon and title have their own alignment, set with Icon and title alignment in dialogs. Very narrow windows hide the icon and title when there is no room for them.
| Close Button and Left Alignment |
No Close Button and Center Alignment |
 |
 |
4. Caption Button Style
Three button styles are available in Caption button style: the default Windows glyphs (default), macOS circles in colors you choose (a symbol appears on hover: × for close, − for minimize, two triangles for maximize and restore), or your own images (png, jpg or bmp).
| macOS style (circles) |
Custom images |
Windows default |
 |
 |
 |
Note for custom button images
- Set Caption button style to Custom images. (With the macOS style, the image settings are ignored and the circles stay as they are.)
- Set Icon folder (or the path of each button image) to any folder you can read, for example
C:\Users\You\Pictures\ButtonIcons.
- Name the files
minimize, restore, maximize, close (+ .png, .jpg, .jpeg or .bmp).
- Optional state variants:
close_hover (mouse is over the button), close_pressed (button is being clicked) and close_disabled (button is greyed out). Same for the other buttons. If a variant is missing, the base image is used (darkened for pressed). The four base images are enough.
- Images are scaled to fit the button slot. The slot is about 12 px at 100% scaling and grows with scaling (about 15 px at 125%, 18 px at 150%, 21 px at 175%). Images keep their own shape and are not cut into a circle, so square images stay square. Use transparent PNGs with simple designs; a square image of 32-64 px works at every scale.
- A button without an image keeps its circle.
Want to try it quickly? Download my ready-made set from here, extract it, and set Icon folder to the extracted folder. The images are transparent PNGs and already use the right file names.
dwm.exe runs under its own account and usually cannot read your profile folders. To get around that, the part of the mod running inside explorer.exe (which can read your folders) decodes your images, shrinks them to at most 64 px, and hands the pixels to dwm.exe through the mod's own storage in Windhawk. No image files are copied anywhere, and dwm.exe never opens or decodes an image file.
5. Icon and title alignment
Icon and title alignment decides where the icon and title sit in the title bar. Left puts them right after the buttons, Center puts them in the middle of the window, and Right puts them at the right edge.
6. Icon Position
Icon position decides where the window icon goes. Left or right of the title keeps the icon attached to the title, while far left or far right pins the icon to that edge. To pin the icon to the left edge of the window instead of right after the buttons, turn off Move caption buttons to the left. To pin it to the right edge, turn that option on (with it off, a far right icon sits next to the buttons on the right instead). For the best look with an icon pinned to a corner, set Icon and title alignment to Center.
| Left of the title |
Right of the title |
 |
 |
| Far left |
Far right |
 |
 |
7. Hide window icon and title
Use Hide window icon and title to hide only the icon, only the title, or both.
| Hide icon only |
Hide title only |
Hide both |
 |
 |
 |
8. Icon responds to click and double-click
By default, Windows treats the window icon as a button: clicking it opens the window menu (Restore, Move, Size, Minimize, Maximize and Close), and double-clicking it closes the window. While this option is on, the menu opens after a short delay (up to 250 ms), so a double-click can be told apart from a single click. This can get in the way when Icon and title alignment is set to Center, because the icon then sits in the middle of the title bar, where it's easy to double-click by accident and close the window. Turn off Icon responds to click and double-click to prevent that. The icon then behaves like an empty part of the title bar: you can drag the window by it, and double-clicking it maximizes or restores the window.

9. File Explorer
By default File Explorer keeps the Windows layout (buttons on the right), because CabinetWClass is in Excluded window classes.
To put the buttons on the left in File Explorer:
- Remove
CabinetWClass from Excluded window classes.
- Keep Make caption buttons clickable in File Explorer on (it is on by default). Without it, the tab bar covers the buttons and they cannot be clicked.
- The tabs still overlap the buttons, so move them with one of these:
- Recommended: the Windows 11 File Explorer Styler mod by m417z, installed separately. It moves only the tabs, so the navigation buttons, address bar and search box stay where they are, right under the caption buttons (target
FileExplorerExtensions.FileExplorerTabControl, style Margin=187,0,0,0; adjust to taste).
- Shift tab bar and toolbar (px) in File Explorer tabs. It moves the whole tab bar and toolbar to the right, including the navigation buttons, address bar and search box. About 145 is enough to clear the buttons (less when Tighten button spacing is used). A larger value, for example 190, can line the tab bar up with the edge of the navigation pane, so the best value depends on your navigation pane width. The space under the caption buttons, where the navigation buttons used to be, stays empty, which not everyone likes. For that reason the default is 0 (no shift). The value is scaled by display scaling.
| File Explorer caption buttons on the right (default) |
File Explorer caption buttons on the left |
 |
 |
10. Excluded apps
Apps that draw their own tabs in the title bar can conflict with buttons on the left. Add their executable names to Excluded apps (or their window class names to Excluded window classes) and every window of those apps keeps the default Windows layout.
By default Excluded apps contains notepad.exe, taskmgr.exe and WindowsTerminal.exe. The icon and title of Task Manager overlap the buttons, and the tabs of Notepad and Windows Terminal overlap the buttons when they are on the left. To see how these apps look with the buttons on the left, remove them from the list. They are not supported yet, so their layout may look broken.
CabinetWClass (File Explorer) is in Excluded window classes by default, see the File Explorer section above.
📁 Files created by the mod
None. Custom images are passed to dwm.exe through Windhawk's mod storage, and with Write debug log on (off by default) the mod writes detailed messages to the Windhawk log output instead of files. Logs can contain folder paths (including your Windows user name), so check them before sharing.
⚠️ Important notes
- When you use the macOS or custom style, drawing the glyphs rewrites a bitmap that DWM shares between all windows. The original glyphs come back only after dwm.exe restarts: sign out and in, run
taskkill /f /im dwm.exe from an administrator prompt, or enable Restart dwm.exe when the mod is unloaded (the screen flickers briefly; apps stay open).
- Until dwm.exe restarts, a button can look wrong or be missing after the mod is turned off. For example, the maximize button can go missing if the mod was turned on while a window was maximized and turned off before it was restored.
- dwm.exe is never restarted twice within 30 seconds, and the mod refuses to load if dwm.exe started 4 or more times within a minute.
- After you change display scaling, the screen may flicker briefly while the buttons are redrawn. If the buttons of a window stay blank, click that window once; Windows only creates the active-window button images when a window becomes active.
- The circles or custom images are global. Excluded apps keep them too; only their layout stays at the Windows default.
- When the mod is turned on or off, or when a layout, exclusion, color or style setting changes, DWM is asked to refresh itself so that open windows get the new layout; no window is resized. Changing the debug log does not trigger a refresh.
- If you report a bug, turn on Write debug log and attach the Windhawk log output.
⚠️ Compatibility and known issues
- Tested only on Windows 11 25H2 (build 26200.9457), x86-64. The mod hooks internal, undocumented functions of
uDWM.dll. On other Windows versions or builds the mod may fail to load or some features may be disabled, and a Windows update can break it until the mod is updated.
- Display scaling: tested at 100%, 125%, 150% and 175%. Scaling above 175% and custom scaling values are untested, so the buttons may look wrong there.
- UWP and other packaged Microsoft apps (Settings, Calculator, Microsoft Store, Phone Link and some others) are not supported: their caption buttons cannot be moved to the left and stay in their default place on the right. Support is being looked into, but there is no date.
- Apps that draw their own title bar (Office apps, Chrome, Edge and others) cannot be changed by this mod. The Titlebar For Everyone mod by Ingan121 can make them use the standard title bar.
- Apps with tabs in the title bar (Notepad, Windows Terminal, File Explorer) are excluded by default because their tabs overlap buttons on the left. See Excluded apps and File Explorer.