summaryrefslogtreecommitdiff
path: root/src/FbWinFrame.cc
diff options
context:
space:
mode:
authorJim Ramsay <i.am@jimramsay.com>2009-05-04 19:44:57 (GMT)
committerJim Ramsay <i.am@jimramsay.com>2009-05-06 12:40:29 (GMT)
commit51956433627918cb6f0fddeb09b1438facd28b25 (patch)
treed60aa8dc4a0f27bafe9b564c2aac311ed54da7ae /src/FbWinFrame.cc
parentdfa360e8905509e3e19db4279fc4066e52014676 (diff)
downloadfluxbox_lack-51956433627918cb6f0fddeb09b1438facd28b25.zip
fluxbox_lack-51956433627918cb6f0fddeb09b1438facd28b25.tar.bz2
Let xcompmgr see client windows with ARGB visuals
We accomplish this by creating the outer-most parent window of FbWinFrame with a 32-bit visual. Everything else fluxbox does (decor, menus, colors, fonts, etc) is still at most 24-bit (no alpha chanel), for now, by falling back to the screen's default visual and not inheriting directly from the parent FbWinFrame window.
Diffstat (limited to 'src/FbWinFrame.cc')
-rw-r--r--src/FbWinFrame.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/FbWinFrame.cc b/src/FbWinFrame.cc
index 2975252..ac457be 100644
--- a/src/FbWinFrame.cc
+++ b/src/FbWinFrame.cc
@@ -51,7 +51,10 @@ FbWinFrame::FbWinFrame(BScreen &screen, WindowState &state,
51 m_window(theme->screenNum(), state.x, state.y, state.width, state.height, 51 m_window(theme->screenNum(), state.x, state.y, state.width, state.height,
52 ButtonPressMask | ButtonReleaseMask | 52 ButtonPressMask | ButtonReleaseMask |
53 ButtonMotionMask | EnterWindowMask | 53 ButtonMotionMask | EnterWindowMask |
54 LeaveWindowMask, true), 54 LeaveWindowMask, true, false,
55 screen.rootWindow().depth(), InputOutput,
56 screen.rootWindow().visual(),
57 screen.rootWindow().colormap()),
55 m_layeritem(window(), *screen.layerManager().getLayer(Layer::NORMAL)), 58 m_layeritem(window(), *screen.layerManager().getLayer(Layer::NORMAL)),
56 m_titlebar(m_window, 0, 0, 100, 16, 59 m_titlebar(m_window, 0, 0, 100, 16,
57 ButtonPressMask | ButtonReleaseMask | 60 ButtonPressMask | ButtonReleaseMask |