This appears to be a compiz bug. Attaching gdb to bamf shows that the window is being removed from the client list (and then immediately readded) when it is restored
This appears to be a compiz bug. Attaching gdb to bamf shows that the window is being removed from the client list (and then immediately readded) when it is restored