# Patch Implementation Status

## Enabled Patches (All Implemented ✓)

| Patch | Status | Implementation |
|-------|--------|----------------|
| ALPHA_PATCH | ✓ | source/patch/alpha.d |
| BOXDRAW_PATCH | ✓ | source/patch/boxdraw.d |
| CSI_22_23_PATCH | ✓ | Inline in source/win.d |
| DISABLE_ITALIC_FONTS_PATCH | ✓ | Inline in source files |
| EXTERNALPIPE_PATCH | ✓ | source/patch/externalpipe.d |
| EXTERNALPIPEIN_PATCH | ✓ | source/patch/externalpipe.d |
| FIXKEYBOARDINPUT_PATCH | ✓ | source/patch/fixkeyboardinput.d |
| FONT2_PATCH | ✓ | source/patch/font2.d |
| OPENURLONCLICK_PATCH | ✓ | source/patch/openurlonclick.d |
| REFLOW_PATCH | ✓ | source/patch/reflow.d |
| RIGHTCLICKTOPLUMB_PATCH | ✓ | source/patch/rightclicktoplumb.d |
| SCROLLBACK_MOUSE_ALTSCREEN_PATCH | ✓ | Inline in source/st.d |
| SIXEL_PATCH | ✓ | source/sixel.d |
| ST_EMBEDDER_PATCH | ✓ | source/patch/st_embedder.d |
| SYNC_PATCH | ✓ | source/patch/sync.d |
| UNDERCURL_PATCH | ✓ | Inline in source/st.d |
| WIDE_GLYPHS_PATCH | ✓ | Inline in source/x.d |

## Additional Implemented Patches (Currently Disabled)

| Patch | Status | Implementation |
|-------|--------|----------------|
| ALPHA_FOCUS_HIGHLIGHT_PATCH | ✓ | source/patch/alpha.d + source/x.d |
| ALPHA_GRADIENT_PATCH | ✓ | source/x.d |
| BACKGROUND_IMAGE_PATCH | ✓ | source/patch/background_image.d |
| BACKGROUND_IMAGE_RELOAD_PATCH | ✓ | source/main.d + source/patch/background_image.d |
| COPYURL_PATCH | ✓ | source/patch/copyurl.d |
| COPYURL_HIGHLIGHT_SELECTED_URLS_PATCH | ✓ | source/patch/copyurl.d |
| FULLSCREEN_PATCH | ✓ | source/patch/fullscreen.d |
| INVERT_PATCH | ✓ | source/patch/invert.d |
| ISO14755_PATCH | ✓ | source/patch/iso14755.d |
| KEYBOARDSELECT_PATCH | ✓ | source/patch/keyboardselect.d |
| NETWMICON_PATCH | ✓ | source/patch/netwmicon.d |
| NETWMICON_FF_PATCH | ✓ | source/patch/netwmicon.d |
| NETWMICON_LEGACY_PATCH | ✓ | source/patch/netwmicon.d |
| NEWTERM_PATCH | ✓ | source/patch/newterm.d |
| OPENCOPIED_PATCH | ✓ | source/patch/opencopied.d |
| SCROLLBACK_PATCH | ✓ | source/patch/scrollback.d |
| SCROLLBACK_MOUSE_PATCH | ✓ | source/config.d + source/x.d |
| XRESOURCES_PATCH | ✓ | Inline in source/main.d |
| XRESOURCES_RELOAD_PATCH | ✓ | source/main.d |

## Implementation Notes

1. **Combined Implementations**: Some patches that have separate _st and _x variants in C are combined into single D modules (e.g., rightclicktoplumb, st_embedder).

2. **Inline Implementations**: Some patches are implemented directly in the source files rather than as separate modules when they require deep integration.

3. **Include Files**: The st_include.c and x_include.c files are not needed in D as the module system handles includes differently.

4. **Variant Patches**: Some patches have multiple variants (e.g., netwmicon, netwmicon_ff, netwmicon_legacy). We've implemented the most common/useful variant.

## Total Statistics

- **Enabled Patches**: 17/17 implemented (100%)
- **Additional Patches Available**: 19 implemented
- **Total D Patches**: 36 implementations