Introduces a new `core/windows` module (`Nebula.Windows`) with `WindowService`, window/workspace models, and a Sway IPC backend for live window tracking and control (focus, close, move/resize, snap, maximize/restore, minimize, workspace switch). The desktop shell now links this module, uses compositor focus for top-bar active app text, and adds an Open Windows section in the launcher with focus/close actions. Also updates application metadata handling to parse `StartupWMClass` and map window `app_id`/class to friendly names and icons, and revises Sway config/docs for the new floating-first Desktop 0.2 behavior with temporary compositor-provided decorations.
33 lines
813 B
C++
33 lines
813 B
C++
#pragma once
|
|
|
|
#include <QString>
|
|
#include <QStringList>
|
|
|
|
struct DesktopEntry
|
|
{
|
|
QString desktopId;
|
|
QString filePath;
|
|
QString name;
|
|
QString genericName;
|
|
QString comment;
|
|
QString icon;
|
|
QString exec;
|
|
QString tryExec;
|
|
QString startupWmClass;
|
|
QString workingDirectory;
|
|
QStringList categories;
|
|
bool terminal = false;
|
|
bool hidden = false;
|
|
bool noDisplay = false;
|
|
|
|
bool isLauncherVisible() const;
|
|
bool launch() const;
|
|
};
|
|
|
|
DesktopEntry parseDesktopEntryFile(const QString &filePath, const QString &desktopId);
|
|
QStringList applicationDirectories();
|
|
QStringList currentDesktopIdentifiers();
|
|
QStringList splitDesktopList(const QString &value);
|
|
QStringList expandExec(const QString &exec, const DesktopEntry &entry);
|
|
QString resolveIconName(const QString &icon);
|