This is correct behaviour. The X server window loses focus, not the X app inside it.
Your app would lose focus correctly if Unity8 used Xmir properly with -rootless. I appreciate Unity8's still not ready for that (bug 1543467) so will implement another workaround in Xmir. ** Changed in: xorg-server (Ubuntu) Assignee: (unassigned) => Daniel van Vugt (vanvugt) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1582471 Title: Add focus/unfocus event passing for Xmir non-rootless mode To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/1582471/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs