Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidXanatos committed Jan 28, 2024
1 parent ae54a8a commit 2c2e524
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@ This project adheres to [Semantic Versioning](http://semver.org/).
- added Japanese language on Plus UI [#3573](https://github.com/sandboxie-plus/Sandboxie/pull/3573)

### Fixed
- fixed SBIE2321 Cannot manage device map: [C0000034 / 11] [#2996](https://github.com/sandboxie-plus/Sandboxie/issues/2996)
- fixed SBIE2321 Cannot manage device map: C0000034 / 11 [#2996](https://github.com/sandboxie-plus/Sandboxie/issues/2996)
- fixed Cannot run explorer.exe on emulate admin sandbox [#3516](https://github.com/sandboxie-plus/Sandboxie/issues/3516)
- fixed potential BSOD issue with WFP when trace loging is enabled
- fixed potential BSOD issue with WFP when trace loging is enabled [#2471](https://github.com/sandboxie-plus/Sandboxie/issues/2471)
- fixed Run from Sandbox > Run > Program and Run from folder doesn't use the same working dir [#3555](https://github.com/sandboxie-plus/Sandboxie/issues/3555)
- fixed UseNewSymlinkResolver causes applications to create both the link and the target folder [#3481](https://github.com/sandboxie-plus/Sandboxie/issues/3481)
- fixed [Plus UI] Notification window is stuck when a modal dialog shows up [#3586](https://github.com/sandboxie-plus/Sandboxie/issues/3586)



Expand Down
16 changes: 15 additions & 1 deletion SandboxiePlus/SandMan/Windows/PopUpWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,22 @@ void CPopUpWindow::timerEvent(QTimerEvent* pEvent)
if (pEvent->timerId() != m_uTimerID)
return;

if (m_iTopMost > -5 && (--m_iTopMost == 0)) {
if (m_iTopMost > -5 && (--m_iTopMost == 0))
{
SetWindowPos((HWND)this->winId(), HWND_NOTOPMOST , 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_NOACTIVATE);

QWidget *topMostWindow = nullptr;
for (QWidget *widget : QApplication::topLevelWidgets()) {
if (widget->isVisible() && widget->isActiveWindow()) {
topMostWindow = widget;
break;
}
}

if(topMostWindow && (topMostWindow->inherits("CCheckableMessageBox") || topMostWindow->inherits("QMessageBox"))){
SetWindowPos((HWND)topMostWindow->winId(), HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_NOACTIVATE);
SetWindowPos((HWND)topMostWindow->winId(), HWND_NOTOPMOST , 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_NOACTIVATE);
}
}
}

Expand Down

0 comments on commit 2c2e524

Please sign in to comment.