diff options
| -rw-r--r-- | src/handlers/xdg_shell.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/handlers/xdg_shell.rs b/src/handlers/xdg_shell.rs index 922250ba..ac078f86 100644 --- a/src/handlers/xdg_shell.rs +++ b/src/handlers/xdg_shell.rs @@ -83,7 +83,7 @@ impl XdgShellHandler for State { if focus.id().same_client_as(&wl_surface.id()) { // Deny move requests from DnD grabs to work around // https://gitlab.gnome.org/GNOME/gtk/-/issues/7113 - let is_dnd_grab = grab.as_any().downcast_ref::<DnDGrab<Self>>().is_some(); + let is_dnd_grab = grab.as_any().is::<DnDGrab<Self>>(); if !is_dnd_grab { grab_start_data = @@ -103,8 +103,7 @@ impl XdgShellHandler for State { if focus.id().same_client_as(&wl_surface.id()) { // Deny move requests from DnD grabs to work around // https://gitlab.gnome.org/GNOME/gtk/-/issues/7113 - let is_dnd_grab = - grab.as_any().downcast_ref::<DnDGrab<Self>>().is_some(); + let is_dnd_grab = grab.as_any().is::<DnDGrab<Self>>(); if !is_dnd_grab { grab_start_data = |
