Looking at the logs, when the top-level surface is minimized its child still keeps focused and in the same state. Not sure if the child should also go to minimized state (probably yes) but I'm sure it should not be kept focused.
This looks like a miral bug. ** Changed in: unity8 (Ubuntu) Status: In Progress => Invalid ** Also affects: miral (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1672337 Title: [unity8] can't restore an app if you minimize it while a child window, menu or context menu is opened To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1672337/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs