mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 22:54:01 +02:00
Qt 6.4 supports window activation with tray on Wayland
This commit is contained in:
parent
eab41d272b
commit
feb6107ce6
2 changed files with 0 additions and 7 deletions
|
@ -242,11 +242,6 @@ void MainWindow::initHook() {
|
||||||
#endif // !DESKTOP_APP_DISABLE_X11_INTEGRATION
|
#endif // !DESKTOP_APP_DISABLE_X11_INTEGRATION
|
||||||
}
|
}
|
||||||
|
|
||||||
bool MainWindow::isActiveForTrayMenu() {
|
|
||||||
updateIsActive();
|
|
||||||
return Platform::IsWayland() ? isVisible() : isActive();
|
|
||||||
}
|
|
||||||
|
|
||||||
void MainWindow::workmodeUpdated(Core::Settings::WorkMode mode) {
|
void MainWindow::workmodeUpdated(Core::Settings::WorkMode mode) {
|
||||||
if (!TrayIconSupported()) {
|
if (!TrayIconSupported()) {
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -22,8 +22,6 @@ class MainWindow : public Window::MainWindow {
|
||||||
public:
|
public:
|
||||||
explicit MainWindow(not_null<Window::Controller*> controller);
|
explicit MainWindow(not_null<Window::Controller*> controller);
|
||||||
|
|
||||||
bool isActiveForTrayMenu() override;
|
|
||||||
|
|
||||||
~MainWindow();
|
~MainWindow();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
Loading…
Add table
Reference in a new issue