openbox/otk/appwidget.hh
Dana Jansens 12a95bfdb3 add an OtkAppWidget which are "root windows", i.e. the managed child of root, to be shown on the display.
Exit when all the "root windows" are hidden.
Support the WM_DELETE protocol to hide a "root window".
2002-11-16 14:30:18 +00:00

31 lines
552 B
C++

#ifndef __appwidget_hh
#define __appwidget_hh
#include "widget.hh"
namespace otk {
class OtkApplication;
class OtkAppWidget : public OtkWidget {
public:
OtkAppWidget(OtkApplication *app, Direction direction = Horizontal,
Cursor cursor = 0, int bevel_width = 1);
virtual ~OtkAppWidget();
virtual void show(void);
virtual void hide(void);
virtual void clientMessageHandler(const XClientMessageEvent &e);
private:
OtkApplication *_application;
Atom _wm_protocols;
Atom _wm_delete;
};
}
#endif // __appwidget_hh