Skip to content

Commit

Permalink
Merge branch 'context-menu-returns' of https://github.com/pewsheen/muda
Browse files Browse the repository at this point in the history
… into context-menu-returns
  • Loading branch information
amrbashir committed Nov 5, 2024
2 parents a5380de + d0df992 commit 66243f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .changes/add-context-menu-dismiss-result.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
"muda": patch
"muda": minor
---

Return `bool` in `ContextMenu::show_context_menu_for_hwnd` on Windows and `ContextMenu::show_context_menu_for_nsview` on macOS to indicate why the context menu was closed.
Return `bool` in `ContextMenu::show_context_menu_for_hwnd`, `ContextMenu::show_context_menu_for_nsview` and `ContextMenu::show_context_menu_for_gtk_window` to indicate why the context menu was closed.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ pub trait ContextMenu {
///
/// - `position` is relative to the window top-left corner, if `None`, the cursor position is used.
///
/// Returns `true` if menu tracking ended because an item was selected or clicked other place to dismiss the menu
/// Returns `true` if menu tracking ended because an item was selected or clicked outside the menu to dismiss it.
///
/// Returns `false` if menu tracking was cancelled for any reason.
#[cfg(target_os = "linux")]
Expand Down

0 comments on commit 66243f3

Please sign in to comment.