2007-04-29 17:35:43 +00:00
|
|
|
/*****************************************************************
|
|
|
|
KWin - the KDE window manager
|
|
|
|
This file is part of the KDE project.
|
|
|
|
|
|
|
|
Copyright (C) 1999, 2000 Matthias Ettrich <ettrich@kde.org>
|
|
|
|
Copyright (C) 2003 Lubos Lunak <l.lunak@kde.org>
|
|
|
|
|
|
|
|
You can Freely distribute this program under the GNU General Public
|
|
|
|
License. See the file "COPYING" for the exact licensing terms.
|
|
|
|
******************************************************************/
|
|
|
|
|
|
|
|
#ifndef MAIN_H
|
|
|
|
#define MAIN_H
|
|
|
|
|
|
|
|
#include <kapplication.h>
|
|
|
|
#include "workspace.h"
|
|
|
|
#include "utils.h"
|
|
|
|
|
|
|
|
namespace KWin
|
|
|
|
{
|
|
|
|
|
|
|
|
class Application : public KApplication
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
Application();
|
|
|
|
~Application();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
bool x11EventFilter( XEvent * );
|
|
|
|
bool notify( QObject* o, QEvent* e );
|
2007-09-27 14:53:52 +00:00
|
|
|
static void crashHandler(int signal);
|
2007-04-29 17:35:43 +00:00
|
|
|
private slots:
|
|
|
|
void lostSelection();
|
2007-09-27 14:53:52 +00:00
|
|
|
void resetCrashesCount();
|
2007-04-29 17:35:43 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
KWinSelectionOwner owner;
|
2007-09-27 14:53:52 +00:00
|
|
|
static int crashes;
|
2007-04-29 17:35:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace
|
|
|
|
|
|
|
|
#endif
|