aboutsummaryrefslogtreecommitdiff
path: root/util/fbcompose/BasePlugin.cc
diff options
context:
space:
mode:
authorGediminas Liktaras <gliktaras@gmail.com>2011-12-08 13:34:09 (GMT)
committerPaul Tagliamonte <paultag@fluxbox.org>2011-12-10 16:13:19 (GMT)
commitcd339169d1961eb508ea89cee2609ec6d0fc0c15 (patch)
tree01acd158a03fb17a72e067ff0b36701da75e49dc /util/fbcompose/BasePlugin.cc
parent85ac5c4b2c6a526992f483a6e91867dc2f82a19e (diff)
downloadfluxbox_paul-cd339169d1961eb508ea89cee2609ec6d0fc0c15.zip
fluxbox_paul-cd339169d1961eb508ea89cee2609ec6d0fc0c15.tar.bz2
fbcompose - A compositing addon for fluxbox window manager.
fbcompose(1) is an optional compositing addon for fluxbox window manager. It augments fluxbox with a number of graphical features. Most notably, fbcompose allows fluxbox to properly display applications that require compositing (docky, for example), adds support for true window transparency (as opposed to fluxbox's pseudo transparency) and provides a plugin framework to extend the compositor's functionality. As this is still a beta version of the compositor, the bugs are likely.
Diffstat (limited to 'util/fbcompose/BasePlugin.cc')
-rw-r--r--util/fbcompose/BasePlugin.cc83
1 files changed, 83 insertions, 0 deletions
diff --git a/util/fbcompose/BasePlugin.cc b/util/fbcompose/BasePlugin.cc
new file mode 100644
index 0000000..f54b54c
--- /dev/null
+++ b/util/fbcompose/BasePlugin.cc
@@ -0,0 +1,83 @@
1/** BasePlugin.cc file for the fluxbox compositor. */
2
3// Copyright (c) 2011 Gediminas Liktaras (gliktaras at gmail dot com)
4//
5// Permission is hereby granted, free of charge, to any person obtaining a copy
6// of this software and associated documentation files (the "Software"), to deal
7// in the Software without restriction, including without limitation the rights
8// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9// copies of the Software, and to permit persons to whom the Software is
10// furnished to do so, subject to the following conditions:
11//
12// The above copyright notice and this permission notice shall be included in
13// all copies or substantial portions of the Software.
14//
15// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21// THE SOFTWARE.
22
23
24#include "BasePlugin.hh"
25
26#include "BaseScreen.hh"
27
28using namespace FbCompositor;
29
30
31//--- CONSTRUCTORS AND DESTRUCTORS ---------------------------------------------
32
33// Constructor.
34BasePlugin::BasePlugin(const BaseScreen &screen, const std::vector<FbTk::FbString> &/*args*/) :
35 m_screen(screen) {
36
37 m_display = (Display*)(screen.display());
38}
39
40// Destructor.
41BasePlugin::~BasePlugin() { }
42
43
44//--- WINDOW EVENT CALLBACKS ---------------------------------------------------
45
46// Called, whenever a window becomes ignored.
47void BasePlugin::windowBecameIgnored(const BaseCompWindow &/*window*/) { }
48
49// Called, whenever a window is circulated.
50void BasePlugin::windowCirculated(const BaseCompWindow &/*window*/, int /*place*/) { }
51
52// Called, whenever a new window is created.
53void BasePlugin::windowCreated(const BaseCompWindow &/*window*/) { }
54
55// Called, whenever a window is damaged.
56void BasePlugin::windowDamaged(const BaseCompWindow &/*window*/) { }
57
58// Called, whenever a window is destroyed.
59void BasePlugin::windowDestroyed(const BaseCompWindow &/*window*/) { }
60
61// Called, whenever a window is mapped.
62void BasePlugin::windowMapped(const BaseCompWindow &/*window*/) { }
63
64// Called, whenever window's property is changed.
65void BasePlugin::windowPropertyChanged(const BaseCompWindow &/*window*/, Atom /*property*/, int /*state*/) { }
66
67// Called, whenever a window is reconfigured.
68void BasePlugin::windowReconfigured(const BaseCompWindow &/*window*/) { }
69
70// Called, whenever window's shape changes.
71void BasePlugin::windowShapeChanged(const BaseCompWindow &/*window*/) { }
72
73// Called, whenever a window is unmapped.
74void BasePlugin::windowUnmapped(const BaseCompWindow &/*window*/) { }
75
76
77//--- SCREEN CHANGES -----------------------------------------------------------
78
79// Notifies the plugin of a background change.
80void BasePlugin::setRootPixmapChanged() { }
81
82// Notifies the plugin of a root window change.
83void BasePlugin::setRootWindowSizeChanged() { }