aboutsummaryrefslogtreecommitdiff
path: root/src/Screen.hh
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2002-01-10 12:49:15 (GMT)
committerfluxgen <fluxgen>2002-01-10 12:49:15 (GMT)
commitadd890ad213be267e0efae7ae8c958e1f2614efb (patch)
treefcec73a25498c796672d6a9c1898983c25221e64 /src/Screen.hh
parentaffb5bda338e4e9f805dd0e372ba0482f2b6cbc7 (diff)
downloadfluxbox-add890ad213be267e0efae7ae8c958e1f2614efb.zip
fluxbox-add890ad213be267e0efae7ae8c958e1f2614efb.tar.bz2
Fixed rootcommand
Diffstat (limited to 'src/Screen.hh')
-rw-r--r--src/Screen.hh41
1 files changed, 22 insertions, 19 deletions
diff --git a/src/Screen.hh b/src/Screen.hh
index 35a4a85..92f1849 100644
--- a/src/Screen.hh
+++ b/src/Screen.hh
@@ -22,29 +22,12 @@
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: Screen.hh,v 1.7 2002/01/09 14:11:20 fluxgen Exp $ 25// $Id: Screen.hh,v 1.8 2002/01/10 12:49:15 fluxgen Exp $
26 26
27#ifndef _SCREEN_HH_ 27#ifndef _SCREEN_HH_
28#define _SCREEN_HH_ 28#define _SCREEN_HH_
29 29
30 30
31
32#include <X11/Xlib.h>
33#include <X11/Xresource.h>
34
35#ifdef TIME_WITH_SYS_TIME
36# include <sys/time.h>
37# include <time.h>
38#else // !TIME_WITH_SYS_TIME
39# ifdef HAVE_SYS_TIME_H
40# include <sys/time.h>
41# else // !HAVE_SYS_TIME_H
42# include <time.h>
43# endif // HAVE_SYS_TIME_H
44#endif // TIME_WITH_SYS_TIME
45
46#include <stdio.h>
47
48#include "Theme.hh" 31#include "Theme.hh"
49 32
50// forward declaration 33// forward declaration
@@ -84,6 +67,24 @@ class BScreen;
84# include "Slit.hh" 67# include "Slit.hh"
85#endif // SLIT 68#endif // SLIT
86 69
70
71#include <X11/Xlib.h>
72#include <X11/Xresource.h>
73
74#ifdef TIME_WITH_SYS_TIME
75# include <sys/time.h>
76# include <time.h>
77#else // !TIME_WITH_SYS_TIME
78# ifdef HAVE_SYS_TIME_H
79# include <sys/time.h>
80# else // !HAVE_SYS_TIME_H
81# include <time.h>
82# endif // HAVE_SYS_TIME_H
83#endif // TIME_WITH_SYS_TIME
84
85#include <stdio.h>
86#include <string>
87
87class BScreen : public ScreenInfo { 88class BScreen : public ScreenInfo {
88public: 89public:
89 BScreen(Fluxbox *, int); 90 BScreen(Fluxbox *, int);
@@ -120,7 +121,7 @@ public:
120 inline const BColor *getBorderColor(void) { return &theme->getBorderColor(); } 121 inline const BColor *getBorderColor(void) { return &theme->getBorderColor(); }
121 inline BImageControl *getImageControl(void) { return image_control; } 122 inline BImageControl *getImageControl(void) { return image_control; }
122 inline Rootmenu *getRootmenu(void) { return rootmenu; } 123 inline Rootmenu *getRootmenu(void) { return rootmenu; }
123 124 inline std::string &getRootCommand(void) { return rootcommand; }
124#ifdef SLIT 125#ifdef SLIT
125 inline const Bool &isSlitOnTop(void) const { return resource.slit_on_top; } 126 inline const Bool &isSlitOnTop(void) const { return resource.slit_on_top; }
126 inline const Bool &doSlitAutoHide(void) const 127 inline const Bool &doSlitAutoHide(void) const
@@ -183,6 +184,7 @@ public:
183 { return resource.tab_alignment; } 184 { return resource.tab_alignment; }
184 185
185 inline void setRootColormapInstalled(Bool r) { root_colormap_installed = r; } 186 inline void setRootColormapInstalled(Bool r) { root_colormap_installed = r; }
187 inline void saveRootCommand(std::string rootcmd) { rootcommand = rootcmd; }
186 inline void saveSloppyFocus(Bool s) { resource.sloppy_focus = s; } 188 inline void saveSloppyFocus(Bool s) { resource.sloppy_focus = s; }
187 inline void saveSemiSloppyFocus(Bool s) { resource.semi_sloppy_focus = s; } 189 inline void saveSemiSloppyFocus(Bool s) { resource.semi_sloppy_focus = s; }
188 inline void saveAutoRaise(Bool a) { resource.auto_raise = a; } 190 inline void saveAutoRaise(Bool a) { resource.auto_raise = a; }
@@ -278,6 +280,7 @@ public:
278 280
279private: 281private:
280 Theme *theme; 282 Theme *theme;
283 std::string rootcommand;
281 284
282 Bool root_colormap_installed, managed, geom_visible; 285 Bool root_colormap_installed, managed, geom_visible;
283 GC opGC; 286 GC opGC;