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
remotes/origin/Plasma/5.3
Mika Allan Rauhala 11 years ago committed by Martin Gräßlin
parent f7bed6a003
commit 2217c1038f
  1. 4
      kwinbindings.cpp
  2. 16
      placement.cpp
  3. 2
      scripting/workspace_wrapper.cpp
  4. 2
      scripting/workspace_wrapper.h
  5. 2
      workspace.h

@ -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"),

@ -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) {

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

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

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

Loading…
Cancel
Save