WindowClone: Fix warnings in window overview (#1549)

This commit is contained in:
Leo 2023-02-19 20:07:30 +09:00 committed by GitHub
parent 37fea81035
commit 9443686190
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -444,7 +444,7 @@ public class Gala.WindowClone : Clutter.Actor {
active_shape.set_scale_factor (scale_factor);
if (clone == null || drag_action.dragging) {
if (clone == null || (drag_action != null && drag_action.dragging)) {
return;
}
@ -469,7 +469,7 @@ public class Gala.WindowClone : Clutter.Actor {
}
public override bool enter_event (Clutter.CrossingEvent event) {
if (drag_action.dragging) {
if (drag_action != null && drag_action.dragging) {
return Gdk.EVENT_PROPAGATE;
}