Commit b1b8bd90 authored by Peter Kasting's avatar Peter Kasting Committed by Commit Bot

Revert "Fix the |accept_events| InitParam to work on Windows."

This reverts commit 1a82123e.

Reason for revert: Breaks tooltips: http://crbug.com/1006751

Original change's description:
> Fix the |accept_events| InitParam to work on Windows.
>
> WS_EX_TRANSPARENT only seems to mean "pass events to the underlying window" when
> the windows in question is also WS_EX_LAYERED.
>
> Bug: 1004721
> Change-Id: Ia2618ddfa9c16a49fd8eb156ab0c7793736bce0d
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1816745
> Auto-Submit: Peter Kasting <pkasting@chromium.org>
> Reviewed-by: Robert Liao <robliao@chromium.org>
> Commit-Queue: Peter Kasting <pkasting@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#698569}

TBR=pkasting@chromium.org,robliao@chromium.org

# Not skipping CQ checks because original CL landed > 1 day ago.

Bug: 1004721,1006751
Change-Id: I41b3b9776cc53e926831d98babd669a189e447ed
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1819937Reviewed-by: default avatarPeter Kasting <pkasting@chromium.org>
Reviewed-by: default avatarRobert Liao <robliao@chromium.org>
Commit-Queue: Peter Kasting <pkasting@chromium.org>
Cr-Commit-Position: refs/heads/master@{#699059}
parent 4956f503
......@@ -42,7 +42,7 @@ void CalculateWindowStylesFromInitParams(
if (params.show_state == ui::SHOW_STATE_MINIMIZED)
*style |= WS_MINIMIZE;
if (!params.accept_events)
*ex_style |= WS_EX_TRANSPARENT | WS_EX_LAYERED;
*ex_style |= WS_EX_TRANSPARENT;
DCHECK_NE(Widget::InitParams::ACTIVATABLE_DEFAULT, params.activatable);
if (params.activatable == Widget::InitParams::ACTIVATABLE_NO)
*ex_style |= WS_EX_NOACTIVATE;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment