47 QSizeF
checkSize(QSizeF s,
bool init =
false)
const;
53 QList<VirtualDesktop *>
checkDesktops(QList<VirtualDesktop *> desktops,
bool init =
false)
const;
55 QStringList
checkActivity(QStringList activity,
bool init =
false)
const;
94 explicit Rules(
const RuleSettings *);
118 Q_DECLARE_FLAGS(Types,
Type)
145 void write(RuleSettings *)
const;
155 bool applySize(QSizeF &s,
bool init)
const;
161 bool applyDesktops(QList<VirtualDesktop *> &desktops,
bool init)
const;
193 bool matchType(NET::WindowType match_type)
const;
194 bool matchWMClass(
const QString &match_class,
const QString &match_name)
const;
195 bool matchRole(
const QString &match_role)
const;
196 bool matchTitle(
const QString &match_title)
const;
197 bool matchClientMachine(
const QString &match_machine,
bool local)
const;
201 void readFromSettings(
const RuleSettings *settings);
202 static ForceRule convertForceRule(
int v);
203 static QString getDecoColor(
const QString &themeName);
205 static bool checkSetRule(
SetRule rule,
bool init);
206 static bool checkForceRule(
ForceRule rule);
207 static bool checkSetStop(
SetRule rule);
208 static bool checkForceStop(
ForceRule rule);
215 bool wmclasscomplete;
220 QString clientmachine;
222 NET::WindowTypes types;
239 QStringList desktops;
243 QStringList activity;
269 bool blockcompositing;
289 bool disableglobalshortcuts;
306 void discardUsed(
Window *c,
bool withdraw);
307 void setUpdatesDisabled(
bool disable);
308 bool areUpdatesDisabled()
const;
310 void edit(
Window *c,
bool whole_app);
311 void requestDiskStorage();
323 QTimer *m_updateTimer;
324 bool m_updatesDisabled;
325 QList<Rules *> m_rules;
326 KSharedConfig::Ptr m_config;
331 return m_updatesDisabled;
334inline bool Rules::checkSetRule(SetRule rule,
bool init)
345inline bool Rules::checkForceRule(ForceRule rule)
350inline bool Rules::checkSetStop(SetRule rule)
355inline bool Rules::checkForceStop(ForceRule rule)
371 return rules.contains(rule);
376 rules.removeOne(rule);
385Q_DECLARE_OPERATORS_FOR_FLAGS(KWin::Rules::Types)
bool areUpdatesDisabled() const
void setConfig(const KSharedConfig::Ptr &config)
bool applyMaximizeVert(MaximizeMode &mode, bool init) const
bool applyKeepBelow(bool &below, bool init) const
bool applyCloseable(bool &closeable) const
bool applyScreen(int &desktop, bool init) const
bool applyLayer(enum Layer &layer) const
bool applyMaximizeHoriz(MaximizeMode &mode, bool init) const
bool applyGeometry(QRectF &rect, bool init) const
bool applySkipSwitcher(bool &skip, bool init) const
bool applyFPP(int &fpp) const
bool applySkipTaskbar(bool &skip, bool init) const
bool applyPosition(QPointF &pos, bool init) const
bool applyAdaptiveSync(bool &adaptivesync) const
bool applyNoBorder(bool &noborder, bool init) const
bool applyDesktops(QList< VirtualDesktop * > &desktops, bool init) const
bool applyOpacityInactive(int &s) const
bool applyAutogrouping(bool &autogroup) const
bool applyFullScreen(bool &fs, bool init) const
bool applyStrictGeometry(bool &strict) const
void write(RuleSettings *) const
bool applyIgnoreGeometry(bool &ignore, bool init) const
bool applyMaxSize(QSizeF &s) const
bool applyFSP(int &fsp) const
bool applyMinSize(QSizeF &s) const
bool applyAutogroupInForeground(bool &fg) const
bool applyOpacityActive(int &s) const
bool applyActivity(QStringList &activity, bool init) const
bool applyPlacement(PlacementPolicy &placement) const
bool applyDecoColor(QString &schemeFile) const
bool applySkipPager(bool &skip, bool init) const
bool update(Window *, int selection)
bool applyMinimize(bool &minimized, bool init) const
bool applyDesktopFile(QString &desktopFile, bool init) const
bool applyKeepAbove(bool &above, bool init) const
bool applyDisableGlobalShortcuts(bool &disable) const
bool applyShortcut(QString &shortcut, bool init) const
bool applyShade(ShadeMode &shade, bool init) const
bool applyAutogroupById(QString &id) const
bool discardUsed(bool withdrawn)
bool applyAcceptFocus(bool &focus) const
bool applySize(QSizeF &s, bool init) const
friend QDebug & operator<<(QDebug &stream, const Rules *)
bool match(const Window *c) const
bool applyBlockCompositing(bool &block) const
PlacementPolicy checkPlacement(PlacementPolicy placement) const
QPointF checkPositionSafe(QPointF pos, bool init=false) const
QSizeF checkMaxSize(QSizeF s) const
QString checkDesktopFile(QString desktopFile, bool init=false) const
QString checkShortcut(QString s, bool init=false) const
Layer checkLayer(Layer layer) const
bool checkDisableGlobalShortcuts(bool disable) const
bool checkNoBorder(bool noborder, bool init=false) const
int checkOpacityInactive(int s) const
bool checkCloseable(bool closeable) const
bool contains(const Rules *rule) const
bool checkStrictGeometry(bool strict) const
Output * checkOutput(Output *output, bool init=false) const
bool checkFullScreen(bool fs, bool init=false) const
bool checkKeepBelow(bool below, bool init=false) const
bool checkSkipSwitcher(bool skip, bool init=false) const
QString checkDecoColor(QString schemeFile) const
bool checkSkipPager(bool skip, bool init=false) const
int checkFSP(int fsp) const
bool checkIgnoreGeometry(bool ignore, bool init=false) const
bool checkAutogroupInForeground(bool fg) const
bool checkBlockCompositing(bool block) const
int checkFPP(int fpp) const
void update(Window *, int selection)
bool checkAutogrouping(bool autogroup) const
QList< VirtualDesktop * > checkDesktops(QList< VirtualDesktop * > desktops, bool init=false) const
QStringList checkActivity(QStringList activity, bool init=false) const
ShadeMode checkShade(ShadeMode shade, bool init=false) const
MaximizeMode checkMaximize(MaximizeMode mode, bool init=false) const
QString checkAutogroupById(QString id) const
bool checkMinimize(bool minimized, bool init=false) const
QSizeF checkSize(QSizeF s, bool init=false) const
bool checkAcceptFocus(bool focus) const
int checkOpacityActive(int s) const
bool checkSkipTaskbar(bool skip, bool init=false) const
QRectF checkGeometrySafe(QRectF rect, bool init=false) const
QSizeF checkMinSize(QSizeF s) const
bool checkAdaptiveSync(bool adaptivesync) const
QPointF checkPosition(QPointF pos, bool init=false) const
bool checkKeepAbove(bool above, bool init=false) const
QRectF checkGeometry(QRectF rect, bool init=false) const
QDebug & operator<<(QDebug &s, const KWin::DrmConnector *obj)