diff options
author | mathias <mathias> | 2005-01-12 06:22:26 (GMT) |
---|---|---|
committer | mathias <mathias> | 2005-01-12 06:22:26 (GMT) |
commit | e0550eb0982eddb7944f069a38e60170d20c4daf (patch) | |
tree | 36b83db4dc5d3e5aa65af5fcb5cce4a791c82235 | |
parent | 6afde5c5201f69c41ea2ebf6db4e76507ce10ba1 (diff) | |
download | fluxbox_paul-e0550eb0982eddb7944f069a38e60170d20c4daf.zip fluxbox_paul-e0550eb0982eddb7944f069a38e60170d20c4daf.tar.bz2 |
cosmetic change
-rw-r--r-- | src/FbTk/GContext.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/FbTk/GContext.cc b/src/FbTk/GContext.cc index 5f6f3b9..838c92e 100644 --- a/src/FbTk/GContext.cc +++ b/src/FbTk/GContext.cc | |||
@@ -34,11 +34,10 @@ namespace FbTk { | |||
34 | Display *GContext::m_display = 0; | 34 | Display *GContext::m_display = 0; |
35 | 35 | ||
36 | GContext::GContext(const FbTk::FbDrawable &drawable): | 36 | GContext::GContext(const FbTk::FbDrawable &drawable): |
37 | m_gc(XCreateGC(m_display != 0 ? m_display : FbTk::App::instance()->display(), | 37 | m_gc(XCreateGC(drawable.display(), drawable.drawable(), 0, 0)) { |
38 | drawable.drawable(), | 38 | |
39 | 0, 0)) { | ||
40 | if (m_display == 0) | 39 | if (m_display == 0) |
41 | m_display = FbTk::App::instance()->display(); | 40 | m_display = drawable.display(); |
42 | 41 | ||
43 | setGraphicsExposure(false); | 42 | setGraphicsExposure(false); |
44 | } | 43 | } |