all repos — fluxbox @ 4ec9bdbee2cfc2f558f6b85c1dae9521595fa353

custom fork of the fluxbox windowmanager

added set and unsetCursor
fluxgen fluxgen
commit

4ec9bdbee2cfc2f558f6b85c1dae9521595fa353

parent

f1a34dc2f6d88f64dd9efd79ab804f71049b21c2

2 files changed, 15 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.17 2003/05/13 14:07:24 fluxgen Exp $ +// $Id: FbWindow.cc,v 1.18 2003/05/17 10:43:20 fluxgen Exp $ #include "FbWindow.hh" #include "EventManager.hh"

@@ -175,6 +175,14 @@ }

void FbWindow::raise() { XRaiseWindow(s_display, m_window); +} + +void FbWindow::setCursor(Cursor cur) { + XDefineCursor(s_display, window(), cur); +} + +void FbWindow::unsetCursor() { + XUndefineCursor(s_display, window()); } int FbWindow::screenNumber() const {
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.15 2003/05/12 04:20:25 fluxgen Exp $ +// $Id: FbWindow.hh,v 1.16 2003/05/17 10:42:34 fluxgen Exp $ #ifndef FBTK_FBWINDOW_HH #define FBTK_FBWINDOW_HH

@@ -84,6 +84,11 @@ virtual void resize(unsigned int width, unsigned int height);

virtual void moveResize(int x, int y, unsigned int width, unsigned int height); virtual void lower(); virtual void raise(); + + /// defines a cursor for this window + void setCursor(Cursor cur); + /// uses the parents cursor instead + void unsetCursor(); /// @return parent FbWindow const FbWindow *parent() const { return m_parent; }