Commit graph

12 commits

Author SHA1 Message Date
Ivailo Monev
1faf138d4b kdeui: do not emit KAction::globalShortcutChanged() when the default changes or when the shortcut is set for the first time
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-26 01:06:36 +03:00
Ivailo Monev
45ef26718a kdeui: emit globalShortcutChanged() from KAction
no way the grab failed or something other than KGlobalAccel grabs the
shortcut by force from KGlobalAccel, right?

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-24 23:37:43 +03:00
Ivailo Monev
d725bcef69 kdeui: remove old KGlobalAccel autoloading feature leftovers
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-22 02:51:29 +03:00
Ivailo Monev
594e901c4a kdeui: rework KGlobalAccel
global shortcut resolution (the KGlobalAccel methods) work on
application level, X11 as far as I can tell does not have a method to
tell which application has grabbed a key (to fill KGlobalShortcutInfo).
other than that no configuration interface for global shortcuts (not by
KGlobalAccel itself, plasma and its applets have interface for that),
also the shortcuts interface did not and still does not handle global
shortcuts well so that is something to look into.

one of the problems solved with this change is the fact that multiple
plasma applets (e.g. multiple instances of the keyboard applet) could
not use the same shortcut, now it is possible. as for which applet gets
the shortcut action it is the one that has the grab first - that is how
key grabbing works in X11

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-22 00:07:35 +03:00
Ivailo Monev
ab8812764a kdeui: move the default value for KGlobalAccelPrivate::getComponent() argument to the method declaration
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-09-30 01:25:48 +03:00
Ivailo Monev
ec0b9543aa kdeui: remove unused KGlobalAccelPrivate members
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-09-27 10:51:08 +03:00
Ivailo Monev
c689f83d30 kdeui: remove KGlobalShortcutInfo friend declaration for non-existing class
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-09-27 10:46:46 +03:00
Ivailo Monev
5e44389ef6 kdeui: fix build by using non-deprecated org.kde.KGlobalAccel interface method
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-09-26 19:08:29 +03:00
Ivailo Monev
8e79cf1d5a generic: misc cleanups
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-11-03 12:19:19 +00:00
Ivailo Monev
e7133114e1 generic: misc cleanups 2015-09-05 05:16:46 +00:00
Ivailo Monev
21ad0df488 generic: make changes required for building against katie 2015-08-11 05:56:07 +03:00
Ivailo Monev
814163a8dc initial import 2014-11-13 01:04:59 +02:00