moving: Grab use correct cursor

This commit is contained in:
Victoria Brekenfeld 2023-07-18 12:21:16 +02:00
parent da59cbd768
commit 88d8972d34
2 changed files with 22 additions and 1 deletions

View file

@ -42,6 +42,7 @@ pub enum CursorShape {
Default,
ColResize,
RowResize,
Grab,
}
impl ToString for CursorShape {
@ -50,6 +51,7 @@ impl ToString for CursorShape {
CursorShape::Default => "default",
CursorShape::ColResize => "col-resize",
CursorShape::RowResize => "row-resize",
CursorShape::Grab => "grabbing",
}
.to_string()
}
@ -243,6 +245,10 @@ impl Default for CursorState {
CursorShape::RowResize,
Cursor::load(&theme, CursorShape::RowResize, size),
);
map.insert(
CursorShape::Grab,
Cursor::load(&theme, CursorShape::Grab, size),
);
map
},
current_image: RefCell::new(None),