Merge branch 'KDE/4.10'

Conflicts:
	kwin/workspace.cpp
This commit is contained in:
Martin Gräßlin 2013-01-14 15:43:01 +01:00
commit 5f4935fc66
5 changed files with 27 additions and 9 deletions

View file

@ -918,8 +918,7 @@ void Toplevel::damageNotifyEvent(XDamageNotifyEvent* e)
bool Toplevel::compositing() const
{
Compositor *c = Compositor::self();
return c && c->hasScene();
return Workspace::self()->compositing();
}
void Client::damageNotifyEvent(XDamageNotifyEvent* e)

View file

@ -139,7 +139,6 @@ public:
* @see createCompositor
**/
static Compositor *self() {
Q_ASSERT(s_compositor);
return s_compositor;
}
/**

View file

@ -146,7 +146,7 @@ Comment[lv]=Šeit jūs varat konfigurēt logu fokusēšanās politiku
Comment[mai]=ि ि ि
Comment[mk]=Конфигурирајте ја политиката на фокусирање на прозорците
Comment[ml]= ി
Comment[mr]=
Comment[mr]=
Comment[nb]=Sett opp praksis for vindusfokus
Comment[nds]=Regeln för den Finsterfokus instellen
Comment[ne]= ि ि

View file

@ -83,6 +83,7 @@ namespace KWin
{
extern int screen_number;
extern bool is_multihead;
#ifdef KWIN_BUILD_KAPPMENU
static const char *KDED_SERVICE = "org.kde.kded";
@ -1998,6 +1999,25 @@ QString Workspace::supportInformation() const
}
support.append(QLatin1String(property.name()) % ": " % options->property(property.name()).toString() % '\n');
}
support.append("\nScreens\n");
support.append( "=======\n");
support.append("Multi-Head: ");
if (is_multihead) {
support.append("yes\n");
support.append(QString("Head: %1\n").arg(screen_number));
} else {
support.append("no\n");
}
support.append(QString("Number of Screens: %1\n").arg(QApplication::desktop()->screenCount()));
for (int i=0; i<QApplication::desktop()->screenCount(); ++i) {
const QRect geo = QApplication::desktop()->screenGeometry(i);
support.append(QString("Screen %1 Geometry: %2,%3,%4x%5\n")
.arg(i)
.arg(geo.x())
.arg(geo.y())
.arg(geo.width())
.arg(geo.height()));
}
support.append("\nCompositing\n");
support.append( "===========\n");
support.append("Qt Graphics System: ");

View file

@ -414,6 +414,11 @@ public:
return movingClient;
}
/**
* @returns Whether we have a Compositor and it is active (Scene created)
**/
bool compositing() const;
public slots:
// Keybindings
//void slotSwitchToWindow( int );
@ -625,11 +630,6 @@ private:
static NET::WindowType txtToWindowType(const char* txt);
static bool sessionInfoWindowTypeMatch(Client* c, SessionInfo* info);
/**
* @returns Whether we have a Compositor and it is active (Scene created)
**/
bool compositing() const;
Client* active_client;
Client* last_active_client;
Client* most_recently_raised; // Used ONLY by raiseOrLowerClient()