style: Fix indentation errors
While we have some style inconsistencies - mostly regarding split lines, i.e. aligning to the first arguments vs. a four-space indent - there are a couple of places where the spacing is simply wrong. Fix those. Spotted by eslint. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/608
This commit is contained in:

committed by
Georges Basile Stavracas Neto

parent
8fcd6c7153
commit
1398aa6562
@@ -44,8 +44,8 @@ var XdndHandler = class {
|
||||
|
||||
_onEnter() {
|
||||
this._windowGroupVisibilityHandlerId =
|
||||
global.window_group.connect('notify::visible',
|
||||
this._onWindowGroupVisibilityChanged.bind(this));
|
||||
global.window_group.connect('notify::visible',
|
||||
this._onWindowGroupVisibilityChanged.bind(this));
|
||||
|
||||
this.emit('drag-begin', global.get_current_time());
|
||||
}
|
||||
@@ -83,7 +83,7 @@ var XdndHandler = class {
|
||||
|
||||
// Make sure that the cursor window is on top
|
||||
if (this._cursorWindowClone)
|
||||
this._cursorWindowClone.raise_top();
|
||||
this._cursorWindowClone.raise_top();
|
||||
|
||||
let dragEvent = {
|
||||
x: x,
|
||||
@@ -103,17 +103,17 @@ var XdndHandler = class {
|
||||
}
|
||||
|
||||
while (pickedActor) {
|
||||
if (pickedActor._delegate && pickedActor._delegate.handleDragOver) {
|
||||
let [r, targX, targY] = pickedActor.transform_stage_point(x, y);
|
||||
let result = pickedActor._delegate.handleDragOver(this,
|
||||
dragEvent.dragActor,
|
||||
targX,
|
||||
targY,
|
||||
global.get_current_time());
|
||||
if (result != DND.DragMotionResult.CONTINUE)
|
||||
return;
|
||||
}
|
||||
pickedActor = pickedActor.get_parent();
|
||||
if (pickedActor._delegate && pickedActor._delegate.handleDragOver) {
|
||||
let [r, targX, targY] = pickedActor.transform_stage_point(x, y);
|
||||
let result = pickedActor._delegate.handleDragOver(this,
|
||||
dragEvent.dragActor,
|
||||
targX,
|
||||
targY,
|
||||
global.get_current_time());
|
||||
if (result != DND.DragMotionResult.CONTINUE)
|
||||
return;
|
||||
}
|
||||
pickedActor = pickedActor.get_parent();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user