Ivailo Monev
f1a37c1e51
kwin: MOC warning fix
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-06-04 15:55:20 +03:00
Ivailo Monev
b6c58628a6
kwin: use KEditListWidget as window classes editor in dimscreen effect KCM
...
more convenient than KLineEdit
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-06-04 05:36:34 +03:00
Ivailo Monev
0ab42ed2a6
kdesudo: rework it to use new program for password prompt
...
on a side note git and ssh do not use the environment variables
(GIT_ASKPASS and SSH_ASKPASS)
for refernece:
https://ivailo-monev.atlassian.net/browse/KDE-9
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
kdesudo: asd
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-06-03 00:13:58 +03:00
Ivailo Monev
928d01f05d
kwin: add dimscreen_config.ui to the repo
...
oops
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-06-02 21:31:03 +03:00
Ivailo Monev
3669928057
kwin: implement configuration interface for dimscreen effect
...
should probably use widget other than KLineEdit for it tho
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-06-02 20:24:19 +03:00
Ivailo Monev
e31b04eaa2
kwin: dimscreen effect optimization
...
there should be option which window classes to check for
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-06-02 18:38:13 +03:00
Ivailo Monev
88040d12d7
kwin: enable dimscreen effect by default
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-06-02 18:29:52 +03:00
Ivailo Monev
ae2f1383e4
kwin: format and indent
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-06-02 18:29:03 +03:00
Ivailo Monev
8f9dd31a1a
kwin: fix diminactive effect configuration interface runtime warning
...
kcfg_sliderStrength was not valid kcfg entry, KIntNumInput provides slider
anyway
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-30 04:14:30 +03:00
Ivailo Monev
27f513449d
kwin: implement configuration interface for the presentwindows effect drag to close feature
...
disabled by default, there was no configuration interface for it so I
assume experimental
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-30 03:48:41 +03:00
Ivailo Monev
c8926347cd
kwin: de-duplcate rules loading/saving bits
...
for reference:
3d78c01c4b
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-25 11:09:00 +03:00
Ivailo Monev
fbcd357824
kwin: setup icons for the rules KCM buttons
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-25 10:41:52 +03:00
Ivailo Monev
7fef6648ce
kwin: restore the "demands attention" of clients from the session config
...
comes with a hack, for reference:
https://ivailo-monev.atlassian.net/browse/KDE-2
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-25 10:09:00 +03:00
Ivailo Monev
e3ae38991c
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>
2024-05-25 09:05:04 +03:00
Ivailo Monev
3cba95c89a
generic: adjust to KIntNumInput and KDoubleNumInput changes
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-21 09:00:16 +03:00
Ivailo Monev
6c4c7aa6b9
kwin: set init_demand_attention instead of calling KWin::Client::demandAttention()
...
on a side note the demanding attention state is no saved and restored
across sessions
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-19 23:04:59 +03:00
Ivailo Monev
d86d3fb0b8
kwin: delay setting attention demand as much as possible
...
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>
2024-05-19 14:00:40 +03:00
Ivailo Monev
70ab393c4a
kwin: remove unused atom
...
not sure what spec that atom is from anyway, not in the spec at:
https://specifications.freedesktop.org/wm-spec/wm-spec-latest.html
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-19 13:44:08 +03:00
Ivailo Monev
4dbd193381
kwin: check the rules for all demandAttention() calls in KWin::Client::manage()
...
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>
2024-05-19 13:13:12 +03:00
Ivailo Monev
19df562aa2
kwin: delete the plugin config widget from kwindecoration KCM
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-19 13:05:06 +03:00
Ivailo Monev
653752bbe2
kwin: check rules for demanding attention in KWin::Client::manage()
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-19 11:17:05 +03:00
Ivailo Monev
b70b1aa272
kwin: remove unused activity rule
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-19 11:08:03 +03:00
Ivailo Monev
3d78c01c4b
kwin: load additional rules from .kwinrules files everywhere
...
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>
2024-05-19 07:38:27 +03:00
Ivailo Monev
8c8246d810
kwin: use the description as ID for rules when none is set
...
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>
2024-05-19 05:10:52 +03:00
Ivailo Monev
045749b5d5
kwin: implement demand attention rule
...
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>
2024-05-19 04:07:03 +03:00
Ivailo Monev
77adca3615
generic: sync startup timeout related bits
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-17 07:35:09 +03:00
Ivailo Monev
25c25215a4
kwin: kill via SIGKILL just in case XKillClient() does not get the job done
...
only for clients on the local machine tho
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-17 05:48:52 +03:00
Ivailo Monev
9d5db89a12
kwin: delete the killer process before killing the window
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-17 05:47:39 +03:00
Ivailo Monev
a63ddc9327
kwin: remove unused headers inclusions
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-17 05:34:29 +03:00
Ivailo Monev
572c42865d
kwin: correct branch for debug message
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-17 05:34:16 +03:00
Ivailo Monev
50cf4b81fb
kwin: comment correction
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-16 01:58:13 +03:00
Ivailo Monev
87c93679b8
kwin: rework client killing to not rely on xon program
...
because xon is no longer a thing (not in debian repos apparently) killing
remote clients and killing remote clients required it, assuming
XKillClient() knows how to kill remote clients then it will now. if not
then..
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-16 00:50:57 +03:00
Ivailo Monev
94bfe02289
kwin: remove unused logout effect members
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-16 00:00:17 +03:00
Ivailo Monev
0a5808cc21
kwin: break the rules dialog hints text into lines
...
this can be done automagically tho
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-14 13:13:23 +03:00
Ivailo Monev
c90b03837f
kwin: sync default focus stealing level
...
continue from 3ee6dded37
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-13 09:06:33 +03:00
Ivailo Monev
3ee6dded37
kwin: default to no focus stealing prevention
...
the only reason I can think of to not give focus to window is when a
okular in presentation mode or gwenview in fullscreen mode is the active
window, i.e. a fullscreen window but that may need additional hint for the
window manager
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-12 14:01:21 +03:00
Ivailo Monev
957da2bb43
generic: adjust to KRun changes
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-12 03:22:02 +03:00
Ivailo Monev
4b7ecbde0a
kwin: call KApplication::saveSession() before saving session
...
see the warning in the KApplication::saveSession() implementation why that
is done
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-10 06:27:16 +03:00
Ivailo Monev
05df032f1e
kwin: format and indent
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-10 04:11:24 +03:00
Ivailo Monev
c5d650418e
kwin: store the client active state in the session config
...
still kwin does not place clients on the correct virtual desktop tho
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-10 01:42:53 +03:00
Ivailo Monev
1512fbcac4
generic: remove session management support leftovers
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-09 08:50:40 +03:00
Ivailo Monev
fb686dc3c1
plasma: implement session manager
...
comes along with plenty of other changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-09 08:33:28 +03:00
Ivailo Monev
3e5dfaa22b
ksmserver: drop it and move session initialization to plasma-desktop
...
everything except the actual session management, second time ksmserver
starts crashing as I work on something for no reason and is time for it
to be done anew as there were quite some unsafe bits in it
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-07 02:33:19 +03:00
Ivailo Monev
29c5495be3
kwin: reparse the configuration file and re-read the action collections settings when reconfiguring effect
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-27 05:21:59 +03:00
Ivailo Monev
77e6ddb138
kwin: prepare for Katie changes
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-26 23:01:36 +03:00
Ivailo Monev
ad52daae2d
kwin: adjust to shortcut changes
...
tested it and settings are saved and restored but needs more testing
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-26 03:22:54 +03:00
Ivailo Monev
3b8a6bf261
kwin: use meta+tab for presenting all windows
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-25 10:50:34 +03:00
Ivailo Monev
d5f4d2596e
kwin: sync presentwindows shortcuts
...
as it turns out setting a shortcut programatically now matters
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-25 04:18:10 +03:00
Ivailo Monev
62726382e8
generic: adjust to KShortcutsEditor changes
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-24 21:46:48 +03:00
Ivailo Monev
36bc690df1
generic: adjust to shortcut changes
...
notice how the use of primary shortcut only disappears
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-24 10:25:20 +03:00