Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
KWin
Commits
fe56f36d
Commit
fe56f36d
authored
Mar 09, 2022
by
Volker Krause
Browse files
Port to QRecursiveMutex
Recursive and non-recursive mutexes are distinct types in Qt6.
parent
ce22e95d
Pipeline
#148311
passed with stage
in 25 minutes and 49 seconds
Changes
4
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
src/backends/libinput/connection.cpp
View file @
fe56f36d
...
...
@@ -126,7 +126,6 @@ Connection::Connection(Context *input, QObject *parent)
:
QObject
(
parent
)
,
m_input
(
input
)
,
m_notifier
(
nullptr
)
,
m_mutex
(
QMutex
::
Recursive
)
{
Q_ASSERT
(
m_input
);
// need to connect to KGlobalSettings as the mouse KCM does not emit a dedicated signal
...
...
src/backends/libinput/connection.h
View file @
fe56f36d
...
...
@@ -16,7 +16,7 @@
#include
<QObject>
#include
<QPointer>
#include
<QSize>
#include
<QMutex>
#include
<Q
Recursive
Mutex>
#include
<QVector>
#include
<QStringList>
...
...
@@ -67,7 +67,7 @@ private:
void
applyScreenToDevice
(
Device
*
device
);
Context
*
m_input
;
QSocketNotifier
*
m_notifier
;
QMutex
m_mutex
;
Q
Recursive
Mutex
m_mutex
;
QVector
<
Event
*>
m_eventQueue
;
QVector
<
Device
*>
m_devices
;
KSharedConfigPtr
m_config
;
...
...
src/scripting/scripting.cpp
View file @
fe56f36d
...
...
@@ -626,7 +626,7 @@ KWin::Scripting *KWin::Scripting::create(QObject *parent)
KWin
::
Scripting
::
Scripting
(
QObject
*
parent
)
:
QObject
(
parent
)
,
m_scriptsLock
(
new
Q
Mutex
(
QMutex
::
Recursive
)
)
,
m_scriptsLock
(
new
QRecursive
Mutex
)
,
m_qmlEngine
(
new
QQmlEngine
(
this
))
,
m_declarativeScriptSharedContext
(
new
QQmlContext
(
m_qmlEngine
,
this
))
,
m_workspaceWrapper
(
new
QtScriptWorkspaceWrapper
(
this
))
...
...
src/scripting/scripting.h
View file @
fe56f36d
...
...
@@ -28,7 +28,7 @@ class QQmlContext;
class
QQmlEngine
;
class
QAction
;
class
QMenu
;
class
QMutex
;
class
Q
Recursive
Mutex
;
class
QQuickWindow
;
class
KConfigGroup
;
...
...
@@ -315,7 +315,7 @@ private:
/**
* Lock to protect the scripts member variable.
*/
QScopedPointer
<
QMutex
>
m_scriptsLock
;
QScopedPointer
<
Q
Recursive
Mutex
>
m_scriptsLock
;
// Preferably call ONLY at load time
void
runScripts
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment