Skip to content

Commit 11381c2

Browse files
committed
Notify moving
1 parent dbd4fc8 commit 11381c2

File tree

1 file changed

+4
-19
lines changed

1 file changed

+4
-19
lines changed

src/AppSystem/Launcher.vala

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -31,25 +31,6 @@ public class Dock.Launcher : BaseItem {
3131

3232
public App app { get; construct; }
3333

34-
private bool _moving;
35-
public new bool moving {
36-
get { return _moving; }
37-
set {
38-
_moving = value;
39-
40-
if (value) {
41-
bin.width_request = bin.get_width ();
42-
bin.height_request = bin.get_height ();
43-
} else {
44-
bin.width_request = -1;
45-
bin.height_request = -1;
46-
}
47-
48-
overlay.visible = !value;
49-
running_revealer.reveal_child = !value && state != HIDDEN;
50-
}
51-
}
52-
5334
private State _state;
5435
public new State state {
5536
get { return _state; }
@@ -321,6 +302,10 @@ public class Dock.Launcher : BaseItem {
321302
app.notify["running"].connect (update_active_state);
322303
update_active_state ();
323304

305+
notify["moving"].connect (() => {
306+
running_revealer.reveal_child = !moving && state != HIDDEN;
307+
});
308+
324309
var drop_controller_motion = new Gtk.DropControllerMotion ();
325310
add_controller (drop_controller_motion);
326311
drop_controller_motion.enter.connect (queue_dnd_cycle);

0 commit comments

Comments
 (0)