Add Quick Tile Window to the Top and Bottom shortcuts
This adds "Quick Tile Window to the Top" and "Quick Title Window to the Bottom" shortcuts. These are useful for those using displays that are in portrait orientation. CCBUG: 310005 REVIEW: 123153icc-effect-5.14.5
parent
f7bed6a003
commit
2217c1038f
|
@ -97,6 +97,10 @@ DEF2("Window Quick Tile Left", I18N_NOOP("Quick Tile Window to the Left"),
|
||||||
0, slotWindowQuickTileLeft);
|
0, slotWindowQuickTileLeft);
|
||||||
DEF2("Window Quick Tile Right", I18N_NOOP("Quick Tile Window to the Right"),
|
DEF2("Window Quick Tile Right", I18N_NOOP("Quick Tile Window to the Right"),
|
||||||
0, slotWindowQuickTileRight);
|
0, slotWindowQuickTileRight);
|
||||||
|
DEF2("Window Quick Tile Top", I18N_NOOP("Quick Tile Window to the Top"),
|
||||||
|
0, slotWindowQuickTileTop);
|
||||||
|
DEF2("Window Quick Tile Bottom", I18N_NOOP("Quick Tile Window to the Bottom"),
|
||||||
|
0, slotWindowQuickTileBottom);
|
||||||
DEF2("Window Quick Tile Top Left", I18N_NOOP("Quick Tile Window to the Top Left"),
|
DEF2("Window Quick Tile Top Left", I18N_NOOP("Quick Tile Window to the Top Left"),
|
||||||
0, slotWindowQuickTileTopLeft);
|
0, slotWindowQuickTileTopLeft);
|
||||||
DEF2("Window Quick Tile Bottom Left", I18N_NOOP("Quick Tile Window to the Bottom Left"),
|
DEF2("Window Quick Tile Bottom Left", I18N_NOOP("Quick Tile Window to the Bottom Left"),
|
||||||
|
|
|
@ -817,6 +817,22 @@ void Workspace::slotWindowQuickTileRight()
|
||||||
active_client->setQuickTileMode(Client::QuickTileRight, true);
|
active_client->setQuickTileMode(Client::QuickTileRight, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Workspace::slotWindowQuickTileTop()
|
||||||
|
{
|
||||||
|
if (!active_client)
|
||||||
|
return;
|
||||||
|
|
||||||
|
active_client->setQuickTileMode(Client::QuickTileTop, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
void Workspace::slotWindowQuickTileBottom()
|
||||||
|
{
|
||||||
|
if (!active_client)
|
||||||
|
return;
|
||||||
|
|
||||||
|
active_client->setQuickTileMode(Client::QuickTileBottom, true);
|
||||||
|
}
|
||||||
|
|
||||||
void Workspace::slotWindowQuickTileTopLeft()
|
void Workspace::slotWindowQuickTileTopLeft()
|
||||||
{
|
{
|
||||||
if (!active_client) {
|
if (!active_client) {
|
||||||
|
|
|
@ -144,6 +144,8 @@ SLOTWRAPPER(slotWindowShrinkHorizontal)
|
||||||
SLOTWRAPPER(slotWindowShrinkVertical)
|
SLOTWRAPPER(slotWindowShrinkVertical)
|
||||||
SLOTWRAPPER(slotWindowQuickTileLeft)
|
SLOTWRAPPER(slotWindowQuickTileLeft)
|
||||||
SLOTWRAPPER(slotWindowQuickTileRight)
|
SLOTWRAPPER(slotWindowQuickTileRight)
|
||||||
|
SLOTWRAPPER(slotWindowQuickTileTop)
|
||||||
|
SLOTWRAPPER(slotWindowQuickTileBottom)
|
||||||
SLOTWRAPPER(slotWindowQuickTileTopLeft)
|
SLOTWRAPPER(slotWindowQuickTileTopLeft)
|
||||||
SLOTWRAPPER(slotWindowQuickTileTopRight)
|
SLOTWRAPPER(slotWindowQuickTileTopRight)
|
||||||
SLOTWRAPPER(slotWindowQuickTileBottomLeft)
|
SLOTWRAPPER(slotWindowQuickTileBottomLeft)
|
||||||
|
|
|
@ -297,6 +297,8 @@ public Q_SLOTS:
|
||||||
void slotWindowShrinkVertical();
|
void slotWindowShrinkVertical();
|
||||||
void slotWindowQuickTileLeft();
|
void slotWindowQuickTileLeft();
|
||||||
void slotWindowQuickTileRight();
|
void slotWindowQuickTileRight();
|
||||||
|
void slotWindowQuickTileTop();
|
||||||
|
void slotWindowQuickTileBottom();
|
||||||
void slotWindowQuickTileTopLeft();
|
void slotWindowQuickTileTopLeft();
|
||||||
void slotWindowQuickTileTopRight();
|
void slotWindowQuickTileTopRight();
|
||||||
void slotWindowQuickTileBottomLeft();
|
void slotWindowQuickTileBottomLeft();
|
||||||
|
|
|
@ -372,6 +372,8 @@ public Q_SLOTS:
|
||||||
void slotWindowShrinkVertical();
|
void slotWindowShrinkVertical();
|
||||||
void slotWindowQuickTileLeft();
|
void slotWindowQuickTileLeft();
|
||||||
void slotWindowQuickTileRight();
|
void slotWindowQuickTileRight();
|
||||||
|
void slotWindowQuickTileTop();
|
||||||
|
void slotWindowQuickTileBottom();
|
||||||
void slotWindowQuickTileTopLeft();
|
void slotWindowQuickTileTopLeft();
|
||||||
void slotWindowQuickTileTopRight();
|
void slotWindowQuickTileTopRight();
|
||||||
void slotWindowQuickTileBottomLeft();
|
void slotWindowQuickTileBottomLeft();
|
||||||
|
|
Loading…
Reference in New Issue