Skip to content

Conversation

@amnweb
Copy link
Owner

@amnweb amnweb commented Nov 22, 2025

Closes #563

Trying to bypass Windows restriction when we call a widget with the CLI without user interaction with the bar and force a window to the foreground with focus

- This change ensures that Python files are automatically formatted on save
- Introduced `force_foreground_focus` function to ensure popups gain focus correctly.
- Updated `showEvent` in `ImageGallery` and `_show_launchpad` in `LaunchpadWidget` to use the new focus method.
- Removed redundant focus handling logic in `PowerMenuWidget` and `WallpapersWidget`.
@amnweb amnweb changed the title Fix/cli-popup-focus-handling fix(cli): fix popup focus handling Nov 22, 2025
@amnweb amnweb merged commit c33b45e into main Nov 24, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

WallpapersWidget gallery loses keyboard focus (arrows/Enter) when toggled via CLI; requires mouse click

1 participant