Changeset View
Changeset View
Standalone View
Standalone View
input.h
Show First 20 Lines • Show All 383 Lines • ▼ Show 20 Line(s) | |||||
384 | Q_SIGNALS: | 384 | Q_SIGNALS: | ||
385 | void decorationChanged(); | 385 | void decorationChanged(); | ||
386 | void internalWindowChanged(); | 386 | void internalWindowChanged(); | ||
387 | 387 | | |||
388 | protected: | 388 | protected: | ||
389 | explicit InputDeviceHandler(InputRedirection *parent); | 389 | explicit InputDeviceHandler(InputRedirection *parent); | ||
390 | void updateDecoration(Toplevel *t, const QPointF &pos); | 390 | void updateDecoration(Toplevel *t, const QPointF &pos); | ||
391 | void updateInternalWindow(const QPointF &pos); | 391 | void updateInternalWindow(const QPointF &pos); | ||
392 | InputRedirection *m_input; | 392 | void setWindow(QPointer<Toplevel> window = QPointer<Toplevel>()) { | ||
393 | m_window = window; | ||||
394 | } | ||||
395 | void clearDecoration() { | ||||
396 | m_decoration.clear(); | ||||
397 | } | ||||
398 | void clearInternalWindow() { | ||||
399 | m_internalWindow.clear(); | ||||
400 | } | ||||
401 | | ||||
402 | private: | ||||
393 | /** | 403 | /** | ||
394 | * @brief The Toplevel which currently receives events | 404 | * @brief The Toplevel which currently receives events | ||
395 | */ | 405 | */ | ||
396 | QPointer<Toplevel> m_window; | 406 | QPointer<Toplevel> m_window; | ||
397 | /** | 407 | /** | ||
398 | * @brief The Decoration which currently receives events. | 408 | * @brief The Decoration which currently receives events. | ||
399 | **/ | 409 | **/ | ||
400 | QPointer<Decoration::DecoratedClientImpl> m_decoration; | 410 | QPointer<Decoration::DecoratedClientImpl> m_decoration; | ||
Show All 23 Lines |