Changeset View
Changeset View
Standalone View
Standalone View
input.cpp
Show First 20 Lines • Show All 338 Lines • ▼ Show 20 Line(s) | 331 | public: | |||
---|---|---|---|---|---|
339 | bool keyEvent(QKeyEvent *event) override { | 339 | bool keyEvent(QKeyEvent *event) override { | ||
340 | if (!effects || !static_cast< EffectsHandlerImpl* >(effects)->hasKeyboardGrab()) { | 340 | if (!effects || !static_cast< EffectsHandlerImpl* >(effects)->hasKeyboardGrab()) { | ||
341 | return false; | 341 | return false; | ||
342 | } | 342 | } | ||
343 | waylandServer()->seat()->setFocusedKeyboardSurface(nullptr); | 343 | waylandServer()->seat()->setFocusedKeyboardSurface(nullptr); | ||
344 | static_cast< EffectsHandlerImpl* >(effects)->grabbedKeyboardEvent(event); | 344 | static_cast< EffectsHandlerImpl* >(effects)->grabbedKeyboardEvent(event); | ||
345 | return true; | 345 | return true; | ||
346 | } | 346 | } | ||
347 | bool touchDown(quint32 id, const QPointF &pos, quint32 time) override { | ||||
348 | if (!effects) { | ||||
349 | return false; | ||||
350 | } | ||||
351 | return static_cast< EffectsHandlerImpl* >(effects)->touchDown(id, pos, time); | ||||
352 | } | ||||
353 | bool touchMotion(quint32 id, const QPointF &pos, quint32 time) override { | ||||
354 | if (!effects) { | ||||
355 | return false; | ||||
356 | } | ||||
357 | return static_cast< EffectsHandlerImpl* >(effects)->touchMotion(id, pos, time); | ||||
358 | } | ||||
359 | bool touchUp(quint32 id, quint32 time) override { | ||||
360 | if (!effects) { | ||||
361 | return false; | ||||
362 | } | ||||
363 | return static_cast< EffectsHandlerImpl* >(effects)->touchUp(id, time); | ||||
364 | } | ||||
347 | }; | 365 | }; | ||
348 | 366 | | |||
349 | class MoveResizeFilter : public InputEventFilter { | 367 | class MoveResizeFilter : public InputEventFilter { | ||
350 | public: | 368 | public: | ||
351 | bool pointerEvent(QMouseEvent *event, quint32 nativeButton) override { | 369 | bool pointerEvent(QMouseEvent *event, quint32 nativeButton) override { | ||
352 | Q_UNUSED(nativeButton) | 370 | Q_UNUSED(nativeButton) | ||
353 | AbstractClient *c = workspace()->getMovingClient(); | 371 | AbstractClient *c = workspace()->getMovingClient(); | ||
354 | if (!c) { | 372 | if (!c) { | ||
▲ Show 20 Lines • Show All 1231 Lines • Show Last 20 Lines |