diff options
author | markt <markt> | 2007-01-06 19:03:33 (GMT) |
---|---|---|
committer | markt <markt> | 2007-01-06 19:03:33 (GMT) |
commit | 94e2c89053325beeb9f79d2e682adf614f636ca8 (patch) | |
tree | b778a387684ef8baef35e318c75de1810408a7f4 /src/FbTk/Menu.cc | |
parent | 8db2d4f26eae2d608e864aabf6218ad461c4da6b (diff) | |
download | fluxbox-94e2c89053325beeb9f79d2e682adf614f636ca8.zip fluxbox-94e2c89053325beeb9f79d2e682adf614f636ca8.tar.bz2 |
make "force pseudotransparency" menu item work immediately
Diffstat (limited to 'src/FbTk/Menu.cc')
-rw-r--r-- | src/FbTk/Menu.cc | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/FbTk/Menu.cc b/src/FbTk/Menu.cc index 9206ade..e7fc6d8 100644 --- a/src/FbTk/Menu.cc +++ b/src/FbTk/Menu.cc | |||
@@ -1099,14 +1099,18 @@ void Menu::keyPressEvent(XKeyEvent &event) { | |||
1099 | 1099 | ||
1100 | void Menu::reconfigure() { | 1100 | void Menu::reconfigure() { |
1101 | 1101 | ||
1102 | if (FbTk::Transparent::haveComposite()) | 1102 | if (FbTk::Transparent::haveComposite()) { |
1103 | menu.window.setOpaque(alpha()); | 1103 | menu.window.setOpaque(alpha()); |
1104 | menu.title.setAlpha(255); | ||
1105 | menu.frame.setAlpha(255); | ||
1106 | } else { | ||
1107 | menu.window.setOpaque(255); | ||
1108 | menu.title.setAlpha(alpha()); | ||
1109 | menu.frame.setAlpha(alpha()); | ||
1110 | } | ||
1104 | 1111 | ||
1105 | m_need_update = true; // redraw items | 1112 | m_need_update = true; // redraw items |
1106 | 1113 | ||
1107 | menu.title.setAlpha(alpha()); | ||
1108 | menu.frame.setAlpha(alpha()); | ||
1109 | |||
1110 | menu.window.setBorderColor(theme().borderColor()); | 1114 | menu.window.setBorderColor(theme().borderColor()); |
1111 | menu.title.setBorderColor(theme().borderColor()); | 1115 | menu.title.setBorderColor(theme().borderColor()); |
1112 | menu.frame.setBorderColor(theme().borderColor()); | 1116 | menu.frame.setBorderColor(theme().borderColor()); |