Changeset View
Changeset View
Standalone View
Standalone View
xdgshellclient.cpp
Show First 20 Lines • Show All 628 Lines • ▼ Show 20 Line(s) | 628 | { | |||
---|---|---|---|---|---|
629 | if (!rules()->checkMinimize(true)) { | 629 | if (!rules()->checkMinimize(true)) { | ||
630 | return false; | 630 | return false; | ||
631 | } | 631 | } | ||
632 | return (!m_plasmaShellSurface || m_plasmaShellSurface->role() == PlasmaShellSurfaceInterface::Role::Normal); | 632 | return (!m_plasmaShellSurface || m_plasmaShellSurface->role() == PlasmaShellSurfaceInterface::Role::Normal); | ||
633 | } | 633 | } | ||
634 | 634 | | |||
635 | bool XdgShellClient::isMovable() const | 635 | bool XdgShellClient::isMovable() const | ||
636 | { | 636 | { | ||
637 | if (isFullScreen()) { | ||||
638 | return false; | ||||
639 | } | ||||
637 | if (rules()->checkPosition(invalidPoint) != invalidPoint) { | 640 | if (rules()->checkPosition(invalidPoint) != invalidPoint) { | ||
638 | return false; | 641 | return false; | ||
639 | } | 642 | } | ||
640 | if (m_plasmaShellSurface) { | 643 | if (m_plasmaShellSurface) { | ||
641 | return m_plasmaShellSurface->role() == PlasmaShellSurfaceInterface::Role::Normal; | 644 | return m_plasmaShellSurface->role() == PlasmaShellSurfaceInterface::Role::Normal; | ||
642 | } | 645 | } | ||
643 | if (m_xdgShellPopup) { | 646 | if (m_xdgShellPopup) { | ||
644 | return false; | 647 | return false; | ||
Show All 12 Lines | 653 | { | |||
657 | if (m_xdgShellPopup) { | 660 | if (m_xdgShellPopup) { | ||
658 | return false; | 661 | return false; | ||
659 | } | 662 | } | ||
660 | return true; | 663 | return true; | ||
661 | } | 664 | } | ||
662 | 665 | | |||
663 | bool XdgShellClient::isResizable() const | 666 | bool XdgShellClient::isResizable() const | ||
664 | { | 667 | { | ||
668 | if (isFullScreen()) { | ||||
669 | return false; | ||||
670 | } | ||||
665 | if (rules()->checkSize(QSize()).isValid()) { | 671 | if (rules()->checkSize(QSize()).isValid()) { | ||
666 | return false; | 672 | return false; | ||
667 | } | 673 | } | ||
668 | if (m_plasmaShellSurface) { | 674 | if (m_plasmaShellSurface) { | ||
669 | return m_plasmaShellSurface->role() == PlasmaShellSurfaceInterface::Role::Normal; | 675 | return m_plasmaShellSurface->role() == PlasmaShellSurfaceInterface::Role::Normal; | ||
670 | } | 676 | } | ||
671 | if (m_xdgShellPopup) { | 677 | if (m_xdgShellPopup) { | ||
672 | return false; | 678 | return false; | ||
▲ Show 20 Lines • Show All 1268 Lines • Show Last 20 Lines |