Modal property
This commit is contained in:
parent
7061ab7d24
commit
60f1c75ffb
2 changed files with 6 additions and 1 deletions
|
@ -1551,6 +1551,7 @@ void Client::setModal(bool m)
|
|||
if (modal == m)
|
||||
return;
|
||||
modal = m;
|
||||
emit modalChanged();
|
||||
if (!modal)
|
||||
return;
|
||||
// Changing modality for a mapped window is weird (?)
|
||||
|
|
6
client.h
6
client.h
|
@ -113,7 +113,10 @@ class Client
|
|||
Q_PROPERTY(bool minimizable READ isMinimizable)
|
||||
// TODO: setter and notify signal
|
||||
Q_PROPERTY(bool minimized READ isMinimized)
|
||||
Q_PROPERTY(bool modal READ isModal)
|
||||
/**
|
||||
* Whether the Client represents a modal window.
|
||||
**/
|
||||
Q_PROPERTY(bool modal READ isModal NOTIFY modalChanged)
|
||||
Q_PROPERTY(bool moveable READ isMovable)
|
||||
Q_PROPERTY(bool moveableAcrossScreens READ isMovableAcrossScreens)
|
||||
// TODO: notify signal
|
||||
|
@ -548,6 +551,7 @@ signals:
|
|||
void desktopChanged();
|
||||
void fullScreenChanged();
|
||||
void transientChanged();
|
||||
void modalChanged();
|
||||
|
||||
private:
|
||||
void exportMappingState(int s); // ICCCM 4.1.3.1, 4.1.4, NETWM 2.5.1
|
||||
|
|
Loading…
Reference in a new issue