Qt 6.4 supports window activation with tray on Wayland

This commit is contained in:
Ilya Fedin 2022-09-01 17:32:31 +04:00 committed by John Preston
parent eab41d272b
commit feb6107ce6
2 changed files with 0 additions and 7 deletions

View File

@ -242,11 +242,6 @@ void MainWindow::initHook() {
#endif // !DESKTOP_APP_DISABLE_X11_INTEGRATION
}
bool MainWindow::isActiveForTrayMenu() {
updateIsActive();
return Platform::IsWayland() ? isVisible() : isActive();
}
void MainWindow::workmodeUpdated(Core::Settings::WorkMode mode) {
if (!TrayIconSupported()) {
return;

View File

@ -22,8 +22,6 @@ class MainWindow : public Window::MainWindow {
public:
explicit MainWindow(not_null<Window::Controller*> controller);
bool isActiveForTrayMenu() override;
~MainWindow();
protected: