mirror of
https://github.com/elementary/gala.git
synced 2024-09-11 15:15:39 +03:00
WindowClone: Fix warnings in window overview (#1549)
This commit is contained in:
parent
37fea81035
commit
9443686190
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user