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

The contexts the compositor last reported a window on, as far as the registry knows them, in KWin's current desktop numbering: a renumber moves the numbers of records not reported since (WindowRegistry::remapDesktops). More...

#include <PhosphorEngine/IWindowRegistry.h>

Public Member Functions

std::optional< QSet< int > > desktopSet () const
 The desktops the window is on, or nullopt when it is on all of them or they are unknown: the full list for a window spanning several, else its one desktop.

Public Attributes

int virtualDesktop = 0
 1-based x11 desktop; 0 = all desktops / unknown
QList< int > virtualDesktops
 full list when the window spans several desktops
std::optional< bool > sticky
 on all desktops; disengaged when never reported
QString activity
 empty = all activities / unknown
QStringList activities {}
 full list when on several activities; appended last (F426)

Detailed Description

The contexts the compositor last reported a window on, as far as the registry knows them, in KWin's current desktop numbering: a renumber moves the numbers of records not reported since (WindowRegistry::remapDesktops).

A restore or membership decision reads this instead of the SCREEN's current desktop, which is not the window's when the window is being placed onto a background desktop.

Member Function Documentation

◆ desktopSet()

std::optional< QSet< int > > PhosphorEngine::WindowDesktopContext::desktopSet ( ) const
inline

The desktops the window is on, or nullopt when it is on all of them or they are unknown: the full list for a window spanning several, else its one desktop.

Member Data Documentation

◆ activities

QStringList PhosphorEngine::WindowDesktopContext::activities {}

full list when on several activities; appended last (F426)

◆ activity

QString PhosphorEngine::WindowDesktopContext::activity

empty = all activities / unknown

◆ sticky

std::optional<bool> PhosphorEngine::WindowDesktopContext::sticky

on all desktops; disengaged when never reported

◆ virtualDesktop

int PhosphorEngine::WindowDesktopContext::virtualDesktop = 0

1-based x11 desktop; 0 = all desktops / unknown

◆ virtualDesktops

QList<int> PhosphorEngine::WindowDesktopContext::virtualDesktops

full list when the window spans several desktops


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