-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create root menu on right-click, and destroy when releasing right but…
…ton. (#144) * Adds header declaration for wlmtk_workspace_hog_window_focus. * Document some thoughts around input grabbing. * Remove definition of wlmtk_workspace_hog_window. Needs to be implemented at lower layers. * Adds methods for pointer grabbing and releasing. * Improves documentation about pointer grabbing. * Fixes typo. * Starts with tests for pointer grab. * Adds test to verify pointer grab cancellation propagates to parent, when grab-element is removed. * Add tests to verify pointer grab handling. * Cancels grab in elements added to a container. * Removes empty 'Data' section header comment. * Adds right-click handling to the window. * Exposes right-click-mode through root menu option. * Prevents double deletion. * Updates roadmap. * More consistent handling of button event in titlebar title.
- Loading branch information
Showing
14 changed files
with
412 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -798,18 +798,19 @@ void _wlmaker_server_unclaimed_button_event_handler( | |
server_ptr, | ||
&server_ptr->style.window, | ||
&server_ptr->style.menu, | ||
true, | ||
server_ptr->env_ptr); | ||
|
||
if (NULL != server_ptr->root_menu_ptr) { | ||
wlmtk_menu_set_mode( | ||
wlmaker_root_menu_menu(server_ptr->root_menu_ptr), | ||
WLMTK_MENU_MODE_RIGHTCLICK); | ||
|
||
wlmtk_window_t *window_ptr = wlmaker_root_menu_window( | ||
server_ptr->root_menu_ptr); | ||
wlmtk_workspace_t *workspace_ptr = | ||
wlmtk_root_get_current_workspace(server_ptr->root_ptr); | ||
wlmtk_workspace_map_window(workspace_ptr, window_ptr); | ||
wlmtk_container_pointer_grab( | ||
wlmtk_window_element(window_ptr)->parent_container_ptr, | ||
wlmtk_window_element(window_ptr)); | ||
|
||
// TODO([email protected]): Keep the menu window's position entirely | ||
// within the desktop area. | ||
|
Oops, something went wrong.