summaryrefslogtreecommitdiff
path: root/src/fluxbox.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/fluxbox.cc')
-rw-r--r--src/fluxbox.cc24
1 files changed, 22 insertions, 2 deletions
diff --git a/src/fluxbox.cc b/src/fluxbox.cc
index 2ff4b03..5ba27b4 100644
--- a/src/fluxbox.cc
+++ b/src/fluxbox.cc
@@ -22,7 +22,7 @@
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: fluxbox.cc,v 1.41 2002/03/19 00:16:44 fluxgen Exp $ 25// $Id: fluxbox.cc,v 1.42 2002/03/19 14:30:43 fluxgen Exp $
26 26
27//Use some GNU extensions 27//Use some GNU extensions
28#ifndef _GNU_SOURCE 28#ifndef _GNU_SOURCE
@@ -1881,7 +1881,13 @@ void Fluxbox::save_rc(void) {
1881 sprintf(rc_string, "session.screen%d.slit.autoHide: %s", screen_number, 1881 sprintf(rc_string, "session.screen%d.slit.autoHide: %s", screen_number,
1882 ((screen->getSlit()->doAutoHide()) ? "True" : "False")); 1882 ((screen->getSlit()->doAutoHide()) ? "True" : "False"));
1883 XrmPutLineResource(&new_blackboxrc, rc_string); 1883 XrmPutLineResource(&new_blackboxrc, rc_string);
1884 1884
1885 #ifdef XINERAMA
1886 sprintf(rc_string, "session.screen%d.slit.onHead: %d", screen_number,
1887 screen->getSlitOnHead());
1888 XrmPutLineResource(&new_blackboxrc, rc_string);
1889 #endif // XINERAMA
1890
1885 #endif // SLIT 1891 #endif // SLIT
1886 1892
1887 sprintf(rc_string, "session.screen%d.rowPlacementDirection: %s", screen_number, 1893 sprintf(rc_string, "session.screen%d.rowPlacementDirection: %s", screen_number,
@@ -2243,6 +2249,20 @@ void Fluxbox::load_rc(BScreen *screen) {
2243 screen->saveSlitAutoHide(False); 2249 screen->saveSlitAutoHide(False);
2244 else 2250 else
2245 screen->saveSlitAutoHide(False); 2251 screen->saveSlitAutoHide(False);
2252
2253 #ifdef XINERAMA
2254 int tmp_head;
2255 sprintf(name_lookup, "session.screen%d.slit.onHead", screen_number);
2256 sprintf(class_lookup, "Session.Screen%d.Slit.OnHead", screen_number);
2257 if (XrmGetResource(*database, name_lookup, class_lookup, &value_type,
2258 &value)) {
2259 if (sscanf(value.addr, "%d", &tmp_head) != 1)
2260 tmp_head = 0;
2261 } else
2262 tmp_head = 0;
2263 screen->saveSlitOnHead(tmp_head);
2264 #endif // XINERAMA
2265
2246#endif // SLIT 2266#endif // SLIT
2247 2267
2248#ifdef HAVE_STRFTIME 2268#ifdef HAVE_STRFTIME