[gnome-shell/gnome-40] dnd: Return Clutter.EVENT_STOP instead of true
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gnome-40] dnd: Return Clutter.EVENT_STOP instead of true
- Date: Mon, 31 May 2021 18:02:14 +0000 (UTC)
commit f0d8eb193d299ba8d285a65be57ba122c97f7c3a
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Sun May 30 21:27:51 2021 -0300
dnd: Return Clutter.EVENT_STOP instead of true
Trivial cleanup.
Clutter.EVENT_STOP is more semantic, and this 'true' is inconsistent
with the 'return Clutter.EVENT_PROPAGATE;' a few lines above.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1867>
js/ui/dnd.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/js/ui/dnd.js b/js/ui/dnd.js
index 34ed8aefca..252ebb85c3 100644
--- a/js/ui/dnd.js
+++ b/js/ui/dnd.js
@@ -518,7 +518,7 @@ var _Draggable = class _Draggable {
}
}
- return true;
+ return Clutter.EVENT_STOP;
}
_pickTargetActor() {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]