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
989699a2
Commit
989699a2
authored
Sep 23, 2020
by
Vlad Zahorodnii
Browse files
Remove unused things in VirtualKeyboard
parent
22cf80c4
Changes
2
Hide whitespace changes
Inline
Side-by-side
virtualkeyboard.cpp
View file @
989699a2
...
...
@@ -14,7 +14,6 @@
#include
"screens.h"
#include
"wayland_server.h"
#include
"workspace.h"
#include
"xkb.h"
#include
"screenlockerwatcher.h"
#include
<KWaylandServer/display.h>
...
...
@@ -29,16 +28,6 @@
#include
<QDBusConnection>
#include
<QDBusPendingCall>
#include
<QDBusMessage>
#include
<QGuiApplication>
#include
<QQmlComponent>
#include
<QQmlContext>
#include
<QQmlEngine>
#include
<QQuickItem>
#include
<QQuickView>
#include
<QQuickWindow>
#include
<QTimer>
// xkbcommon
#include
<xkbcommon/xkbcommon.h>
using
namespace
KWaylandServer
;
...
...
@@ -50,9 +39,6 @@ KWIN_SINGLETON_FACTORY(VirtualKeyboard)
VirtualKeyboard
::
VirtualKeyboard
(
QObject
*
parent
)
:
QObject
(
parent
)
{
m_floodTimer
=
new
QTimer
(
this
);
m_floodTimer
->
setSingleShot
(
true
);
m_floodTimer
->
setInterval
(
250
);
// this is actually too late. Other processes are started before init,
// so might miss the availability of text input
// but without Workspace we don't have the window listed at all
...
...
virtualkeyboard.h
View file @
989699a2
...
...
@@ -16,9 +16,6 @@
#include
<abstract_client.h>
class
QQuickView
;
class
QTimer
;
class
QWindow
;
class
KStatusNotifierItem
;
namespace
KWin
...
...
@@ -58,8 +55,6 @@ private:
KStatusNotifierItem
*
m_sni
=
nullptr
;
QPointer
<
AbstractClient
>
m_inputClient
;
QPointer
<
AbstractClient
>
m_trackedClient
;
// If a surface loses focus immediately after being resized by the keyboard, don't react to it to avoid resize loops
QTimer
*
m_floodTimer
;
KWIN_SINGLETON
(
VirtualKeyboard
)
};
...
...
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