bool mouse_handler_base::right_click(int x, int y, const bool browse) { if (right_click_show_menu(x, y, browse)) { gui().draw(); // redraw highlight (and maybe some more) const theme::menu* const m = gui().get_theme().context_menu(); if (m != NULL) { show_menu_ = true; } else { WRN_DP << "no context menu found..." << std::endl; } return true; } return false; }
/** * Overridden in derived classes, called on a right click (mousedown). * Defaults to displaying the menu (by setting the appropriate flag) * if right_click_show_menu returns true. * * @returns true when the click should not process the event further. * This means do not treat the call as a start of drag movement. */ virtual bool right_click(int x, int y, const bool browse) { return right_click_show_menu(x, y, browse); }