GNOME Wayland doesn't support native decorations

This commit is contained in:
Ilya Fedin 2020-09-06 17:46:43 +04:00 committed by John Preston
parent 5991cd4350
commit 8fd1253266

View file

@ -8,6 +8,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#pragma once
#include "platform/platform_window_title.h"
#include "platform/linux/linux_desktop_environment.h"
#include "base/platform/base_platform_info.h"
#include "base/object_ptr.h"
namespace Window {
@ -22,7 +24,8 @@ void DefaultPreviewWindowFramePaint(QImage &preview, const style::palette &palet
namespace Platform {
inline bool AllowNativeWindowFrameToggle() {
return true;
// https://gitlab.gnome.org/GNOME/mutter/-/issues/217
return !(DesktopEnvironment::IsGnome() && IsWayland());
}
inline object_ptr<Window::TitleWidget> CreateTitleWidget(QWidget *parent) {