-
-
Notifications
You must be signed in to change notification settings - Fork 32
Implement workspace reordering with drag and drop #392
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
lenemter
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DynamicWorkspaceItem probably shouldn't support drag, dragging it does nothing as it can't be moved
|
Fixed |
src/BaseItem.vala
Outdated
| var drop_target = new Gtk.DropTarget (get_type (), MOVE) { | ||
| preload = true | ||
| }; | ||
| add_controller (drop_target); | ||
| drop_target.enter.connect (on_drop_enter); | ||
| drop_target.drop.connect (on_drop); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we still want to add drop target even when dran-and-drop isn't allowed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmmm why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because dragging a workspace to the left of dynamic workspace icon doesn't do anything, while doing so on icon groups makes space for the dragged workspace
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah but just adding the drop target wont fix it since it only accepts drops from the same type
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok we support now a drag to the dynamic workspace icon.
|
There is a new visual glitch when dragging items: new.bug.mp4 |
|
Should be fixed now. Turns out the fancy calculation never actually did anything lol |
Fixes #381
Requires elementary/gala#2320
A few things: