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
|
||||
{
|
||||
|
||||
static const int INTER_CONTAINMENT_MARGIN = 6;
|
||||
|
||||
class Containment::Private
|
||||
{
|
||||
public:
|
||||
@ -121,7 +123,10 @@ void Containment::init()
|
||||
//kDebug() << "we are a panel, let's move ourselves to a negative coordinate system";
|
||||
QDesktopWidget desktop;
|
||||
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