Changeset View
Changeset View
Standalone View
Standalone View
pointer_input.cpp
Show First 20 Lines • Show All 381 Lines • ▼ Show 20 Line(s) | 379 | { | |||
---|---|---|---|---|---|
382 | } | 382 | } | ||
383 | if (waylandServer()->seat()->isDragPointer()) { | 383 | if (waylandServer()->seat()->isDragPointer()) { | ||
384 | // ignore during drag and drop | 384 | // ignore during drag and drop | ||
385 | return; | 385 | return; | ||
386 | } | 386 | } | ||
387 | if (input()->isSelectingWindow()) { | 387 | if (input()->isSelectingWindow()) { | ||
388 | return; | 388 | return; | ||
389 | } | 389 | } | ||
390 | // TODO: handle pointer grab aka popups | | |||
391 | Toplevel *t = m_input->findToplevel(m_pos.toPoint()); | 390 | Toplevel *t = m_input->findToplevel(m_pos.toPoint()); | ||
392 | const auto oldDeco = m_decoration; | 391 | const auto oldDeco = m_decoration; | ||
393 | updateInternalWindow(m_pos); | 392 | updateInternalWindow(m_pos); | ||
394 | if (!m_internalWindow) { | 393 | if (!m_internalWindow) { | ||
395 | updateDecoration(t, m_pos); | 394 | updateDecoration(t, m_pos); | ||
396 | } else { | 395 | } else { | ||
397 | updateDecoration(waylandServer()->findClient(m_internalWindow), m_pos); | 396 | updateDecoration(waylandServer()->findClient(m_internalWindow), m_pos); | ||
398 | if (m_decoration) { | 397 | if (m_decoration) { | ||
▲ Show 20 Lines • Show All 824 Lines • Show Last 20 Lines |