@@ -3147,6 +3147,7 @@ impl Tab {
31473147 self . edit_location = None ;
31483148 if point_opt. is_none ( ) || !mod_shift {
31493149 self . context_menu = point_opt;
3150+ self . location_context_menu_index = None ;
31503151
31513152 //TODO: hack for clearing selecting when right clicking empty space
31523153 if self . context_menu . is_some ( ) && self . last_right_click . take ( ) . is_none ( ) {
@@ -3159,11 +3160,11 @@ impl Tab {
31593160 }
31603161 }
31613162 Message :: LocationContextMenuPoint ( point_opt) => {
3162- self . context_menu = point_opt ;
3163+ self . context_menu = None ;
31633164 self . location_context_menu_point = point_opt;
31643165 }
31653166 Message :: LocationContextMenuIndex ( p, index_opt) => {
3166- self . context_menu = p ;
3167+ self . context_menu = None ;
31673168 self . location_context_menu_point = p;
31683169 self . location_context_menu_index = index_opt;
31693170 }
@@ -4627,8 +4628,7 @@ impl Tab {
46274628 }
46284629
46294630 let mouse_area = crate :: mouse_area:: MouseArea :: new ( column)
4630- . on_right_press ( Message :: LocationContextMenuPoint )
4631- . wayland_on_right_press_window_position ( ) ;
4631+ . on_right_press ( Message :: LocationContextMenuPoint ) ;
46324632
46334633 let mut popover = widget:: popover ( mouse_area) ;
46344634 if let ( Some ( point) , Some ( index) ) = (
0 commit comments