mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-10-05 13:16:13 +00:00
Get rid of unneeded material wayland decorations
This commit is contained in:
@@ -601,12 +601,6 @@ void MainWindow::initHook() {
|
||||
#endif // !DESKTOP_APP_DISABLE_DBUS_INTEGRATION
|
||||
|
||||
LOG(("System tray available: %1").arg(Logs::b(trayAvailable())));
|
||||
|
||||
updateWaylandDecorationColors();
|
||||
style::PaletteChanged(
|
||||
) | rpl::start_with_next([=] {
|
||||
updateWaylandDecorationColors();
|
||||
}, lifetime());
|
||||
}
|
||||
|
||||
bool MainWindow::hasTrayIcon() const {
|
||||
@@ -896,26 +890,6 @@ void MainWindow::updateIconCounters() {
|
||||
}
|
||||
}
|
||||
|
||||
void MainWindow::updateWaylandDecorationColors() {
|
||||
windowHandle()->setProperty(
|
||||
"__material_decoration_backgroundColor",
|
||||
st::titleBgActive->c);
|
||||
|
||||
windowHandle()->setProperty(
|
||||
"__material_decoration_foregroundColor",
|
||||
st::titleFgActive->c);
|
||||
|
||||
windowHandle()->setProperty(
|
||||
"__material_decoration_backgroundInactiveColor",
|
||||
st::titleBg->c);
|
||||
windowHandle()->setProperty(
|
||||
"__material_decoration_foregroundInactiveColor",
|
||||
st::titleFg->c);
|
||||
|
||||
// Trigger a QtWayland client-side decoration update
|
||||
windowHandle()->resize(windowHandle()->size());
|
||||
}
|
||||
|
||||
void MainWindow::initTrayMenuHook() {
|
||||
_trayIconMenuXEmbed.emplace(nullptr, trayIconMenu);
|
||||
_trayIconMenuXEmbed->deleteOnHide(false);
|
||||
|
Reference in New Issue
Block a user