Changeset View
Changeset View
Standalone View
Standalone View
useractions.cpp
Show First 20 Lines • Show All 991 Lines • ▼ Show 20 Line(s) | 1678 | { | |||
---|---|---|---|---|---|
1682 | showWindowMenu(QRect(pos, pos), active_client); | 1682 | showWindowMenu(QRect(pos, pos), active_client); | ||
1683 | } | 1683 | } | ||
1684 | 1684 | | |||
1685 | void Workspace::showWindowMenu(const QRect &pos, AbstractClient* cl) | 1685 | void Workspace::showWindowMenu(const QRect &pos, AbstractClient* cl) | ||
1686 | { | 1686 | { | ||
1687 | m_userActionsMenu->show(pos, cl); | 1687 | m_userActionsMenu->show(pos, cl); | ||
1688 | } | 1688 | } | ||
1689 | 1689 | | |||
1690 | void Workspace::slotWindowApplicationMenu() | ||||
1691 | { | ||||
1692 | if (!active_client) { | ||||
1693 | return; | ||||
1694 | } | ||||
1695 | showApplicationMenu(QRect(active_client->clientPos(), QSize()), active_client, 0 /*actionId*/); | ||||
1696 | } | ||||
1697 | | ||||
1690 | void Workspace::showApplicationMenu(const QRect &pos, AbstractClient *c, int actionId) | 1698 | void Workspace::showApplicationMenu(const QRect &pos, AbstractClient *c, int actionId) | ||
1691 | { | 1699 | { | ||
1692 | ApplicationMenu::self()->showApplicationMenu(c->geometry().topLeft() + pos.bottomLeft(), c, actionId); | 1700 | ApplicationMenu::self()->showApplicationMenu(c->geometry().topLeft() + pos.bottomLeft(), c, actionId); | ||
1693 | } | 1701 | } | ||
1694 | 1702 | | |||
1695 | /*! | 1703 | /*! | ||
1696 | Closes the popup client | 1704 | Closes the popup client | ||
1697 | */ | 1705 | */ | ||
▲ Show 20 Lines • Show All 133 Lines • Show Last 20 Lines |