mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
GNOME Wayland doesn't support native decorations
This commit is contained in:
parent
5991cd4350
commit
8fd1253266
1 changed files with 4 additions and 1 deletions
|
@ -8,6 +8,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "platform/platform_window_title.h"
|
#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"
|
#include "base/object_ptr.h"
|
||||||
|
|
||||||
namespace Window {
|
namespace Window {
|
||||||
|
@ -22,7 +24,8 @@ void DefaultPreviewWindowFramePaint(QImage &preview, const style::palette &palet
|
||||||
namespace Platform {
|
namespace Platform {
|
||||||
|
|
||||||
inline bool AllowNativeWindowFrameToggle() {
|
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) {
|
inline object_ptr<Window::TitleWidget> CreateTitleWidget(QWidget *parent) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue