Fix:background apps focus stealing#61
Draft
PrayagCodes wants to merge 3 commits intocodepath:mainfrom
Draft
Conversation
When users launch background applications from the terminal, they expect to continue working in their current window without interruption. However, the current implementation was causing background applications to steal keyboard focus from the active window. Changes: - Added check in launch_app.js to prevent focusing background apps - Added check in ExecService.js to prevent focusing background apps - Added infrastructure to mark apps as background when launched - Implemented & operator support in shell parser for background processes - Updated PuterAppCommandProvider to respect background flag The fix ensures that: - Background applications launched from terminal do not steal keyboard focus - Terminal retains focus after launching background apps - Users can continue typing immediately after launching background apps - Existing window focus behavior for interactive applications remains unchanged Fixes focus-stealing bug when launching apps with & operator.
add options.background to UIWindow component to prevent focus at creation and during drag-and-drop. - Add options.background property (defaults to false) - Prevent focus at initial window creation if background - Respect background flag in drop and dragster:enter handlers - Pass background flag from launch_app.js to UIWindow Provides component-level focus control and complements IPC attachment focus prevention for comprehensive coverage.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.