provide a bit of a margin between containments; this ensures that we don't get painting "bleed" between panels and the desktop as well which should help kwin go a little less crazy trying to keep up with re-compositing the whole desktop every time =)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=728530
This commit is contained in:
parent
245e63418e
commit
1db6f236e7
@ -45,6 +45,8 @@
|
|||||||
namespace Plasma
|
namespace Plasma
|
||||||
{
|
{
|
||||||
|
|
||||||
|
static const int INTER_CONTAINMENT_MARGIN = 6;
|
||||||
|
|
||||||
class Containment::Private
|
class Containment::Private
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@ -121,7 +123,10 @@ void Containment::init()
|
|||||||
//kDebug() << "we are a panel, let's move ourselves to a negative coordinate system";
|
//kDebug() << "we are a panel, let's move ourselves to a negative coordinate system";
|
||||||
QDesktopWidget desktop;
|
QDesktopWidget desktop;
|
||||||
QRect r = desktop.screenGeometry(screen());
|
QRect r = desktop.screenGeometry(screen());
|
||||||
translate(0, -r.height());
|
//FIXME PANELS: multiple panel support means having to move the panels up
|
||||||
|
// this requires a proper panel manager, discuss in the panel
|
||||||
|
// irc meeting
|
||||||
|
translate(0, -r.height() - INTER_CONTAINMENT_MARGIN);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user