[InputRedirection] Check if workspace is valid before accessing it
Reviewed-By: Martin Gräßlinicc-effect-5.14.5
parent
e5518dffe2
commit
e5a0af1589
|
@ -665,6 +665,9 @@ void InputRedirection::installCursorFromDecoration()
|
|||
|
||||
void InputRedirection::updateFocusedPointerPosition()
|
||||
{
|
||||
if (!workspace()) {
|
||||
return;
|
||||
}
|
||||
if (m_pointerWindow.isNull()) {
|
||||
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)
|
||||
{
|
||||
if (!workspace()) {
|
||||
return;
|
||||
}
|
||||
m_pointerButtons[button] = state;
|
||||
emit pointerButtonStateChanged(button, state);
|
||||
|
||||
|
|
Loading…
Reference in New Issue