Skip to content

Commit 3674f01

Browse files
authored
Add files via upload
1 parent 447e957 commit 3674f01

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

panel.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,13 @@
1818
#include <QHBoxLayout>
1919
#include <QSpacerItem>
2020

21-
#include <QX11Info>
22-
2321
#include "applet.h"
2422
#include "applets/appmenu/appmenu.h"
2523
#include "applets/datetime/datetime.h"
2624
#include "applets/kblayout/kblayout.h"
2725
#include "applets/usermenu/usermenu.h"
2826
#include "applets/volume/volume.h"
2927

30-
31-
Display* display = QX11Info::display();
3228
QJsonObject config;
3329
QMap<QString,QWidget*> appletWidgets;
3430
PanelLocation location;
@@ -62,7 +58,8 @@ void readConfig() {
6258
}
6359

6460
void basicInit(panel* w) {
65-
if (!QX11Info::isPlatformX11()) {
61+
//if (!QX11Info::isPlatformX11()) {
62+
if (QString::compare(getenv("XDG_SESSION_TYPE"), "x11")) {
6663
qDebug() << "plainPanel currently works only on X11. Quitting...";
6764
QApplication::quit();
6865
}

0 commit comments

Comments
 (0)