aboutsummaryrefslogtreecommitdiff
path: root/src/Window.hh
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2003-05-10 14:27:57 (GMT)
committerfluxgen <fluxgen>2003-05-10 14:27:57 (GMT)
commit08b94c624320a6f0bd61d6ae716a3b2fc6f3ded8 (patch)
treeebedc3c2fc4bda0221927c9b9f5ef9c2a23a013a /src/Window.hh
parentc9638d0473d9fb02ddb062b7db74bda299f027f4 (diff)
downloadfluxbox-08b94c624320a6f0bd61d6ae716a3b2fc6f3ded8.zip
fluxbox-08b94c624320a6f0bd61d6ae716a3b2fc6f3ded8.tar.bz2
moved BlackboxHints from BaseDisplay
Diffstat (limited to 'src/Window.hh')
-rw-r--r--src/Window.hh32
1 files changed, 28 insertions, 4 deletions
diff --git a/src/Window.hh b/src/Window.hh
index cc7eff9..81e52df 100644
--- a/src/Window.hh
+++ b/src/Window.hh
@@ -22,12 +22,11 @@
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE. 23// DEALINGS IN THE SOFTWARE.
24 24
25// $Id: Window.hh,v 1.67 2003/05/07 16:21:26 rathnor Exp $ 25// $Id: Window.hh,v 1.68 2003/05/10 14:23:29 fluxgen Exp $
26 26
27#ifndef WINDOW_HH 27#ifndef WINDOW_HH
28#define WINDOW_HH 28#define WINDOW_HH
29 29
30#include "BaseDisplay.hh"
31#include "Timer.hh" 30#include "Timer.hh"
32#include "Menu.hh" 31#include "Menu.hh"
33#include "Subject.hh" 32#include "Subject.hh"
@@ -100,6 +99,31 @@ public:
100 MwmDecorMaximize = (1l << 6) /// maximize 99 MwmDecorMaximize = (1l << 6) /// maximize
101 }; 100 };
102 101
102 /// attributes for BlackboxHints
103 enum Attrib {
104 ATTRIB_SHADED = 0x01,
105 ATTRIB_MAXHORIZ = 0x02,
106 ATTRIB_MAXVERT = 0x04,
107 ATTRIB_OMNIPRESENT = 0x08,
108 ATTRIB_WORKSPACE = 0x10,
109 ATTRIB_STACK = 0x20,
110 ATTRIB_DECORATION = 0x40
111 };
112
113 static const int PropBlackboxHintsElements = 5;
114 static const int PropBlackboxAttributesElements = 8;
115
116 typedef struct _blackbox_hints {
117 unsigned long flags, attrib, workspace, stack;
118 int decoration;
119 } BlackboxHints;
120
121 typedef struct _blackbox_attributes {
122 unsigned long flags, attrib, workspace, stack;
123 int premax_x, premax_y;
124 unsigned int premax_w, premax_h;
125 } BlackboxAttributes;
126
103 typedef std::list<WinClient *> ClientList; 127 typedef std::list<WinClient *> ClientList;
104 128
105 /// create a window from a client 129 /// create a window from a client
@@ -174,7 +198,7 @@ public:
174 void moveResize(int x, int y, unsigned int width, unsigned int height); 198 void moveResize(int x, int y, unsigned int width, unsigned int height);
175 199
176 void setWorkspace(int n); 200 void setWorkspace(int n);
177 void changeBlackboxHints(const BaseDisplay::BlackboxHints &bh); 201 void changeBlackboxHints(const BlackboxHints &bh);
178 void restoreAttributes(); 202 void restoreAttributes();
179 void showMenu(int mx, int my); 203 void showMenu(int mx, int my);
180 // popup menu on last button press position 204 // popup menu on last button press position
@@ -388,7 +412,7 @@ private:
388 BScreen &screen; /// screen on which this window exist 412 BScreen &screen; /// screen on which this window exist
389 FbTk::Timer timer; 413 FbTk::Timer timer;
390 Display *display; /// display connection 414 Display *display; /// display connection
391 BaseDisplay::BlackboxAttributes blackbox_attrib; 415 BlackboxAttributes blackbox_attrib;
392 416
393 Time lastButtonPressTime; 417 Time lastButtonPressTime;
394 FbTk::Menu m_windowmenu; 418 FbTk::Menu m_windowmenu;