Port screenContainsPos() to AbstractOutput
This commit is contained in:
parent
25a6515e05
commit
26e470b7ff
1 changed files with 3 additions and 2 deletions
|
@ -84,8 +84,9 @@ static Qt::MouseButton buttonToQtMouseButton(uint32_t button)
|
||||||
|
|
||||||
static bool screenContainsPos(const QPointF &pos)
|
static bool screenContainsPos(const QPointF &pos)
|
||||||
{
|
{
|
||||||
for (int i = 0; i < screens()->count(); ++i) {
|
const auto outputs = kwinApp()->platform()->enabledOutputs();
|
||||||
if (screens()->geometry(i).contains(pos.toPoint())) {
|
for (const AbstractOutput *output : outputs) {
|
||||||
|
if (output->geometry().contains(pos.toPoint())) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue