mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 18:32:50 +00:00
kwin: write and read "demands attentions" state of clients from/to session config
this is only the part related to the session config, currently the state is not restored Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
8763d9353e
commit
e3ae38991c
3 changed files with 9 additions and 15 deletions
|
@ -23,6 +23,12 @@
|
||||||
#define KKWMWINDOWS_H
|
#define KKWMWINDOWS_H
|
||||||
|
|
||||||
#include <QWidget>
|
#include <QWidget>
|
||||||
|
#include <QRadioButton>
|
||||||
|
#include <QCheckBox>
|
||||||
|
#include <QPushButton>
|
||||||
|
#include <QGroupBox>
|
||||||
|
#include <QLabel>
|
||||||
|
#include <QSlider>
|
||||||
#include <kcmodule.h>
|
#include <kcmodule.h>
|
||||||
#include <config-workspace.h>
|
#include <config-workspace.h>
|
||||||
|
|
||||||
|
@ -30,20 +36,6 @@
|
||||||
#include "ui_focus.h"
|
#include "ui_focus.h"
|
||||||
#include "ui_moving.h"
|
#include "ui_moving.h"
|
||||||
|
|
||||||
#include <QRadioButton>
|
|
||||||
#include <QCheckBox>
|
|
||||||
#include <QPushButton>
|
|
||||||
class KComboBox;
|
|
||||||
#include <QGroupBox>
|
|
||||||
#include <QLabel>
|
|
||||||
#include <QSlider>
|
|
||||||
class KButtonGroup;
|
|
||||||
// #include <QSpinBox>
|
|
||||||
|
|
||||||
class KColorButton;
|
|
||||||
class KIntNumInput;
|
|
||||||
|
|
||||||
|
|
||||||
class KWinFocusConfigForm : public QWidget, public Ui::KWinFocusConfigForm
|
class KWinFocusConfigForm : public QWidget, public Ui::KWinFocusConfigForm
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
|
@ -92,6 +92,7 @@ void Workspace::storeClient(KConfigGroup &cg, int num, Client *c)
|
||||||
cg.writeEntry(QString("skipTaskbar") + n, c->skipTaskbar(true));
|
cg.writeEntry(QString("skipTaskbar") + n, c->skipTaskbar(true));
|
||||||
cg.writeEntry(QString("skipPager") + n, c->skipPager());
|
cg.writeEntry(QString("skipPager") + n, c->skipPager());
|
||||||
cg.writeEntry(QString("skipSwitcher") + n, c->skipSwitcher());
|
cg.writeEntry(QString("skipSwitcher") + n, c->skipSwitcher());
|
||||||
|
cg.writeEntry(QString("demandAttention") + n, c->isDemandingAttention());
|
||||||
// not really just set by user, but name kept for back. comp. reasons
|
// not really just set by user, but name kept for back. comp. reasons
|
||||||
cg.writeEntry(QString("userNoBorder") + n, c->noBorder());
|
cg.writeEntry(QString("userNoBorder") + n, c->noBorder());
|
||||||
cg.writeEntry(QString("windowType") + n, windowTypeToTxt(c->windowType()));
|
cg.writeEntry(QString("windowType") + n, windowTypeToTxt(c->windowType()));
|
||||||
|
@ -137,6 +138,7 @@ void Workspace::loadSessionInfo()
|
||||||
info->skipTaskbar = cg.readEntry(QString("skipTaskbar") + n, false);
|
info->skipTaskbar = cg.readEntry(QString("skipTaskbar") + n, false);
|
||||||
info->skipPager = cg.readEntry(QString("skipPager") + n, false);
|
info->skipPager = cg.readEntry(QString("skipPager") + n, false);
|
||||||
info->skipSwitcher = cg.readEntry(QString("skipSwitcher") + n, false);
|
info->skipSwitcher = cg.readEntry(QString("skipSwitcher") + n, false);
|
||||||
|
info->demandAttention = cg.readEntry(QString("demandAttention") + n, false);
|
||||||
info->noBorder = cg.readEntry(QString("userNoBorder") + n, false);
|
info->noBorder = cg.readEntry(QString("userNoBorder") + n, false);
|
||||||
info->windowType = txtToWindowType(cg.readEntry(QString("windowType") + n, QString()).toLatin1());
|
info->windowType = txtToWindowType(cg.readEntry(QString("windowType") + n, QString()).toLatin1());
|
||||||
info->shortcut = cg.readEntry(QString("shortcut") + n, QString());
|
info->shortcut = cg.readEntry(QString("shortcut") + n, QString());
|
||||||
|
|
|
@ -54,6 +54,7 @@ struct SessionInfo {
|
||||||
bool skipTaskbar;
|
bool skipTaskbar;
|
||||||
bool skipPager;
|
bool skipPager;
|
||||||
bool skipSwitcher;
|
bool skipSwitcher;
|
||||||
|
bool demandAttention;
|
||||||
bool noBorder;
|
bool noBorder;
|
||||||
NET::WindowType windowType;
|
NET::WindowType windowType;
|
||||||
QString shortcut;
|
QString shortcut;
|
||||||
|
@ -61,7 +62,6 @@ struct SessionInfo {
|
||||||
int stackingOrder;
|
int stackingOrder;
|
||||||
float opacity;
|
float opacity;
|
||||||
int tabGroup; // Unique identifier for the client group that this window is in
|
int tabGroup; // Unique identifier for the client group that this window is in
|
||||||
|
|
||||||
Client* tabGroupClient; // The first client created that has an identical identifier
|
Client* tabGroupClient; // The first client created that has an identical identifier
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue