Skip to content

Tray menu creates taskbar item #24049

Closed

Description

@zarubond

Preflight Checklist

  • I have read the Contributing Guidelines for this project.
  • I agree to follow the Code of Conduct that this project adheres to.
  • I have searched the issue tracker for an issue that matches the one I want to file, without success.

Issue Details

  • Electron Version:
    9.0.2
  • Operating System:
    Windows 10
  • Last Known Working Electron version:
    9.0.1

Expected Behavior

Opening tray icon should not create taskbar item

Actual Behavior

Empty taskbar item is created when tray icon menu is opened

To Reproduce

Create tray menu and open it

Screenshots

tray

Additional Information

Activity

  1. changed the title [-]Tray creates taksbar item[/-] [+]Tray menu creates taksbar item[/+] on Jun 10, 2020
  2. added
    status/confirmed
    on Jun 10, 2020
  3. self-assigned this
    on Jun 10, 2020
  4. changed the title [-]Tray menu creates taksbar item[/-] [+]Tray menu creates taskbar item[/+] on Jun 10, 2020
  5. added
    bug/regression ↩️
    on Jun 10, 2020
  6. MarshallOfSound commented on Jun 10, 2020

    @MarshallOfSound
    Member

    Looks like 26c6c81 is having unintended side effects

  7. ckerr commented on Jun 10, 2020

    @ckerr
    Member

    @MarshallOfSound agreed, this regressed due to #11587.

    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...?

  8. MarshallOfSound commented on Jun 11, 2020

    @MarshallOfSound
    Member

    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

  9. ckerr commented on Jun 11, 2020

    @ckerr
    Member

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

9-x-ybug/regression ↩️platform/windowsstatus/confirmed

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions