2000-03-24 22:23:02 +00:00
|
|
|
/*****************************************************************
|
|
|
|
kwin - the KDE window manager
|
2002-04-02 12:36:24 +00:00
|
|
|
|
2000-03-24 22:23:02 +00:00
|
|
|
Copyright (C) 1999, 2000 Matthias Ettrich <ettrich@kde.org>
|
|
|
|
******************************************************************/
|
1999-08-19 23:26:42 +00:00
|
|
|
#ifndef MAIN_H
|
|
|
|
#define MAIN_H
|
|
|
|
|
2002-05-14 09:31:40 +00:00
|
|
|
#include <kapplication.h>
|
2003-01-24 15:39:52 +00:00
|
|
|
#include <kmanagerselection.h>
|
1999-08-19 23:26:42 +00:00
|
|
|
#include "workspace.h"
|
|
|
|
|
2003-01-24 15:39:52 +00:00
|
|
|
class KWinSelectionOwner
|
|
|
|
: public KSelectionOwner
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
KWinSelectionOwner( int screen );
|
|
|
|
protected:
|
|
|
|
virtual bool genericReply( Atom target, Atom property, Window requestor );
|
|
|
|
virtual void replyTargets( Atom property, Window requestor );
|
|
|
|
virtual void getAtoms();
|
|
|
|
private:
|
|
|
|
Atom make_selection_atom( int screen );
|
|
|
|
static Atom xa_version;
|
|
|
|
};
|
|
|
|
|
1999-11-01 23:41:44 +00:00
|
|
|
class Application : public KApplication
|
1999-08-19 23:26:42 +00:00
|
|
|
{
|
2003-01-24 15:39:52 +00:00
|
|
|
Q_OBJECT
|
1999-08-19 23:26:42 +00:00
|
|
|
public:
|
2000-01-12 15:08:42 +00:00
|
|
|
Application();
|
1999-08-19 23:26:42 +00:00
|
|
|
~Application();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
bool x11EventFilter( XEvent * );
|
2003-01-24 15:39:52 +00:00
|
|
|
private:
|
|
|
|
KWinSelectionOwner owner;
|
1999-08-19 23:26:42 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|