Fix tests build
This commit is contained in:
parent
8baf535a7a
commit
6f176660fb
2 changed files with 6 additions and 3 deletions
|
@ -10,7 +10,7 @@
|
|||
#define KWIN_ABSTRACT_WAYLAND_OUTPUT_H
|
||||
|
||||
#include "abstract_output.h"
|
||||
#include <utils.h>
|
||||
#include "utils.h"
|
||||
#include <kwin_export.h>
|
||||
|
||||
#include <QObject>
|
||||
|
|
|
@ -13,12 +13,12 @@
|
|||
|
||||
// TODO: Make it compile also in testing environment
|
||||
#ifndef KWIN_BUILD_TESTING
|
||||
#include "../abstract_wayland_output.h"
|
||||
#include "../main.h"
|
||||
#include "../platform.h"
|
||||
#include "../screens.h"
|
||||
#endif
|
||||
|
||||
#include "../abstract_wayland_output.h"
|
||||
#include "../logind.h"
|
||||
#include "../udev.h"
|
||||
#include "libinput_logging.h"
|
||||
|
@ -567,12 +567,15 @@ void Connection::processEvents()
|
|||
capabilities << InputRedirection::Wheel;
|
||||
}
|
||||
|
||||
#ifndef KWIN_BUILD_TESTING
|
||||
const auto *output = static_cast<AbstractWaylandOutput*>(
|
||||
kwinApp()->platform()->enabledOutputs()[tte->device()->screenId()]);
|
||||
const QPointF globalPos =
|
||||
devicePointToGlobalPosition(tte->transformedPosition(output->modeSize()),
|
||||
output);
|
||||
|
||||
#else
|
||||
const QPointF globalPos;
|
||||
#endif
|
||||
emit tabletToolEvent(tabletEventType,
|
||||
globalPos, tte->pressure(),
|
||||
tte->xTilt(), tte->yTilt(), tte->rotation(),
|
||||
|
|
Loading…
Reference in a new issue