Fix resizable window toggle on Windows

Also include a hex code on process crashes in the VM manager.
This commit is contained in:
Cacodemon345
2025-08-25 16:50:44 +06:00
parent e549a85755
commit 61b076a91c
4 changed files with 15 additions and 4 deletions

View File

@@ -1655,11 +1655,12 @@ MainWindow::focusOutEvent(QFocusEvent *event)
void
MainWindow::on_actionResizable_window_triggered(bool checked)
{
hide();
if (checked) {
vid_resize = 1;
setWindowFlag(Qt::WindowMaximizeButtonHint, true);
setWindowFlag(Qt::MSWindowsFixedSizeDialogHint, false);
setFixedSize(QWIDGETSIZE_MAX, QWIDGETSIZE_MAX);
setWindowFlag(Qt::MSWindowsFixedSizeDialogHint, false);
setWindowFlag(Qt::WindowMaximizeButtonHint, true);
for (int i = 1; i < MONITORS_NUM; i++) {
if (monitors[i].target_buffer) {
renderers[i]->setWindowFlag(Qt::WindowMaximizeButtonHint, true);