[InputRedirection] Check if workspace is valid before accessing it
Reviewed-By: Martin Gräßlin
This commit is contained in:
parent
e5518dffe2
commit
e5a0af1589
1 changed files with 6 additions and 0 deletions
|
@ -665,6 +665,9 @@ void InputRedirection::installCursorFromDecoration()
|
||||||
|
|
||||||
void InputRedirection::updateFocusedPointerPosition()
|
void InputRedirection::updateFocusedPointerPosition()
|
||||||
{
|
{
|
||||||
|
if (!workspace()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (m_pointerWindow.isNull()) {
|
if (m_pointerWindow.isNull()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -743,6 +746,9 @@ void InputRedirection::processPointerMotion(const QPointF &pos, uint32_t time)
|
||||||
|
|
||||||
void InputRedirection::processPointerButton(uint32_t button, InputRedirection::PointerButtonState state, uint32_t time)
|
void InputRedirection::processPointerButton(uint32_t button, InputRedirection::PointerButtonState state, uint32_t time)
|
||||||
{
|
{
|
||||||
|
if (!workspace()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
m_pointerButtons[button] = state;
|
m_pointerButtons[button] = state;
|
||||||
emit pointerButtonStateChanged(button, state);
|
emit pointerButtonStateChanged(button, state);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue