KWin
Loading...
Searching...
No Matches
src
wayland
xwaylandkeyboardgrab_v1.h
Go to the documentation of this file.
1
/*
2
SPDX-FileCopyrightText: 2022 David Redondo <kde@david-redondo.de>
3
4
SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5
*/
6
7
#pragma once
8
9
#include "kwin_export.h"
10
11
#include <QObject>
12
13
#include <memory>
14
15
struct
wl_resource;
16
17
namespace
KWin
18
{
19
20
class
Display
;
21
class
SeatInterface;
22
class
SurfaceInterface;
23
class
XWaylandKeyboardGrabV1InterfacePrivate;
24
class
XWaylandKeyboardGrabManagerV1InterfacePrivate;
25
26
class
KWIN_EXPORT
XWaylandKeyboardGrabManagerV1Interface
:
public
QObject
27
{
28
Q_OBJECT
29
public
:
30
explicit
XWaylandKeyboardGrabManagerV1Interface
(
Display
*display, QObject *parent =
nullptr
);
31
~XWaylandKeyboardGrabManagerV1Interface
()
override
;
32
bool
hasGrab(
SurfaceInterface
*surface,
SeatInterface
*seat)
const
;
33
34
private
:
35
friend
class
XWaylandKeyboardGrabManagerV1InterfacePrivate
;
36
std::unique_ptr<XWaylandKeyboardGrabManagerV1InterfacePrivate> d;
37
};
38
39
class
KWIN_EXPORT
XWaylandKeyboardGrabV1Interface
:
public
QObject
40
{
41
Q_OBJECT
42
public
:
43
~XWaylandKeyboardGrabV1Interface
()
override
;
44
45
private
:
46
friend
class
XWaylandKeyboardGrabManagerV1InterfacePrivate
;
47
XWaylandKeyboardGrabV1Interface
(wl_resource *resource);
48
std::unique_ptr<XWaylandKeyboardGrabV1InterfacePrivate> d;
49
};
50
51
}
KWin::Display
Class holding the Wayland server display loop.
Definition
display.h:34
KWin::SeatInterface
Represents a Seat on the Wayland Display.
Definition
seat.h:134
KWin::SurfaceInterface
Resource representing a wl_surface.
Definition
surface.h:80
KWin::XWaylandKeyboardGrabManagerV1Interface
Definition
xwaylandkeyboardgrab_v1.h:27
KWin::XWaylandKeyboardGrabManagerV1InterfacePrivate
Definition
xwaylandkeyboardgrab_v1.cpp:21
KWin::XWaylandKeyboardGrabV1Interface
Definition
xwaylandkeyboardgrab_v1.h:40
KWin
Definition
activation_test.cpp:20
Display
struct _XDisplay Display
Definition
x11_standalone_egl_backend.h:18
Generated on Sat Feb 17 2024 01:42:10 for KWin by
1.10.0