OSDN Git Service

kde/kde-workspace.git
20 months agokmediaplayer: set the part object name
Ivailo Monev [Sat, 26 Nov 2022 21:28:02 +0000 (23:28 +0200)]
kmediaplayer: set the part object name

used by debug message in kdelibs/kparts/part.cpp

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
20 months agokmediaplayer: use QPointer<T> to store the KMediaWidget pointer
Ivailo Monev [Sat, 26 Nov 2022 18:44:13 +0000 (20:44 +0200)]
kmediaplayer: use QPointer<T> to store the KMediaWidget pointer

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
20 months agokrunner: remove unused constant in KRunnerDialog::updateMask()
Ivailo Monev [Sat, 26 Nov 2022 04:49:13 +0000 (06:49 +0200)]
krunner: remove unused constant in KRunnerDialog::updateMask()

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
20 months agoksmserver: process events until kded second phase is done
Ivailo Monev [Sat, 26 Nov 2022 03:11:24 +0000 (05:11 +0200)]
ksmserver: process events until kded second phase is done

now that phase 2 is properly done (see
86082941ab933b36fb7df267f3abd2625757f4ba in kdelibs repo) it could
block for a few seconds

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
20 months agokioslave: add image/vnd.djvu+multipage to the djvuthumbnail MIME types
Ivailo Monev [Fri, 25 Nov 2022 22:23:52 +0000 (00:23 +0200)]
kioslave: add image/vnd.djvu+multipage to the djvuthumbnail MIME types

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
20 months agokioslave: const-ify variable in ThumbnailProtocol::pluginForMimeType()
Ivailo Monev [Fri, 25 Nov 2022 22:19:33 +0000 (00:19 +0200)]
kioslave: const-ify variable in ThumbnailProtocol::pluginForMimeType()

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
20 months agokdirshare: write share entry into the kdirsharerc config from KDirShareModule::share()
Ivailo Monev [Fri, 25 Nov 2022 19:05:34 +0000 (21:05 +0200)]
kdirshare: write share entry into the kdirsharerc config from KDirShareModule::share()

should the worst happen and kded4 crash the share settings will be saved
regardless (unless it crashes because of KDirShareModule::share())

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
20 months agokdirshare: use KRandom::randomMax() for less round-trips
Ivailo Monev [Fri, 25 Nov 2022 17:08:42 +0000 (19:08 +0200)]
kdirshare: use KRandom::randomMax() for less round-trips

feels like a new KRandom::randomRange() method is needed

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
20 months agokdirshare: update comment related to kpasswdstore service
Ivailo Monev [Fri, 25 Nov 2022 16:37:40 +0000 (18:37 +0200)]
kdirshare: update comment related to kpasswdstore service

kpasswdstore service is now loaded in phase 1 and kdirshare in phase 2 (the
default)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agolibs: remove bogus extern reference
Ivailo Monev [Thu, 24 Nov 2022 23:02:30 +0000 (01:02 +0200)]
libs: remove bogus extern reference

there is no such thing as Kapp, is not used either

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agogeneric: remove redundant HAVE_XRENDER configuration definition
Ivailo Monev [Thu, 24 Nov 2022 22:39:15 +0000 (00:39 +0200)]
generic: remove redundant HAVE_XRENDER configuration definition

if Xrender is not found a fatal message will be issued by the top-level
CMakeLists file because it is required by KWin compositor for example

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agokate: log the file (Kate::TextLoader) codec name
Ivailo Monev [Thu, 24 Nov 2022 01:12:29 +0000 (03:12 +0200)]
kate: log the file (Kate::TextLoader) codec name

m_textCodec is used only to probe, if BOM is detected m_textCodec may be
null. fixes possible crash

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agokate: adjust to Katie changes
Ivailo Monev [Thu, 24 Nov 2022 01:01:18 +0000 (03:01 +0200)]
kate: adjust to Katie changes

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agokstyles: adjust to Katie changes
Ivailo Monev [Wed, 23 Nov 2022 22:40:22 +0000 (00:40 +0200)]
kstyles: adjust to Katie changes

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agokate: add QGuiPlatformPlugin class to cpp syntax data
Ivailo Monev [Tue, 22 Nov 2022 21:06:23 +0000 (23:06 +0200)]
kate: add QGuiPlatformPlugin class to cpp syntax data

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agokcontrol: read font settings directly from the kdeglobals config
Ivailo Monev [Tue, 22 Nov 2022 18:12:44 +0000 (20:12 +0200)]
kcontrol: read font settings directly from the kdeglobals config

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agokcontrol: adjust to Katie changes
Ivailo Monev [Tue, 22 Nov 2022 17:55:04 +0000 (19:55 +0200)]
kcontrol: adjust to Katie changes

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agokcontrol: enable animatetoolbox when effects are enabled
Ivailo Monev [Tue, 22 Nov 2022 13:46:06 +0000 (15:46 +0200)]
kcontrol: enable animatetoolbox when effects are enabled

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agokcontrol: partial fix for KGlobalSettings race
Ivailo Monev [Tue, 22 Nov 2022 03:18:50 +0000 (05:18 +0200)]
kcontrol: partial fix for KGlobalSettings race

the style KCM for example emits changes via
KGlobalSettings::self()->emitChange() however it does not wait for the
KGlobalSettings::settingsChanged() signal (which means settings are
reloaded) before running krdb, font and palette settings are likely subject
to this race-condition but for now that will do

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agogeneric: adjust to KGlobalSettings changes
Ivailo Monev [Tue, 22 Nov 2022 03:05:45 +0000 (05:05 +0200)]
generic: adjust to KGlobalSettings changes

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agokcontrol: remove unused applyQtColors() and applyQtSettings() arguments
Ivailo Monev [Tue, 22 Nov 2022 00:29:27 +0000 (02:29 +0200)]
kcontrol: remove unused applyQtColors() and applyQtSettings() arguments

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agokcontrol: run krdb after emiting KGlobalSettings changes from style KCM
Ivailo Monev [Tue, 22 Nov 2022 00:28:15 +0000 (02:28 +0200)]
kcontrol: run krdb after emiting KGlobalSettings changes from style KCM

krdb itself uses KGlobalSettings to get the palette, font and other
settings

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agokcontrol: flush the QSettings changes before notifying applications about the changes
Ivailo Monev [Tue, 22 Nov 2022 00:16:34 +0000 (02:16 +0200)]
kcontrol: flush the QSettings changes before notifying applications about the changes

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agokcontrol: enable Katie effects based on Katana graphics effect level
Ivailo Monev [Mon, 21 Nov 2022 21:51:37 +0000 (23:51 +0200)]
kcontrol: enable Katie effects based on Katana graphics effect level

note that the only way to set EffectsEnabled, EffectFadeMenu,
EffectFadeTooltip and EffectAnimateCombo was manually (by editing the
~/.katana/share/config/kdeglobals config file) because there is no GUI for
those config options but there is for the graphics effects level

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agostartkde: update D-Bus session environment with all variable set by the script
Ivailo Monev [Mon, 21 Nov 2022 19:03:20 +0000 (21:03 +0200)]
startkde: update D-Bus session environment with all variable set by the script

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agostartkde: unset kcheckrunning_result after it is no longer required
Ivailo Monev [Mon, 21 Nov 2022 18:59:20 +0000 (20:59 +0200)]
startkde: unset kcheckrunning_result after it is no longer required

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agokate: always use the KMessageWidget animation feature
Ivailo Monev [Mon, 21 Nov 2022 16:57:45 +0000 (18:57 +0200)]
kate: always use the KMessageWidget animation feature

note that the KMessageWidget animation is a fade effect so
KateFadeEffect was doing what KMessageWidget already has the feature
for, grow/shrink effect is not a thing

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agoksmserver: start the shutdown feedback from KSMShutdownDlg constructor and stop it...
Ivailo Monev [Sat, 19 Nov 2022 23:54:00 +0000 (01:54 +0200)]
ksmserver: start the shutdown feedback from KSMShutdownDlg constructor and stop it on reject

ksmserver stops it when the dialog is rejected but the test did not for
example

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agoksmserver: make KSMShutdownFeedback::stop() do the same thing as KSMShutdownFeedback...
Ivailo Monev [Sat, 19 Nov 2022 23:32:39 +0000 (01:32 +0200)]
ksmserver: make KSMShutdownFeedback::stop() do the same thing as KSMShutdownFeedback::logoutCanceled()

for some reason KSMShutdownFeedback::stop() was not doing anything when the
KWin effect was taking care of the logout effect but KWin also does not
apply the effect to windows other than the one created by ksmserver

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agoksmserver: fix build of tests
Ivailo Monev [Sat, 19 Nov 2022 23:16:35 +0000 (01:16 +0200)]
ksmserver: fix build of tests

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agokwin: remove obsolete decoration slots
Ivailo Monev [Fri, 18 Nov 2022 00:32:40 +0000 (02:32 +0200)]
kwin: remove obsolete decoration slots

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agokwin: correct switch cases indentation in oxygenclient header
Ivailo Monev [Fri, 18 Nov 2022 00:26:10 +0000 (02:26 +0200)]
kwin: correct switch cases indentation in oxygenclient header

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agokmail: use the URL path as CC fallback
Ivailo Monev [Thu, 17 Nov 2022 02:06:25 +0000 (04:06 +0200)]
kmail: use the URL path as CC fallback

the complete URL includes query items

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agokioslave: sync preview defaults
Ivailo Monev [Wed, 16 Nov 2022 21:54:02 +0000 (23:54 +0200)]
kioslave: sync preview defaults

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agodolphin: implement option for preview icon alpha
Ivailo Monev [Wed, 16 Nov 2022 21:53:34 +0000 (23:53 +0200)]
dolphin: implement option for preview icon alpha

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agoksmserver: drop custom logout effect
Ivailo Monev [Tue, 15 Nov 2022 23:36:58 +0000 (01:36 +0200)]
ksmserver: drop custom logout effect

the effect is very much bound to the window manager (KWin) because if
applications require attention (such as confirmation to cancel any
pending changes) their window or any dialog they pop may have to be
raised, will have to be focused and not be grayed out

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agoksysguard: remove redundant QFontInfo header inclusion
Ivailo Monev [Tue, 15 Nov 2022 18:59:33 +0000 (20:59 +0200)]
ksysguard: remove redundant QFontInfo header inclusion

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agokwin: release selection after all components are deleted
Ivailo Monev [Tue, 15 Nov 2022 05:20:38 +0000 (07:20 +0200)]
kwin: release selection after all components are deleted

effects for example may have their own selection (the startupfeedback
effect used to claim _KDE_STARTUP_FEEDBACK for example) so if other
window manager wants to claim selection/atom owned by KWin effect effects
have to be deinitialized before disowning the window manager selection

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agogeneric: remove redundant QT_CLEAN_NAMESPACE definitions
Ivailo Monev [Tue, 15 Nov 2022 00:07:21 +0000 (02:07 +0200)]
generic: remove redundant QT_CLEAN_NAMESPACE definitions

Katie's namespace is always clean, if there is a namespace issue perhaps
it is not cause of it

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agoksmserver: kill window manager before cleanup
Ivailo Monev [Mon, 14 Nov 2022 23:54:19 +0000 (01:54 +0200)]
ksmserver: kill window manager before cleanup

the window manager itself may want to do something session management
related (KWin does) and as such ksmserver has to be in operational state
before the window manager is killed

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agoksmserver: move process launching code to startup source file
Ivailo Monev [Mon, 14 Nov 2022 23:28:27 +0000 (01:28 +0200)]
ksmserver: move process launching code to startup source file

note that connecting to signals after the process is started (which is also
auto-deleted) as was done in KSMServer::launchWM() could result in a race

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agokwin: make use of KGlobalSettings::isMultiHead()
Ivailo Monev [Mon, 14 Nov 2022 21:53:53 +0000 (23:53 +0200)]
kwin: make use of KGlobalSettings::isMultiHead()

the code in KGlobalSettings::isMultiHead() is exactly the same

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agokwin: use static_cast<T>() for the shadow pixmap handle
Ivailo Monev [Mon, 14 Nov 2022 18:10:52 +0000 (20:10 +0200)]
kwin: use static_cast<T>() for the shadow pixmap handle

clang cannot cope the Qt::HANDLE type constructor, fixes build on FreeBSD

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agoplasma: remove deprecated krunnermodel import
Ivailo Monev [Mon, 14 Nov 2022 13:59:53 +0000 (15:59 +0200)]
plasma: remove deprecated krunnermodel import

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agogeneric: prepare for Katie changes
Ivailo Monev [Mon, 14 Nov 2022 13:56:01 +0000 (15:56 +0200)]
generic: prepare for Katie changes

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agokate: add Q_EXPORT_PLUGIN macro to cpp syntax data
Ivailo Monev [Mon, 14 Nov 2022 13:41:18 +0000 (15:41 +0200)]
kate: add Q_EXPORT_PLUGIN macro to cpp syntax data

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agoplasma: pass the buffer data size to QString constructor in SupportInformation::gener...
Ivailo Monev [Sun, 13 Nov 2022 19:38:26 +0000 (21:38 +0200)]
plasma: pass the buffer data size to QString constructor in SupportInformation::generateSupportInformation()

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agokwin: add new KWin::Compositor::starting() method and use it in during startup
Ivailo Monev [Sun, 13 Nov 2022 19:37:58 +0000 (21:37 +0200)]
kwin: add new KWin::Compositor::starting() method and use it in during startup

I have a feeling even that will not be enough

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agoplasma: open the QDebug buffer in SupportInformation::generateSupportInformation()
Ivailo Monev [Sun, 13 Nov 2022 00:29:06 +0000 (02:29 +0200)]
plasma: open the QDebug buffer in SupportInformation::generateSupportInformation()

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agogeneric: prepare for Katie changes
Ivailo Monev [Sat, 12 Nov 2022 23:41:49 +0000 (01:41 +0200)]
generic: prepare for Katie changes

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agokwin: process events before resuming ksmserver startup
Ivailo Monev [Sat, 12 Nov 2022 19:18:48 +0000 (21:18 +0200)]
kwin: process events before resuming ksmserver startup

the 4sec delay removed in 4560049c4ac38642c966e2da7ea1641c77ac02c0 was
essentially fence for the setup, with that gone plasma (or any application
automatically started) initial checks for compositor (or anything window
manager related) could fail

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agoplasma: remove KWin scripting support leftovers
Ivailo Monev [Sat, 12 Nov 2022 13:04:32 +0000 (15:04 +0200)]
plasma: remove KWin scripting support leftovers

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agokwin: oxygen client exception group name creator optimization
Ivailo Monev [Fri, 11 Nov 2022 23:27:19 +0000 (01:27 +0200)]
kwin: oxygen client exception group name creator optimization

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agokwin: release compositor selection ownership instantly
Ivailo Monev [Fri, 11 Nov 2022 22:37:11 +0000 (00:37 +0200)]
kwin: release compositor selection ownership instantly

the compositor is global static with inter-dependancy on the workspace
global static which access the compositor - what could go wrong with
timers, signals global statics and X11 atom ownership?

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agokwin: remove unused KWin::Scene member
Ivailo Monev [Fri, 11 Nov 2022 22:16:30 +0000 (00:16 +0200)]
kwin: remove unused KWin::Scene member

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agokstyles: remove Qt::WA_PaintOnScreen overrides for QTipLabel and QMenu
Ivailo Monev [Wed, 9 Nov 2022 15:57:40 +0000 (17:57 +0200)]
kstyles: remove Qt::WA_PaintOnScreen overrides for QTipLabel and QMenu

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agolibs: paint KSignalPlotter on backing store
Ivailo Monev [Wed, 9 Nov 2022 15:32:34 +0000 (17:32 +0200)]
libs: paint KSignalPlotter on backing store

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agokwin: prepare for Katie changes
Ivailo Monev [Wed, 9 Nov 2022 03:17:49 +0000 (05:17 +0200)]
kwin: prepare for Katie changes

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agoplasma: port systemtray applet to KPixmap
Ivailo Monev [Tue, 8 Nov 2022 22:48:34 +0000 (00:48 +0200)]
plasma: port systemtray applet to KPixmap

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agoplasma: partially port systemtray applet to KPixmap and plug a X11 Pixmap leak
Ivailo Monev [Tue, 8 Nov 2022 22:28:36 +0000 (00:28 +0200)]
plasma: partially port systemtray applet to KPixmap and plug a X11 Pixmap leak

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agogeneric: port to KPixmap
Ivailo Monev [Wed, 9 Nov 2022 00:13:13 +0000 (02:13 +0200)]
generic: port to KPixmap

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agoplasma: remove shadows on hide
Ivailo Monev [Tue, 8 Nov 2022 17:13:18 +0000 (19:13 +0200)]
plasma: remove shadows on hide

fixes regression since 5c32f8c9e16e283fa36d60b112cd267e32c3f0f2

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agokwin: shadow optimization
Ivailo Monev [Tue, 8 Nov 2022 16:40:57 +0000 (18:40 +0200)]
kwin: shadow optimization

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agokwin: deal with TODO related to XRenderPicture
Ivailo Monev [Tue, 8 Nov 2022 16:14:39 +0000 (18:14 +0200)]
kwin: deal with TODO related to XRenderPicture

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agoplasma: remove unused systemray applet sources
Ivailo Monev [Tue, 8 Nov 2022 15:31:03 +0000 (17:31 +0200)]
plasma: remove unused systemray applet sources

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agolibs: avoid temporary in Oxygen::TileSet::initPixmap()
Ivailo Monev [Mon, 7 Nov 2022 19:29:20 +0000 (21:29 +0200)]
libs: avoid temporary in Oxygen::TileSet::initPixmap()

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agoplasma: generalize folderview scroll backbuffer
Ivailo Monev [Mon, 7 Nov 2022 16:34:25 +0000 (18:34 +0200)]
plasma: generalize folderview scroll backbuffer

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agoplasma: use the now exported Plasma::DialogShadows class
Ivailo Monev [Mon, 7 Nov 2022 16:23:05 +0000 (18:23 +0200)]
plasma: use the now exported Plasma::DialogShadows class

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agoksmserver: drop logout fade effect
Ivailo Monev [Mon, 7 Nov 2022 14:55:16 +0000 (16:55 +0200)]
ksmserver: drop logout fade effect

unless compositor is not active it is not even used (KWin has logout
effect for that) and there is a curtain effect as fallback

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agokcontrol: indent and format randr module source and header files
Ivailo Monev [Sun, 6 Nov 2022 10:59:52 +0000 (12:59 +0200)]
kcontrol: indent and format randr module source and header files

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agokcontrol: indent and format randr module source and header files
Ivailo Monev [Sun, 6 Nov 2022 10:47:21 +0000 (12:47 +0200)]
kcontrol: indent and format randr module source and header files

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agokcontrol: I am the maintainer of kdebug KCM since 2014
Ivailo Monev [Sun, 6 Nov 2022 09:52:18 +0000 (11:52 +0200)]
kcontrol: I am the maintainer of kdebug KCM since 2014

it has been that long?

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agokcontrol: save kdebug KCM changes when the output file changes
Ivailo Monev [Sun, 6 Nov 2022 09:50:14 +0000 (11:50 +0200)]
kcontrol: save kdebug KCM changes when the output file changes

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agokcontrol: save kdebug KCM settings when destination changes
Ivailo Monev [Sun, 6 Nov 2022 09:34:07 +0000 (11:34 +0200)]
kcontrol: save kdebug KCM settings when destination changes

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agoMerge branch 'master' of https://scm.osdn.net/gitroot/kde/kde-workspace
Ivailo Monev [Sun, 6 Nov 2022 03:59:13 +0000 (05:59 +0200)]
Merge branch 'master' of https://scm.osdn.net/gitroot/kde/kde-workspace

21 months agokwin: simplify compositor selection ownership check
Ivailo Monev [Sun, 6 Nov 2022 03:58:46 +0000 (05:58 +0200)]
kwin: simplify compositor selection ownership check

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agokwin: check if the Workspace pointer is null in Application::notify()
Ivailo Monev [Sat, 5 Nov 2022 18:48:18 +0000 (20:48 +0200)]
kwin: check if the Workspace pointer is null in Application::notify()

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agokwin: do not queue the ownership events
Ivailo Monev [Sat, 5 Nov 2022 08:55:33 +0000 (10:55 +0200)]
kwin: do not queue the ownership events

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agokwin: fix runtime warning related to D-Bus connection
Ivailo Monev [Sat, 5 Nov 2022 06:45:04 +0000 (08:45 +0200)]
kwin: fix runtime warning related to D-Bus connection

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agokwin: resume ksmserver startup if setup fails
Ivailo Monev [Sat, 5 Nov 2022 06:43:11 +0000 (08:43 +0200)]
kwin: resume ksmserver startup if setup fails

note that application instance is required before D-Bus connection is made
but connection is made by creating ksmserver interface before the
application instance

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agogeneric: adjust to KSelectionOwner changes
Ivailo Monev [Sat, 5 Nov 2022 06:30:58 +0000 (08:30 +0200)]
generic: adjust to KSelectionOwner changes

had to rewrite KSelectionOwner to fix the issues with it

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agokwin: check owner window before releasing selection
Ivailo Monev [Fri, 4 Nov 2022 15:09:08 +0000 (17:09 +0200)]
kwin: check owner window before releasing selection

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agokstyles: remove hack for some unknown widget
Ivailo Monev [Fri, 4 Nov 2022 14:40:35 +0000 (16:40 +0200)]
kstyles: remove hack for some unknown widget

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agokwin: remove redundant selection owner in startupfeedback effect
Ivailo Monev [Fri, 4 Nov 2022 12:53:06 +0000 (14:53 +0200)]
kwin: remove redundant selection owner in startupfeedback effect

was previously either krunner or the effect

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agokstyles: remove oxygen styles hacks for now non-existing widget classes
Ivailo Monev [Fri, 4 Nov 2022 11:17:30 +0000 (13:17 +0200)]
kstyles: remove oxygen styles hacks for now non-existing widget classes

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agokcontrol: merge DesktopStartItem class into AutoStartItem
Ivailo Monev [Fri, 4 Nov 2022 10:47:53 +0000 (12:47 +0200)]
kcontrol: merge DesktopStartItem class into AutoStartItem

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agokcontrol: write Name entry for custom desktop files from autostart KCM
Ivailo Monev [Fri, 4 Nov 2022 09:48:13 +0000 (11:48 +0200)]
kcontrol: write Name entry for custom desktop files from autostart KCM

otherwise it is empty the next time autostart KCM loads the .desktop files

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agoksmserver: startup optimization
Ivailo Monev [Fri, 4 Nov 2022 08:56:54 +0000 (10:56 +0200)]
ksmserver: startup optimization

QProcess::waitForStarted() will wait up 4000s but may return before

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agokate: remove run-tests-in-xvfb.sh script
Ivailo Monev [Fri, 4 Nov 2022 06:29:09 +0000 (08:29 +0200)]
kate: remove run-tests-in-xvfb.sh script

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agokcontrol: disable autostart items the filepath of which is not writable
Ivailo Monev [Fri, 4 Nov 2022 06:19:26 +0000 (08:19 +0200)]
kcontrol: disable autostart items the filepath of which is not writable

this is kinda not according to the spec (which allows user overrides) but
what is the outcome of having a local copy of system file?

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agokcontrol: fix autostart add
Ivailo Monev [Fri, 4 Nov 2022 06:07:16 +0000 (08:07 +0200)]
kcontrol: fix autostart add

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agokcontrol: notify when error occurrs when attempting to remove program autostart
Ivailo Monev [Fri, 4 Nov 2022 05:44:58 +0000 (07:44 +0200)]
kcontrol: notify when error occurrs when attempting to remove program autostart

can happen if the .desktop file is in /usr/share/autostart/ for example and
the user cannot write there

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agokcontrol: skip non-existing directories in autostart KCM
Ivailo Monev [Fri, 4 Nov 2022 05:43:12 +0000 (07:43 +0200)]
kcontrol: skip non-existing directories in autostart KCM

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agogeneric: prepare for autostart changes
Ivailo Monev [Fri, 4 Nov 2022 07:40:47 +0000 (09:40 +0200)]
generic: prepare for autostart changes

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agokcontrol: drop support for scripts in autostart KCM
Ivailo Monev [Fri, 4 Nov 2022 07:21:28 +0000 (09:21 +0200)]
kcontrol: drop support for scripts in autostart KCM

see the previous commit, also fixes detection of programs that are
automatically started by using KStandardDirs to find the autostart
directories

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agoksmserver: do not attempt to run programs from autostart directory
Ivailo Monev [Fri, 4 Nov 2022 07:07:50 +0000 (09:07 +0200)]
ksmserver: do not attempt to run programs from autostart directory

the spec does not mention that programs should be placed there, only
.desktop files (which klauncher already handles). for reference:
https://specifications.freedesktop.org/autostart-spec/autostart-spec-latest.html

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agokwin: remove checks for native paint engine
Ivailo Monev [Fri, 4 Nov 2022 02:51:01 +0000 (04:51 +0200)]
kwin: remove checks for native paint engine

in most cases the paint engine Katie uses is raster paint engine

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agokwin: set active to false when pointer grab fails in startup feedback effect
Ivailo Monev [Fri, 4 Nov 2022 02:31:58 +0000 (04:31 +0200)]
kwin: set active to false when pointer grab fails in startup feedback effect

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agokwin: release the selection from the application destructor
Ivailo Monev [Fri, 4 Nov 2022 02:13:23 +0000 (04:13 +0200)]
kwin: release the selection from the application destructor

note that lostSelection() slot calls KAapplication::quit()

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
21 months agokcontrol: use mutable list iterator in RandRCrtc::modes()
Ivailo Monev [Thu, 3 Nov 2022 12:24:31 +0000 (14:24 +0200)]
kcontrol: use mutable list iterator in RandRCrtc::modes()

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>