Git Bash Transparency Flicker Fix [Solved]

Symptoms & Diagnosis

Git Bash users often encounter a distracting visual stutter or a white flash when typing or scrolling. This phenomenon, known as the transparency flicker, typically occurs when the Mintty terminal emulator attempts to render semi-transparent backgrounds over high-resolution displays.

Common symptoms include screen tearing during window resizing, delayed text rendering, and intermittent black boxes appearing behind the cursor. These issues usually stem from a conflict between the terminal’s internal rendering engine and the Windows Desktop Window Manager (DWM).

To diagnose the issue, check if the flickering stops when you disable transparency via the “Options” menu. If the UI becomes stable immediately after turning off background opacity, you have confirmed that the rendering method is the primary bottleneck.

Git Bash terminal window showing transparency flickering effect being resolved.

Troubleshooting Guide

The most effective way to fix the flicker while maintaining some level of transparency is to adjust the “Glass” settings or modify the configuration file directly. You can access these settings by right-clicking the Git Bash title bar and selecting “Options.”

Adjusting Transparency via .minttyrc

For a more precise fix, you can edit your terminal configuration file. Open your Git Bash terminal and execute the following command to edit your settings:

# Open the Mintty configuration file in Nano
nano ~/.minttyrc

Add or modify the following lines to optimize rendering performance and reduce flicker:

# Set transparency to a stable level
Transparency=low
# Disable the "Glass" effect which causes the most flicker
Glass=0
# Improve redraw speed
RedrawImmediate=yes

Comparing Transparency Modes

Choosing the right transparency mode is critical for performance. Use the table below to determine which setting works best for your hardware configuration:

Mode Performance Impact Visual Quality Flicker Risk
Off Low (Best) Solid Color Zero
Medium/Low Moderate Transparent Low
Glass (Aero) High Blurry/Frosted Very High

Prevention

To prevent the flickering from returning, ensure your “Git for Windows” installation is up to date. Newer versions of Mintty include better support for hardware acceleration, which helps mitigate rendering lag on Windows 10 and 11.

Another preventive measure is to switch to the Windows Terminal. By hosting Git Bash inside the modern Windows Terminal app, you benefit from DirectX hardware acceleration, which handles transparency much more efficiently than the legacy Mintty interface.

Finally, avoid using “Window Blur” effects if you are working on a laptop in power-saving mode. Lowering the system’s power state often reduces GPU resources available for terminal transparency, leading to the return of the flicker.