We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 99b89b3 commit 3ecea3bCopy full SHA for 3ecea3b
src/kernel/dplatformhandle.cpp
@@ -626,7 +626,10 @@ class Q_DECL_HIDDEN CreatorWindowEventFile : public QObject {
626
*/
627
bool DPlatformHandle::setEnabledNoTitlebarForWindow(QWindow *window, bool enable)
628
{
629
- if (!isDXcbPlatform())
+ auto isDWaylandPlatform = [] {
630
+ return qApp->platformName() == "dwayland" || qApp->property("_d_isDwayland").toBool();
631
+ };
632
+ if (!(isDXcbPlatform() || isDWaylandPlatform()))
633
return false;
634
635
QFunctionPointer enable_no_titlear = nullptr;
0 commit comments