Restore window dragging by drag on player

This commit is contained in:
Rafostar
2020-10-13 20:32:59 +02:00
parent cdfafd52af
commit 3e96a13f00
2 changed files with 24 additions and 25 deletions

View File

@@ -82,9 +82,11 @@ class ClapperPlayer extends GstPlayer.Player
this.keyController = new Gtk.EventControllerKey();
this.motionController = new Gtk.EventControllerMotion();
this.dragGesture = new Gtk.GestureDrag();
this.widget.add_controller(this.keyController);
this.widget.add_controller(this.motionController);
this.widget.add_controller(this.dragGesture);
this.connect('state-changed', this._onStateChanged.bind(this));
this.connect('uri-loaded', this._onUriLoaded.bind(this));