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
{{ message }}
Repository navigation
[Linux] WindowManager.focus() does not focus the window. Ubuntu. #218
I think I had the same problem. Initialized the application like stated in the window_manager docs, but the application does not stay in focus when applying windowManager.focus(). I created a window listener and overrided onWindowBlur():
In combination with hide and focus the application stays in focus/foreground. This solution doesn't seem very professional, but at least fixed the issue for me.
window_manager 0.5.x is no longer maintained: from 0.6.0 window_manager is rebuilt on nativeapi (Flutter package: nativeapi), and its platform code moves there.
nativeapi doesn't handle this yet either, so it's now tracked in libnativeapi/nativeapi#69. Please follow it and add details there; once it's fixed there, it reaches window_manager through nativeapi.
Activity
phil3pi commentedon Sep 28, 2022
I think I had the same problem. Initialized the application like stated in the
window_managerdocs, but the application does not stay in focus when applyingwindowManager.focus(). I created a window listener and overrided onWindowBlur():In combination with hide and focus the application stays in focus/foreground. This solution doesn't seem very professional, but at least fixed the issue for me.
lijy91 commentedon Sep 21, 2026
window_manager 0.5.x is no longer maintained: from 0.6.0 window_manager is rebuilt on nativeapi (Flutter package: nativeapi), and its platform code moves there.
nativeapi doesn't handle this yet either, so it's now tracked in libnativeapi/nativeapi#69. Please follow it and add details there; once it's fixed there, it reaches window_manager through nativeapi.