Changeset View
Changeset View
Standalone View
Standalone View
xwl/xwayland.h
Show All 14 Lines | |||||
15 | GNU General Public License for more details. | 15 | GNU General Public License for more details. | ||
16 | 16 | | |||
17 | You should have received a copy of the GNU General Public License | 17 | You should have received a copy of the GNU General Public License | ||
18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
19 | *********************************************************************/ | 19 | *********************************************************************/ | ||
20 | #ifndef KWIN_XWL_XWAYLAND | 20 | #ifndef KWIN_XWL_XWAYLAND | ||
21 | #define KWIN_XWL_XWAYLAND | 21 | #define KWIN_XWL_XWAYLAND | ||
22 | 22 | | |||
23 | #include <QObject> | 23 | #include "xwayland_interface.h" | ||
24 | 24 | | |||
25 | #include <xcb/xproto.h> | 25 | #include <xcb/xproto.h> | ||
26 | 26 | | |||
27 | class QProcess; | 27 | class QProcess; | ||
28 | 28 | | |||
29 | class xcb_screen_t; | 29 | class xcb_screen_t; | ||
30 | 30 | | |||
31 | namespace KWin | 31 | namespace KWin | ||
32 | { | 32 | { | ||
33 | class ApplicationWaylandAbstract; | 33 | class ApplicationWaylandAbstract; | ||
34 | 34 | | |||
35 | namespace Xwl | 35 | namespace Xwl | ||
36 | { | 36 | { | ||
37 | class DataBridge; | 37 | class DataBridge; | ||
38 | 38 | | |||
39 | class Xwayland : public QObject | 39 | class Xwayland : public XwaylandInterface | ||
40 | { | 40 | { | ||
41 | Q_OBJECT | 41 | Q_OBJECT | ||
42 | public: | 42 | public: | ||
43 | static Xwayland* self(); | 43 | static Xwayland* self(); | ||
davidedmundson: I don't understand. What does this inheritance do that this existing method doesn't do | |||||
XwaylandIface is compiled into KWin core while class Xwayland is only compiled into the kwin_wayland binary. romangg: XwaylandIface is compiled into KWin core while class Xwayland is only compiled into the… | |||||
44 | 44 | | |||
45 | Xwayland(ApplicationWaylandAbstract *app, QObject *parent = nullptr); | 45 | Xwayland(ApplicationWaylandAbstract *app, QObject *parent = nullptr); | ||
46 | virtual ~Xwayland(); | 46 | virtual ~Xwayland(); | ||
47 | 47 | | |||
48 | void init(); | 48 | void init(); | ||
49 | void prepareDestroy(); | 49 | void prepareDestroy(); | ||
50 | 50 | | |||
51 | xcb_screen_t *xcbScreen() const { | 51 | xcb_screen_t *xcbScreen() const { | ||
Show All 28 Lines |
I don't understand. What does this inheritance do that this existing method doesn't do