[kwin] Add a static kwinApp method to get a pointer to KWin::Application
The idea is that we can use the Application instance as a place to put global information which should not go into kwinglobals. That is core global things.
This commit is contained in:
parent
81ef314bdd
commit
dda4f32e09
1 changed files with 5 additions and 0 deletions
5
main.h
5
main.h
|
@ -83,6 +83,11 @@ private:
|
|||
static int crashes;
|
||||
};
|
||||
|
||||
inline static Application *kwinApp()
|
||||
{
|
||||
return static_cast<Application*>(QCoreApplication::instance());
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue