rough in what should be screen hotplug detection, once QDesktopWidget gets it stuff together
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=742393
This commit is contained in:
parent
3166344116
commit
0b2c1b481f
10
corona.cpp
10
corona.cpp
@ -439,8 +439,18 @@ void Corona::screenResized(int screen)
|
||||
if (c->screen() == screen) {
|
||||
// trigger a relayout
|
||||
c->setScreen(screen);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// a new screen appeared. neat.
|
||||
// FIXME: apparently QDesktopWidget doesn't do the Right Thing when a new screen is plugged in
|
||||
// at runtime. seems it gets confused and thinks it's all one big screen? need to
|
||||
// fix this upstream
|
||||
Containment* c = addContainment("desktop");
|
||||
c->setScreen(screen);
|
||||
c->setFormFactor(Plasma::Planar);
|
||||
emit newScreen(screen);
|
||||
}
|
||||
|
||||
bool Corona::isImmutable() const
|
||||
|
10
corona.h
10
corona.h
@ -166,10 +166,18 @@ public Q_SLOTS:
|
||||
|
||||
Q_SIGNALS:
|
||||
/**
|
||||
* This signal indicates, that a application launch was triggered
|
||||
* This signal indicates that a application launch was triggered
|
||||
*/
|
||||
void launchActivated();
|
||||
|
||||
/**
|
||||
* This signal indicates that a new screen is being handled
|
||||
* at runtime (e.g. after first creation)
|
||||
*
|
||||
* @param screen the xinerama number of the new screen
|
||||
*/
|
||||
void newScreen(int screen);
|
||||
|
||||
protected:
|
||||
void dragEnterEvent(QGraphicsSceneDragDropEvent* event);
|
||||
void dragLeaveEvent(QGraphicsSceneDragDropEvent* event);
|
||||
|
Loading…
Reference in New Issue
Block a user