trigger quick tiling on edges of maximize area

screen area can be inacecssible due to panels

BUG: 322493
FIXED-IN: 4.11
REVIEW: 111556
This commit is contained in:
Thomas Lübking 2013-07-17 21:23:24 +02:00
parent d9b567699c
commit 8406aebda8

View file

@ -1201,10 +1201,10 @@ void Client::checkQuickTilingMaximizationZones(int xroot, int yroot)
QuickTileMode mode = QuickTileNone;
for (int i=0; i<screens()->count(); ++i) {
const QRect &area = screens()->geometry(i);
if (!area.contains(QPoint(xroot, yroot)))
if (!screens()->geometry(i).contains(QPoint(xroot, yroot)))
continue;
QRect area = workspace()->clientArea(MaximizeArea, QPoint(xroot, yroot), desktop());
if (options->electricBorderTiling()) {
if (xroot <= area.x() + 20)
mode |= QuickTileLeft;