1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
$NetBSD: patch-ac,v 1.9 2007/11/01 13:08:05 rillig Exp $
--- src/fluxbox.cc.orig 2007-03-19 20:57:09.000000000 +0100
+++ src/fluxbox.cc 2007-10-31 00:54:40.610976000 +0100
@@ -94,7 +94,8 @@ class Toolbar { };
#ifdef SHAPE
#include <X11/extensions/shape.h>
#endif // SHAPE
-#ifdef HAVE_RANDR
+#undef HAVE_RANDR
+#if defined(HAVE_RANDR) && !defined(__sun)
#include <X11/extensions/Xrandr.h>
#endif // HAVE_RANDR
@@ -596,11 +597,11 @@ void Fluxbox::setupConfigFiles() {
bool create_init = false, create_keys = false, create_menu = false;
- string dirname = getenv("HOME") + string("/.") + m_RC_PATH + "/";
+ string dirname = getenv("HOME") + string("/.") + m_RC_PATH;
string init_file, keys_file, menu_file, slitlist_file;
- init_file = dirname + m_RC_INIT_FILE;
- keys_file = dirname + "keys";
- menu_file = dirname + "menu";
+ init_file = dirname + "/" + m_RC_INIT_FILE;
+ keys_file = dirname + "/" + "keys";
+ menu_file = dirname + "/" + "menu";
struct stat buf;
@@ -1349,7 +1350,7 @@ void Fluxbox::saveWindowSearchGroup(Wind
}
void Fluxbox::saveGroupSearch(Window window, WinClient *data) {
- m_group_search.insert(pair<Window, WinClient *>(window, data));
+ m_group_search.insert(std::multimap<Window, WinClient *>::value_type(window, data));
}
|