all repos — fluxbox @ 5530ce6450d0d96f504d000a0cfe4fb29c6c323c

custom fork of the fluxbox windowmanager

alpha access function
fluxgen fluxgen
commit

5530ce6450d0d96f504d000a0cfe4fb29c6c323c

parent

ae6315acc324c16b617fe6b2f802182eed587bd0

2 files changed, 10 insertions(+), 2 deletions(-)

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

@@ -19,7 +19,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: FbWindow.cc,v 1.34 2004/05/24 13:09:32 rathnor Exp $ +// $Id: FbWindow.cc,v 1.35 2004/06/07 20:24:38 fluxgen Exp $ #include "FbWindow.hh"

@@ -249,6 +249,13 @@ m_transparent.reset(0); // destroy transparent object

#endif // HAVE_XRENDER } +unsigned char FbWindow::alpha() const { +#ifdef HAVE_XRENDER + if (m_transparent.get()) + return m_transparent->alpha(); +#endif // HAVE_XRENDER + return 255; +} FbWindow &FbWindow::operator = (const FbWindow &win) { m_parent = win.parent();
M src/FbTk/FbWindow.hhsrc/FbTk/FbWindow.hh

@@ -19,7 +19,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: FbWindow.hh,v 1.30 2004/05/17 15:01:32 rathnor Exp $ +// $Id: FbWindow.hh,v 1.31 2004/06/07 20:24:37 fluxgen Exp $ #ifndef FBTK_FBWINDOW_HH #define FBTK_FBWINDOW_HH

@@ -151,6 +151,7 @@ inline unsigned int width() const { return m_width; }

inline unsigned int height() const { return m_height; } inline unsigned int borderWidth() const { return m_border_width; } inline int depth() const { return m_depth; } + unsigned char alpha() const; int screenNumber() const; long eventMask() const; /// compare X window