You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think the top-level widget needs to have an extended window style with WS_EX_TOOLWINDOW set. The one place this is set in upstream code is ui/views/widget/widget_hwnd_utils.cc which sets that flag iff Widget::InitParams type is TYPE_BUBBLE or TYPE_POPUP. Prior to 26c6c81 the parent widget was a popup, which is why that aspect of the code worked before.
Looks like we need to either get the internally-created top-level widget to know that it's a popup, or to use the old code and get it to grab keyboard focus...?
For now if we don't have an immediate solution I think a revert makes sense. Let's go back to the state we were in which is arguably better than having this thing appear
I'm going to keep look at this. I don't see an immediate solution but we need an answer that doesn't have visual artifacts and doesn't break tray menus for a11y users.
Activity
[-]Tray creates taksbar item[/-][+]Tray menu creates taksbar item[/+][-]Tray menu creates taksbar item[/-][+]Tray menu creates taskbar item[/+]MarshallOfSound commentedon Jun 10, 2020
Looks like 26c6c81 is having unintended side effects
ckerr commentedon Jun 10, 2020
@MarshallOfSound agreed, this regressed due to #11587.
I think the top-level widget needs to have an extended window style with
WS_EX_TOOLWINDOWset. The one place this is set in upstream code isui/views/widget/widget_hwnd_utils.ccwhich sets that flag iff Widget::InitParams type is TYPE_BUBBLE or TYPE_POPUP. Prior to 26c6c81 the parent widget was a popup, which is why that aspect of the code worked before.Looks like we need to either get the internally-created top-level widget to know that it's a popup, or to use the old code and get it to grab keyboard focus...?
MarshallOfSound commentedon Jun 11, 2020
For now if we don't have an immediate solution I think a revert makes sense. Let's go back to the state we were in which is arguably better than having this thing appear
ckerr commentedon Jun 11, 2020
I'm going to keep look at this. I don't see an immediate solution but we need an answer that doesn't have visual artifacts and doesn't break tray menus for a11y users.