aboutsummaryrefslogtreecommitdiff
path: root/src/fluxbox.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/fluxbox.cc')
-rw-r--r--src/fluxbox.cc22
1 files changed, 14 insertions, 8 deletions
diff --git a/src/fluxbox.cc b/src/fluxbox.cc
index 61b740a..78a482e 100644
--- a/src/fluxbox.cc
+++ b/src/fluxbox.cc
@@ -164,8 +164,14 @@ int handleXErrors(Display *d, XErrorEvent *e) {
164 char errtxt[128]; 164 char errtxt[128];
165 165
166 XGetErrorText(d, e->error_code, errtxt, 128); 166 XGetErrorText(d, e->error_code, errtxt, 128);
167 cerr<<"Fluxbox: X Error: "<<errtxt<<"("<<(int)e->error_code<<") opcodes "<< 167 cerr << "Fluxbox: X Error: "
168 (int)e->request_code<<"/"<<(int)e->minor_code<<" resource 0x"<<hex<<(int)e->resourceid<<dec<<endl; 168 << errtxt
169 << "(" <<(int)e->error_code << ") opcodes "
170 << (int)e->request_code
171 << "/"
172 << (int)e->minor_code
173 << " resource 0x" << hex <<(int)e->resourceid
174 << dec << endl;
169// if (e->error_code != 9 && e->error_code != 183) 175// if (e->error_code != 9 && e->error_code != 183)
170// kill(0, 2); 176// kill(0, 2);
171 } 177 }
@@ -1156,7 +1162,7 @@ void Fluxbox::shutdown() {
1156/// saves resources 1162/// saves resources
1157void Fluxbox::save_rc() { 1163void Fluxbox::save_rc() {
1158 _FB_USES_NLS; 1164 _FB_USES_NLS;
1159 XrmDatabase new_blackboxrc = 0; 1165 XrmDatabase new_rc = 0;
1160 1166
1161 string dbfile(getRcFilename()); 1167 string dbfile(getRcFilename());
1162 1168
@@ -1187,15 +1193,15 @@ void Fluxbox::save_rc() {
1187 workspaces_string += ','; 1193 workspaces_string += ',';
1188 } 1194 }
1189 1195
1190 XrmPutLineResource(&new_blackboxrc, workspaces_string.c_str()); 1196 XrmPutLineResource(&new_rc, workspaces_string.c_str());
1191 1197
1192 } 1198 }
1193 1199
1194 XrmDatabase old_blackboxrc = XrmGetFileDatabase(dbfile.c_str()); 1200 XrmDatabase old_rc = XrmGetFileDatabase(dbfile.c_str());
1195 1201
1196 XrmMergeDatabases(new_blackboxrc, &old_blackboxrc); //merge database together 1202 XrmMergeDatabases(new_rc, &old_rc); //merge database together
1197 XrmPutFileDatabase(old_blackboxrc, dbfile.c_str()); 1203 XrmPutFileDatabase(old_rc, dbfile.c_str());
1198 XrmDestroyDatabase(old_blackboxrc); 1204 XrmDestroyDatabase(old_rc);
1199 1205
1200 fbdbg<<__FILE__<<"("<<__LINE__<<"): ------------ SAVING DONE"<<endl; 1206 fbdbg<<__FILE__<<"("<<__LINE__<<"): ------------ SAVING DONE"<<endl;
1201 1207