Skip to content

Commit

Permalink
Use the *correct* xcursor cursor names over decorations
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanGriffiths committed Feb 25, 2025
1 parent 47f32bf commit f92e959
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions src/server/shell/decoration/input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -548,26 +548,32 @@ void msd::InputManager::set_cursor(MirResizeEdge resize_edge)
{
case mir_resize_edge_north:
case mir_resize_edge_south:
cursor_name = mir_vertical_resize_cursor_name;
cursor_name = "v_double_arrow";
break;

case mir_resize_edge_east:
case mir_resize_edge_west:
cursor_name = mir_horizontal_resize_cursor_name;
cursor_name = "h_double_arrow";
break;

case mir_resize_edge_northeast:
cursor_name = "top_right_corner";
break;

case mir_resize_edge_southwest:
cursor_name = mir_diagonal_resize_bottom_to_top_cursor_name;
cursor_name = "bottom_left_corner";
break;

case mir_resize_edge_northwest:
cursor_name = "top_left_corner";
break;

case mir_resize_edge_southeast:
cursor_name = mir_diagonal_resize_top_to_bottom_cursor_name;
cursor_name = "bottom_right_corner";
break;

default:
cursor_name = mir_default_cursor_name;
cursor_name = "arrow";
}

if (cursor_name != current_cursor_name)
Expand Down

0 comments on commit f92e959

Please sign in to comment.