aboutsummaryrefslogtreecommitdiff
path: root/src/fluxbox.cc
diff options
context:
space:
mode:
authorMark Tiefenbruck <mark@fluxbox.org>2008-08-22 13:12:01 (GMT)
committerMark Tiefenbruck <mark@fluxbox.org>2008-08-22 13:12:01 (GMT)
commitf1ff5ff3b2947ca31f0718e37bb0b2668303247f (patch)
tree13c3179dd6bc492db13e5e4c76b148c417d0c8c9 /src/fluxbox.cc
parent5a877163c77e4f5d13e5f01a01b254fefddf4235 (diff)
downloadfluxbox-f1ff5ff3b2947ca31f0718e37bb0b2668303247f.zip
fluxbox-f1ff5ff3b2947ca31f0718e37bb0b2668303247f.tar.bz2
add -sync command line option for debugging X issues
Diffstat (limited to 'src/fluxbox.cc')
-rw-r--r--src/fluxbox.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/fluxbox.cc b/src/fluxbox.cc
index d9deea7..27a0b68 100644
--- a/src/fluxbox.cc
+++ b/src/fluxbox.cc
@@ -179,7 +179,8 @@ int handleXErrors(Display *d, XErrorEvent *e) {
179//static singleton var 179//static singleton var
180Fluxbox *Fluxbox::s_singleton=0; 180Fluxbox *Fluxbox::s_singleton=0;
181 181
182Fluxbox::Fluxbox(int argc, char **argv, const char *dpy_name, const char *rcfilename) 182Fluxbox::Fluxbox(int argc, char **argv, const char *dpy_name,
183 const char *rcfilename, bool xsync)
183 : FbTk::App(dpy_name), 184 : FbTk::App(dpy_name),
184 m_fbatoms(new FbAtoms()), 185 m_fbatoms(new FbAtoms()),
185 m_resourcemanager(rcfilename, true), 186 m_resourcemanager(rcfilename, true),
@@ -263,7 +264,8 @@ Fluxbox::Fluxbox(int argc, char **argv, const char *dpy_name, const char *rcfile
263 m_reconfig_timer.setCommand(reconfig_cmd); 264 m_reconfig_timer.setCommand(reconfig_cmd);
264 m_reconfig_timer.fireOnce(true); 265 m_reconfig_timer.fireOnce(true);
265 266
266 // XSynchronize(disp, True); 267 if (xsync)
268 XSynchronize(disp, True);
267 269
268 s_singleton = this; 270 s_singleton = this;
269 m_have_shape = false; 271 m_have_shape = false;