Remove code for QWS

It hasn't been a thing for an entire Qt major version
wilder-5.26
Nicolas Fella 4 years ago committed by Nate Graham
parent 7931c13e88
commit 07394e919e
  1. 8
      libkworkspace/kworkspace.cpp

@ -25,12 +25,6 @@
#include <fixx11h.h>
#endif
#if HAVE_X11
#define DISPLAY "DISPLAY"
#elif defined(Q_WS_QWS)
#define DISPLAY "QWS_DISPLAY"
#endif
#include "config-workspace.h"
#ifdef HAVE_UNISTD_H
@ -81,7 +75,7 @@ void propagateSessionManager()
{
#if HAVE_X11
QByteArray fName = QFile::encodeName(QStandardPaths::writableLocation(QStandardPaths::RuntimeLocation) + "/KSMserver");
QString display = QString::fromLocal8Bit(::getenv(DISPLAY));
QString display = QString::fromLocal8Bit(::getenv("DISPLAY"));
// strip the screen number from the display
display.remove(QRegularExpression(QStringLiteral("\\.\\d+$")));
int i;

Loading…
Cancel
Save