Skip to content

Commit

Permalink
fix: drag and drop the window is not activated.
Browse files Browse the repository at this point in the history
Change-Id: Ibbeaf7cc2fabedc9329987dbb68df9edb2eece85
  • Loading branch information
rekols committed Oct 12, 2018
1 parent ea61597 commit a199cec
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/tabbar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -377,9 +377,10 @@ void Tabbar::handleTabDroped(int index, Qt::DropAction, QObject *target)
Tabbar *tabbar = qobject_cast<Tabbar *>(target);

if (tabbar == nullptr) {
QWidget *window = this->window();
Window *window = static_cast<Window *>(this->window());
window->move(QCursor::pos() - window->topLevelWidget()->pos());
window->show();
//window->move(QCursor::pos() - window->topLevelWidget()->pos());
window->activateWindow();
} else {
closeTab(index);
}
Expand Down

0 comments on commit a199cec

Please sign in to comment.