Skip to content

Commit a94e770

Browse files
committed
[Transparency][WIN] add "force-cpu-draw" command line switch / global variable for transparency click through
1 parent f7b40d0 commit a94e770

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/browser/native_window_aura.cc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@
8484

8585
namespace content {
8686
extern bool g_support_transparency;
87+
extern bool g_force_cpu_draw;
8788
}
8889

8990

@@ -465,6 +466,13 @@ void NativeWindowAura::SetTransparent(bool transparent) {
465466
if (change_window_style) {
466467
window_->FrameTypeChanged();
467468
}
469+
470+
if (content::g_force_cpu_draw && transparent) {
471+
// Quick FIX where window content is not updated
472+
Minimize();
473+
Restore();
474+
}
475+
468476
#elif defined(USE_X11) && !defined(OS_CHROMEOS)
469477

470478
static char cachedRes = -1;

0 commit comments

Comments
 (0)