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: 123153
icc-effect-5.14.5
Mika Allan Rauhala 2015-03-31 11:09:57 +02:00 committed by Martin Gräßlin
parent f7bed6a003
commit 2217c1038f
5 changed files with 26 additions and 0 deletions

View File

@ -97,6 +97,10 @@ DEF2("Window Quick Tile Left", I18N_NOOP("Quick Tile Window to the Left"),
0, slotWindowQuickTileLeft);
DEF2("Window Quick Tile Right", I18N_NOOP("Quick Tile Window to the Right"),
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"),
0, slotWindowQuickTileTopLeft);
DEF2("Window Quick Tile Bottom Left", I18N_NOOP("Quick Tile Window to the Bottom Left"),

View File

@ -817,6 +817,22 @@ void Workspace::slotWindowQuickTileRight()
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()
{
if (!active_client) {

View File

@ -144,6 +144,8 @@ SLOTWRAPPER(slotWindowShrinkHorizontal)
SLOTWRAPPER(slotWindowShrinkVertical)
SLOTWRAPPER(slotWindowQuickTileLeft)
SLOTWRAPPER(slotWindowQuickTileRight)
SLOTWRAPPER(slotWindowQuickTileTop)
SLOTWRAPPER(slotWindowQuickTileBottom)
SLOTWRAPPER(slotWindowQuickTileTopLeft)
SLOTWRAPPER(slotWindowQuickTileTopRight)
SLOTWRAPPER(slotWindowQuickTileBottomLeft)

View File

@ -297,6 +297,8 @@ public Q_SLOTS:
void slotWindowShrinkVertical();
void slotWindowQuickTileLeft();
void slotWindowQuickTileRight();
void slotWindowQuickTileTop();
void slotWindowQuickTileBottom();
void slotWindowQuickTileTopLeft();
void slotWindowQuickTileTopRight();
void slotWindowQuickTileBottomLeft();

View File

@ -372,6 +372,8 @@ public Q_SLOTS:
void slotWindowShrinkVertical();
void slotWindowQuickTileLeft();
void slotWindowQuickTileRight();
void slotWindowQuickTileTop();
void slotWindowQuickTileBottom();
void slotWindowQuickTileTopLeft();
void slotWindowQuickTileTopRight();
void slotWindowQuickTileBottomLeft();