to match that of Plasma::ScrollWidget (for better or worse) doing it ala
fixup by compressing the checks, during DnD the state is not checked tho
but there are no constant checks now
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
slightly better than Plasma::ToolButton when it comes to the widget being
in a scroll area/widget of some sort
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
because the draining is on 50ms timer and if the visualizer is not visible
there is no point to drain the PCM
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
probably the most annoying thing about the old implementation of the
notifications applet was that it could just disappear after it has been
automatically shown and after being clicked on, that will not bother me
anymore
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
because the widgets are child of Plasma::ScrollWidget it is tricky to get
it done properly but Plasma::ToolButton also checks for visibility change
just for the "under mouse" state
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
about as late as it can be. after being minimized, stamp is updated, rules
applied once (applyWindowRules()), twice (updateWindowRules(Rules::All))
and then again (via the demandAttention() call). it does make tasks
require attention now tho
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
verified the state is demanding attention when started via kstart program,
KTaskManager::demandsAttention() does not detect it as demanding attention
tho. on a side note there is a TODO for states in KWin::Client::manager()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
to prevent interrupting searching, clearing via the clear button will
simply put the search in the background tho but other actions will be
possible
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
to smooth session switching done by searching for "sessions" and then
activating that match for example
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
these bits are in 3 places now, have to do something about it but more
importantly the .kwinrules files are now loaded and shown by the KCM
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
because rules created by the configuration interface do not have an ID
and one must be set for duplicates to be filtered correctly, ideally the
whole rule should be checked for equality instead of the ID only (the ID
should not be a thing, it is not used for other purpose really)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
requires the previous commit, does nothing unless the window is iconified
or minimized (that is how "demands attention" feature works)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
note that this rule is kinda special - if a window is activated the window
will no longer demand attention regardless if set in rule (i.e. it is like
temporary rule but will apply if the initial window state is iconified or
minimized for whatever reason)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>