Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions data/dock.gschema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
<value nick='always' value='4'/>
</enum>

<enum id="DNDBehavior">
<value nick='none' value='0'/>
<value nick='unpin' value='1'/>
</enum>

<schema path="/io/elementary/dock/" id="io.elementary.dock">
<key enum="HideMode" name="autohide-mode">
<default>'overlapping-focus-window'</default>
Expand All @@ -26,6 +31,12 @@
<summary>An ordered array of app id's to show as launchers</summary>
<description>An ordered array of app id's to show as launchers</description>
</key>

<key enum="DNDBehavior" name="drag-off-dock-behavior">
<default>'unpin'</default>
<summary>What to do when a launcher is dragged off the dock.</summary>
<description>What happens when a launcher is dragged off the dock and released there</description>
</key>
</schema>
<schema path="/io/elementary/dock/keybindings/" id="io.elementary.dock.keybindings">
<key type="as" name="launch-dock-1">
Expand Down
2 changes: 1 addition & 1 deletion src/Launcher.vala
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ public class Dock.Launcher : Gtk.Box {
}

private bool on_drag_cancel (Gdk.Drag drag, Gdk.DragCancelReason reason) {
if (app.pinned && reason == NO_TARGET) {
if (app.pinned && reason == NO_TARGET && settings.get_enum ("drag-off-dock-behavior") == 1) {
var popover = new PoofPopover ();

unowned var window = (MainWindow) get_root ();
Expand Down