Ghost Mode
Ghost Mode is the core feature of LeetCode Ghost Window, allowing you to solve LeetCode problems with a window that's completely invisible to screen recording and capturing software.
How Ghost Mode Works
Ghost Mode leverages advanced window properties and platform-specific techniques to make the window completely invisible to screen recording software while still being visible to you:
Windows
Uses native Windows APIs to specifically exclude the window from capture:
SetWindowDisplayAffinity
withWDA_EXCLUDEFROMCAPTURE
flagDwmSetWindowAttribute
withDWMWA_CLOAK
for advanced hiding- Additional window style modifications to prevent detection
Linux
Combines multiple X11/Wayland window properties:
- Custom window properties to modify compositor behavior
- Window type and layer modifications
- Selective transparency and window class settings
WSL
Specialized implementation for Windows Subsystem for Linux:
- Specialized window layering and visibility settings
- Window property modifications to avoid detection
- CSS and rendering adjustments to evade capture systems
macOS
Uses macOS-specific techniques:
- Window layering and opacity adjustments
- Content protection and workspace visibility modifications
- Specialized window button visibility settings
How to Verify Ghost Mode
To test if Ghost Mode is working properly, try these steps:
- Launch LeetCode Ghost Window
- Open a screen recording program like OBS Studio or start a Discord screen share
- Verify that the LeetCode Ghost Window is visible on your screen but does not appear in the recording preview
Ghost Mode Controls
Ghost Mode is enabled by default when you launch the application, but you can control it with these shortcuts:
Toggle Ghost Mode on/off
Adjust window opacity
You can also toggle Ghost Mode from the system tray menu or the application's settings panel.
Ghost Mode Configuration
Advanced users can configure Ghost Mode behavior through the CLI:
# Enable or disable Ghost Mode leet-joseok config set ghostMode true # Set custom opacity level (0.1 to 1.0) leet-joseok config set opacity 0.9
Limitations
While Ghost Mode is highly effective, be aware of these limitations:
- Some newer screen recording technologies might require application updates to maintain invisibility
- Physical camera recordings of your screen will still capture the window
- Certain specialized security software may detect the window presence even if it can't capture its contents