* Turned the software renderer into a window as well

* Fix inability to move window on GNOME
* Fix status bar icons being frozen after icon set switch
This commit is contained in:
Cacodemon345
2021-12-29 23:49:09 +06:00
parent 6b07e10947
commit 1bdff37e38
11 changed files with 65 additions and 36 deletions

View File

@@ -120,7 +120,6 @@ int main(int argc, char* argv[]) {
main_window = new MainWindow();
main_window->show();
main_window->setFocus();
app.installEventFilter(main_window);
#ifdef Q_OS_WINDOWS
@@ -134,13 +133,6 @@ int main(int argc, char* argv[]) {
}
#endif
auto widgetList = app.allWidgets();
for (auto curWidget : widgetList)
{
curWidget->setFocusPolicy(Qt::NoFocus);
}
main_window->setFocusPolicy(Qt::StrongFocus);
pc_reset_hard_init();
/* Set the PAUSE mode depending on the renderer. */