diff --git a/resources/context_menu.html b/resources/context_menu.html
index 702d1709..765b5f92 100644
--- a/resources/context_menu.html
+++ b/resources/context_menu.html
@@ -13,6 +13,7 @@
justify-content: start;
}
.menu-item {
+ cursor: pointer;
display: inline-block;
height: 30px;
width: 100%;
@@ -27,6 +28,7 @@
border-radius: 5px;
}
.menu-item.disabled {
+ cursor: default;
background: #dfdfdf;
color: #505050;
cursor: pointer;
@@ -61,7 +63,7 @@
} else {
menuItem.onclick = (ev) => {
// accept left click only
- if (ev.buttons != 1) {
+ if (ev.buttons !== 1) {
return;
}
const msg = JSON.stringify({
diff --git a/src/context_menu.rs b/src/context_menu.rs
index bd3c5aeb..869915c9 100644
--- a/src/context_menu.rs
+++ b/src/context_menu.rs
@@ -9,13 +9,19 @@ use raw_window_handle::{HasWindowHandle, RawWindowHandle};
/* Wayland Implementation */
#[cfg(linux)]
-use crate::webview::WebView;
+use crate::{verso::send_to_constellation, webview::WebView, window::Window};
+#[cfg(linux)]
+use compositing_traits::ConstellationMsg;
+#[cfg(linux)]
+use crossbeam_channel::Sender;
#[cfg(linux)]
use serde::{Deserialize, Serialize};
#[cfg(linux)]
-use webrender_api::units::DeviceIntPoint;
+use servo_url::ServoUrl;
#[cfg(linux)]
use webrender_api::units::DeviceIntRect;
+#[cfg(linux)]
+use winit::dpi::PhysicalPosition;
/// Context Menu
#[cfg(any(target_os = "macos", target_os = "windows"))]
@@ -65,7 +71,7 @@ impl ContextMenu {
pub struct ContextMenu {
menu_items: Vec