mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
XDND: Allow workspace switching using the thumbnails
Currently activating a window on a different workspace requires very long drag distances, which is very inconvenient to use. Fix that by allowing switching workspaces using the thumbnails which is consistent with window and launcher dnd and much easier to use. https://bugzilla.gnome.org/show_bug.cgi?id=643945
This commit is contained in:
parent
c58b8498b3
commit
528fc9bc47
3 changed files with 16 additions and 1 deletions
|
|
@ -379,6 +379,11 @@ WorkspaceThumbnail.prototype = {
|
|||
|
||||
// Draggable target interface
|
||||
handleDragOver : function(source, actor, x, y, time) {
|
||||
if (source == Main.xdndHandler) {
|
||||
this.metaWorkspace.activate(time);
|
||||
return DND.DragMotionResult.CONTINUE;
|
||||
}
|
||||
|
||||
if (this.state > ThumbnailState.NORMAL)
|
||||
return DND.DragMotionResult.CONTINUE;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue