moved over some old BaseDisplay functions
This commit is contained in:
parent
4a396013c6
commit
49231d1b14
1 changed files with 17 additions and 9 deletions
|
@ -22,13 +22,13 @@
|
||||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
// DEALINGS IN THE SOFTWARE.
|
// DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
// $Id: fluxbox.hh,v 1.53 2003/05/04 23:38:06 rathnor Exp $
|
// $Id: fluxbox.hh,v 1.54 2003/05/10 14:01:07 fluxgen Exp $
|
||||||
|
|
||||||
#ifndef FLUXBOX_HH
|
#ifndef FLUXBOX_HH
|
||||||
#define FLUXBOX_HH
|
#define FLUXBOX_HH
|
||||||
|
|
||||||
|
#include "App.hh"
|
||||||
#include "Resource.hh"
|
#include "Resource.hh"
|
||||||
#include "BaseDisplay.hh"
|
|
||||||
#include "Timer.hh"
|
#include "Timer.hh"
|
||||||
#include "Observer.hh"
|
#include "Observer.hh"
|
||||||
#include "SignalHandler.hh"
|
#include "SignalHandler.hh"
|
||||||
|
@ -65,11 +65,12 @@ class Keys;
|
||||||
class BScreen;
|
class BScreen;
|
||||||
class FbAtoms;
|
class FbAtoms;
|
||||||
|
|
||||||
|
|
||||||
|
/// main class for the window manager.
|
||||||
/**
|
/**
|
||||||
main class for the window manager.
|
|
||||||
singleton type
|
singleton type
|
||||||
*/
|
*/
|
||||||
class Fluxbox : public BaseDisplay, public FbTk::TimeoutHandler,
|
class Fluxbox : public FbTk::App, public FbTk::TimeoutHandler,
|
||||||
public FbTk::SignalEventHandler,
|
public FbTk::SignalEventHandler,
|
||||||
public FbTk::Observer {
|
public FbTk::Observer {
|
||||||
public:
|
public:
|
||||||
|
@ -78,7 +79,12 @@ public:
|
||||||
virtual ~Fluxbox();
|
virtual ~Fluxbox();
|
||||||
|
|
||||||
static Fluxbox *instance() { return s_singleton; }
|
static Fluxbox *instance() { return s_singleton; }
|
||||||
|
/// main event loop
|
||||||
|
void eventLoop();
|
||||||
|
bool validateWindow(Window win) const;
|
||||||
|
void grab();
|
||||||
|
void ungrab();
|
||||||
|
|
||||||
inline Atom getFluxboxPidAtom() const { return m_fluxbox_pid; }
|
inline Atom getFluxboxPidAtom() const { return m_fluxbox_pid; }
|
||||||
|
|
||||||
FluxboxWindow *searchGroup(Window, FluxboxWindow *);
|
FluxboxWindow *searchGroup(Window, FluxboxWindow *);
|
||||||
|
@ -140,7 +146,7 @@ public:
|
||||||
inline void maskWindowEvents(Window w, FluxboxWindow *bw)
|
inline void maskWindowEvents(Window w, FluxboxWindow *bw)
|
||||||
{ m_masked = w; m_masked_window = bw; }
|
{ m_masked = w; m_masked_window = bw; }
|
||||||
|
|
||||||
void watchKeyRelease(BScreen *screen, unsigned int mods);
|
void watchKeyRelease(BScreen &screen, unsigned int mods);
|
||||||
|
|
||||||
void setFocusedWindow(FluxboxWindow *w);
|
void setFocusedWindow(FluxboxWindow *w);
|
||||||
void revertFocus(BScreen *screen);
|
void revertFocus(BScreen *screen);
|
||||||
|
@ -175,11 +181,11 @@ public:
|
||||||
inline const Cursor &getLowerLeftAngleCursor() const { return cursor.ll_angle; }
|
inline const Cursor &getLowerLeftAngleCursor() const { return cursor.ll_angle; }
|
||||||
inline const Cursor &getLowerRightAngleCursor() const { return cursor.lr_angle; }
|
inline const Cursor &getLowerRightAngleCursor() const { return cursor.lr_angle; }
|
||||||
|
|
||||||
|
bool isStartup() const { return m_starting; }
|
||||||
enum { B_AMERICANDATE = 1, B_EUROPEANDATE };
|
enum { B_AMERICANDATE = 1, B_EUROPEANDATE };
|
||||||
|
|
||||||
typedef std::vector<Fluxbox::Titlebar> TitlebarList;
|
typedef std::vector<Fluxbox::Titlebar> TitlebarList;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
struct cursor {
|
struct cursor {
|
||||||
Cursor session, move, ll_angle, lr_angle;
|
Cursor session, move, ll_angle, lr_angle;
|
||||||
|
@ -259,7 +265,9 @@ private:
|
||||||
|
|
||||||
static Fluxbox *s_singleton;
|
static Fluxbox *s_singleton;
|
||||||
std::vector<AtomHandler *> m_atomhandler;
|
std::vector<AtomHandler *> m_atomhandler;
|
||||||
|
bool m_starting;
|
||||||
|
bool m_shutdown;
|
||||||
|
int m_server_grabs;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue