diff options
author | Mathias Gumz <akira at fluxbox dot org> | 2008-08-14 05:52:39 (GMT) |
---|---|---|
committer | Mathias Gumz <akira at fluxbox dot org> | 2008-08-14 05:52:39 (GMT) |
commit | e169d33552c8e7070aa6e13da0187f2013b4cfc3 (patch) | |
tree | ae9e92c7e885791c7f47645184070cbcd441ab94 /src/fluxbox.hh | |
parent | c82e7c0080f8a5c14dcf95ec92dc42f59ea9dd8b (diff) | |
parent | 91ca3bc5c8e2b892a9a81b18246f72aba7deebfd (diff) | |
download | fluxbox-e169d33552c8e7070aa6e13da0187f2013b4cfc3.zip fluxbox-e169d33552c8e7070aa6e13da0187f2013b4cfc3.tar.bz2 |
Merge branch 'master' into to_push
Diffstat (limited to 'src/fluxbox.hh')
-rw-r--r-- | src/fluxbox.hh | 22 |
1 files changed, 3 insertions, 19 deletions
diff --git a/src/fluxbox.hh b/src/fluxbox.hh index d930ad1..fcbd368 100644 --- a/src/fluxbox.hh +++ b/src/fluxbox.hh | |||
@@ -120,6 +120,7 @@ public: | |||
120 | const std::string &getMenuFilename() const { return *m_rc_menufile; } | 120 | const std::string &getMenuFilename() const { return *m_rc_menufile; } |
121 | const std::string &getSlitlistFilename() const { return *m_rc_slitlistfile; } | 121 | const std::string &getSlitlistFilename() const { return *m_rc_slitlistfile; } |
122 | const std::string &getAppsFilename() const { return *m_rc_appsfile; } | 122 | const std::string &getAppsFilename() const { return *m_rc_appsfile; } |
123 | const std::string &getKeysFilename() const { return *m_rc_keyfile; } | ||
123 | int colorsPerChannel() const { return *m_rc_colors_per_channel; } | 124 | int colorsPerChannel() const { return *m_rc_colors_per_channel; } |
124 | int getTabsPadding() const { return *m_rc_tabs_padding; } | 125 | int getTabsPadding() const { return *m_rc_tabs_padding; } |
125 | 126 | ||
@@ -136,8 +137,6 @@ public: | |||
136 | void shutdown(); | 137 | void shutdown(); |
137 | void load_rc(BScreen &scr); | 138 | void load_rc(BScreen &scr); |
138 | void saveStyleFilename(const char *val) { m_rc_stylefile = (val == 0 ? "" : val); } | 139 | void saveStyleFilename(const char *val) { m_rc_stylefile = (val == 0 ? "" : val); } |
139 | void saveMenuFilename(const char *); | ||
140 | void clearMenuFilenames(); | ||
141 | void saveWindowSearch(Window win, WinClient *winclient); | 140 | void saveWindowSearch(Window win, WinClient *winclient); |
142 | // some windows relate to the group, not the client, so we record separately | 141 | // some windows relate to the group, not the client, so we record separately |
143 | // searchWindow on these windows will give the active client in the group | 142 | // searchWindow on these windows will give the active client in the group |
@@ -149,8 +148,6 @@ public: | |||
149 | void removeGroupSearch(Window win); | 148 | void removeGroupSearch(Window win); |
150 | void restart(const char *command = 0); | 149 | void restart(const char *command = 0); |
151 | void reconfigure(); | 150 | void reconfigure(); |
152 | void rereadMenu(bool show_after_reread = false); | ||
153 | /// reloads the menus if the timestamps changed | ||
154 | 151 | ||
155 | /// handle any system signal sent to the application | 152 | /// handle any system signal sent to the application |
156 | void handleSignal(int signum); | 153 | void handleSignal(int signum); |
@@ -176,11 +173,9 @@ public: | |||
176 | typedef std::list<BScreen *> ScreenList; | 173 | typedef std::list<BScreen *> ScreenList; |
177 | const ScreenList screenList() const { return m_screen_list; } | 174 | const ScreenList screenList() const { return m_screen_list; } |
178 | 175 | ||
179 | /// @return whether the timestamps on the menu changed | ||
180 | bool menuTimestampsChanged() const; | ||
181 | bool haveShape() const { return m_have_shape; } | 176 | bool haveShape() const { return m_have_shape; } |
182 | int shapeEventbase() const { return m_shape_eventbase; } | 177 | int shapeEventbase() const { return m_shape_eventbase; } |
183 | void getDefaultDataFilename(const char *name, std::string &) const; | 178 | std::string getDefaultDataFilename(const char *name) const; |
184 | // screen mouse was in at last key event | 179 | // screen mouse was in at last key event |
185 | BScreen *mouseScreen() { return m_mousescreen; } | 180 | BScreen *mouseScreen() { return m_mousescreen; } |
186 | // screen of window that last key event (i.e. focused window) went to | 181 | // screen of window that last key event (i.e. focused window) went to |
@@ -190,18 +185,9 @@ public: | |||
190 | AttentionNoticeHandler &attentionHandler() { return m_attention_handler; } | 185 | AttentionNoticeHandler &attentionHandler() { return m_attention_handler; } |
191 | 186 | ||
192 | private: | 187 | private: |
193 | |||
194 | typedef struct MenuTimestamp { | ||
195 | std::string filename; | ||
196 | time_t timestamp; | ||
197 | } MenuTimestamp; | ||
198 | |||
199 | |||
200 | |||
201 | std::string getRcFilename(); | 188 | std::string getRcFilename(); |
202 | void load_rc(); | 189 | void load_rc(); |
203 | 190 | ||
204 | void real_rereadMenu(); | ||
205 | void real_reconfigure(); | 191 | void real_reconfigure(); |
206 | 192 | ||
207 | void handleEvent(XEvent *xe); | 193 | void handleEvent(XEvent *xe); |
@@ -242,7 +228,6 @@ private: | |||
242 | // will have it's window being the group index | 228 | // will have it's window being the group index |
243 | std::multimap<Window, WinClient *> m_group_search; | 229 | std::multimap<Window, WinClient *> m_group_search; |
244 | 230 | ||
245 | std::list<MenuTimestamp *> m_menu_timestamps; | ||
246 | ScreenList m_screen_list; | 231 | ScreenList m_screen_list; |
247 | 232 | ||
248 | FluxboxWindow *m_masked_window; | 233 | FluxboxWindow *m_masked_window; |
@@ -251,7 +236,7 @@ private: | |||
251 | 236 | ||
252 | Atom m_fluxbox_pid; | 237 | Atom m_fluxbox_pid; |
253 | 238 | ||
254 | bool m_reconfigure_wait, m_reread_menu_wait; | 239 | bool m_reconfigure_wait; |
255 | Time m_last_time; | 240 | Time m_last_time; |
256 | Window m_masked; | 241 | Window m_masked; |
257 | std::string m_rc_file; ///< resource filename | 242 | std::string m_rc_file; ///< resource filename |
@@ -279,7 +264,6 @@ private: | |||
279 | bool m_starting; | 264 | bool m_starting; |
280 | bool m_restarting; | 265 | bool m_restarting; |
281 | bool m_shutdown; | 266 | bool m_shutdown; |
282 | bool m_show_menu_after_reread; | ||
283 | int m_server_grabs; | 267 | int m_server_grabs; |
284 | int m_randr_event_type; ///< the type number of randr event | 268 | int m_randr_event_type; ///< the type number of randr event |
285 | int m_shape_eventbase; ///< event base for shape events | 269 | int m_shape_eventbase; ///< event base for shape events |