aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/lumina-wm-INCOMPLETE/main.cpp
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2017-06-30 11:05:08 -0400
committerKen Moore <ken@ixsystems.com>2017-06-30 11:05:08 -0400
commit88c97efcbd3568aa79da2309fd480b20e0285860 (patch)
treed41fca5018ee8cf6fb6c9596f71263b3a89fe228 /src-qt5/core/lumina-wm-INCOMPLETE/main.cpp
parentFix the package plist for lumina-xdg-entry (diff)
downloadlumina-88c97efcbd3568aa79da2309fd480b20e0285860.tar.gz
lumina-88c97efcbd3568aa79da2309fd480b20e0285860.tar.bz2
lumina-88c97efcbd3568aa79da2309fd480b20e0285860.zip
Remove the lumina-wm-INCOMPLETE source directory - not needed anymore and is obsolete anyway.
Diffstat (limited to 'src-qt5/core/lumina-wm-INCOMPLETE/main.cpp')
-rw-r--r--src-qt5/core/lumina-wm-INCOMPLETE/main.cpp56
1 files changed, 0 insertions, 56 deletions
diff --git a/src-qt5/core/lumina-wm-INCOMPLETE/main.cpp b/src-qt5/core/lumina-wm-INCOMPLETE/main.cpp
deleted file mode 100644
index 02e48b7b..00000000
--- a/src-qt5/core/lumina-wm-INCOMPLETE/main.cpp
+++ /dev/null
@@ -1,56 +0,0 @@
-//===========================================
-// Lumina-DE source code
-// Copyright (c) 2015, Ken Moore
-// Available under the 3-clause BSD license
-// See the LICENSE file for full details
-//===========================================
-
-#include "GlobalDefines.h"
-//Initialize any global structures here
-LXCB *LWM::SYSTEM = 0;
-
-//Local includes
-#include "WMSession.h"
-#include "LWindow.h"
-#include <QDialog>
-
-
-//#define DEBUG 0
-int main(int argc, char ** argv)
-{
- qDebug() << "Starting lumina-wm...";
- LTHEME::LoadCustomEnvSettings();
- LSingleApplication a(argc, argv, "lumina-wm");
- if(!a.isPrimaryProcess()){ return 0; } //Inputs forwarded on to the primary already
- LuminaThemeEngine themes(&a);
-
- //Setup the global structures
- LWM::SYSTEM = new LXCB();
- if( a.inputlist.contains("--test-win") ){
- //Simple override to test out the window class
- qDebug() << "Starting window test...";
- QLabel dlg(0, Qt::Window | Qt::BypassWindowManagerHint); //this test should be ignored by the current WM
- dlg.setText("Sample Window");
- dlg.setWindowTitle("Test");
- dlg.resize(200,100);
- dlg.setStyleSheet("background: rgba(255,255,255,100); color: black;");
- dlg.move(100,100);
- dlg.show();
- //dlg.move(100,100);
- qDebug() << " - Loading window frame...";
- LWindow win(dlg.winId()); //have it wrap around the dialog
- qDebug() << " - Show frame...";
- win.frame()->windowChanged(LWM::Show);
- qDebug() << " - Start event loop...";
- a.setQuitOnLastWindowClosed(true);
- return a.exec();
- }
- WMSession w;
- w.start(a.inputlist.contains("--test-ss"));
- QObject::connect(&themes, SIGNAL(updateIcons()), &w, SLOT(reloadIcons()) );
- QObject::connect(&a, SIGNAL(InputsAvailable(QStringList)), &w, SLOT(newInputsAvailable(QStringList)) );
- if(!a.inputlist.isEmpty()){ w.newInputsAvailable(a.inputlist); }
- int retCode = a.exec();
-
- return retCode;
-}
bgstack15