Phosphor
Qt6 / Wayland library suite for window-management tools
Loading...
Searching...
No Matches
PhosphorCompositor::WindowInfo Struct Reference

Compositor-agnostic window property snapshot. More...

#include <PhosphorCompositor/ICompositorBridge.h>

Public Attributes

WindowHandle handle = nullptr
QString windowId
QString appId
QString windowClass
 WM_CLASS / app_id as reported by compositor (may differ from appId for XWayland).
QString screenId
QString caption
QIcon icon
QRectF frameGeometry
QSizeF minSize
bool isMinimized = false
bool isFullScreen = false
 Currently written but read by no consumer.
bool isOnCurrentDesktop = true
bool isOnCurrentActivity = true
bool hasDecoration = false
bool isNormalWindow = true
bool keepAbove = false
qint64 pid = 0

Detailed Description

Compositor-agnostic window property snapshot.

Used for operations that need multiple properties at once (e.g., snap assist candidate building, window list serialization). Avoids repeated virtual calls for bulk operations.

Member Data Documentation

◆ appId

QString PhosphorCompositor::WindowInfo::appId

◆ caption

QString PhosphorCompositor::WindowInfo::caption

◆ frameGeometry

QRectF PhosphorCompositor::WindowInfo::frameGeometry

◆ handle

WindowHandle PhosphorCompositor::WindowInfo::handle = nullptr

◆ hasDecoration

bool PhosphorCompositor::WindowInfo::hasDecoration = false

◆ icon

QIcon PhosphorCompositor::WindowInfo::icon

◆ isFullScreen

bool PhosphorCompositor::WindowInfo::isFullScreen = false

Currently written but read by no consumer.

CONTRACT: this field is the raw compositor state, so a scrolling window in WINDOWED fullscreen reports true (its client holds KWin fullscreen while the strip owns its geometry). A consumer that needs to distinguish the strip-managed hold from genuine fullscreen must not overload this flag — add a distinct isWindowedFullscreen instead.

◆ isMinimized

bool PhosphorCompositor::WindowInfo::isMinimized = false

◆ isNormalWindow

bool PhosphorCompositor::WindowInfo::isNormalWindow = true

◆ isOnCurrentActivity

bool PhosphorCompositor::WindowInfo::isOnCurrentActivity = true

◆ isOnCurrentDesktop

bool PhosphorCompositor::WindowInfo::isOnCurrentDesktop = true

◆ keepAbove

bool PhosphorCompositor::WindowInfo::keepAbove = false

◆ minSize

QSizeF PhosphorCompositor::WindowInfo::minSize

◆ pid

qint64 PhosphorCompositor::WindowInfo::pid = 0

◆ screenId

QString PhosphorCompositor::WindowInfo::screenId

◆ windowClass

QString PhosphorCompositor::WindowInfo::windowClass

WM_CLASS / app_id as reported by compositor (may differ from appId for XWayland).

◆ windowId

QString PhosphorCompositor::WindowInfo::windowId

The documentation for this struct was generated from the following file: