mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
overview: Don't expect time argument from drag-end signal
We actually don't get a time from the xdndHandler when it emits
drag-end, so we fail right now when calling
workspaceManager.get_workspace_by_index(time).
Fix it by getting the time ourselves instead.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2211>
(cherry picked from commit bb1ec88dfa)
This commit is contained in:
parent
617938d6f2
commit
58051fd479
1 changed files with 3 additions and 2 deletions
|
|
@ -265,7 +265,7 @@ var Overview = class {
|
|||
this._lastActiveWorkspaceIndex = workspaceManager.get_active_workspace_index();
|
||||
}
|
||||
|
||||
_onDragEnd(time) {
|
||||
_onDragEnd() {
|
||||
this._inXdndDrag = false;
|
||||
|
||||
// In case the drag was canceled while in the overview
|
||||
|
|
@ -273,7 +273,8 @@ var Overview = class {
|
|||
// the overview
|
||||
if (this._shown) {
|
||||
let workspaceManager = global.workspace_manager;
|
||||
workspaceManager.get_workspace_by_index(this._lastActiveWorkspaceIndex).activate(time);
|
||||
workspaceManager.get_workspace_by_index(this._lastActiveWorkspaceIndex)
|
||||
.activate(global.get_current_time());
|
||||
this.hide();
|
||||
}
|
||||
this._resetWindowSwitchTimeout();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue