mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
Fix cursor when dragging a window over its current workspace
When we are dragging a window over its current workspace or workspace thumbnail, we show show "no drop possible" feedback instead of "move here" feedback. https://bugzilla.gnome.org/show_bug.cgi?id=642329
This commit is contained in:
parent
45fe44da85
commit
01097ac954
2 changed files with 2 additions and 2 deletions
|
|
@ -1297,7 +1297,7 @@ Workspace.prototype = {
|
|||
|
||||
// Draggable target interface
|
||||
handleDragOver : function(source, actor, x, y, time) {
|
||||
if (source instanceof WindowClone)
|
||||
if (source.realWindow && !this._isMyWindow(source.realWindow))
|
||||
return DND.DragMotionResult.MOVE_DROP;
|
||||
if (source.shellWorkspaceLaunch)
|
||||
return DND.DragMotionResult.COPY_DROP;
|
||||
|
|
|
|||
|
|
@ -343,7 +343,7 @@ WorkspaceThumbnail.prototype = {
|
|||
if (this.state > ThumbnailState.NORMAL)
|
||||
return DND.DragMotionResult.CONTINUE;
|
||||
|
||||
if (source.realWindow)
|
||||
if (source.realWindow && !this._isMyWindow(source.realWindow))
|
||||
return DND.DragMotionResult.MOVE_DROP;
|
||||
if (source.shellWorkspaceLaunch)
|
||||
return DND.DragMotionResult.COPY_DROP;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue