forked from genodelabs/genode
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
window_layouter: handle drag/drop as actions
This patch moves the formerly hard-wired drag-and-drop handling to the configuration level by introducing the actions "drag" and "drop". To aid the robust handling of release events matching their corresponding press events, the patch refines the policy-matching of the current combination of keys against the hierarchy of <press> and <release> nodes. If no policy for a concrete combination exists, a release event also considers the policy of its matching <press> node. This way, the regular drag-and-drop rules can be expressed as <press key="BTN_LEFT" action="drag"> <release key="BTN_LEFT" action="drop"/> </press> This also works when releasing BTN_LEFT while pressing additional keys, for which no policy exists. With this change, the layouter supports the matching of multiple key sequences instead of only one, thereby supporting multiple actions at once and allowing for decoupling different user interactions in the configuration. Issue genodelabs#5403
- Loading branch information
Showing
5 changed files
with
129 additions
and
78 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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