all repos — fluxbox @ e0550eb0982eddb7944f069a38e60170d20c4daf

custom fork of the fluxbox windowmanager

cosmetic change
mathias mathias
commit

e0550eb0982eddb7944f069a38e60170d20c4daf

parent

6afde5c5201f69c41ea2ebf6db4e76507ce10ba1

1 files changed, 3 insertions(+), 4 deletions(-)

jump to
M src/FbTk/GContext.ccsrc/FbTk/GContext.cc

@@ -34,11 +34,10 @@

Display *GContext::m_display = 0; GContext::GContext(const FbTk::FbDrawable &drawable): - m_gc(XCreateGC(m_display != 0 ? m_display : FbTk::App::instance()->display(), - drawable.drawable(), - 0, 0)) { + m_gc(XCreateGC(drawable.display(), drawable.drawable(), 0, 0)) { + if (m_display == 0) - m_display = FbTk::App::instance()->display(); + m_display = drawable.display(); setGraphicsExposure(false); }