diff options
author | fluxgen <fluxgen> | 2002-03-19 14:30:43 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2002-03-19 14:30:43 (GMT) |
commit | 95aeda26271cce3061a46a3ca0b122bc13c8f5c8 (patch) | |
tree | aaa01d20e77a2445a20a0522d86296b981049b8e /src/fluxbox.cc | |
parent | 1871169b06d8b9909ff26b761d24a40a65ef18f9 (diff) | |
download | fluxbox-95aeda26271cce3061a46a3ca0b122bc13c8f5c8.zip fluxbox-95aeda26271cce3061a46a3ca0b122bc13c8f5c8.tar.bz2 |
Xinerama support
Diffstat (limited to 'src/fluxbox.cc')
-rw-r--r-- | src/fluxbox.cc | 24 |
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 |