aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2003-05-17 10:43:20 (GMT)
committerfluxgen <fluxgen>2003-05-17 10:43:20 (GMT)
commit4ec9bdbee2cfc2f558f6b85c1dae9521595fa353 (patch)
tree1470756737557cb216f88d7e34ddf9b33c5ea493 /src
parentf1a34dc2f6d88f64dd9efd79ab804f71049b21c2 (diff)
downloadfluxbox_paul-4ec9bdbee2cfc2f558f6b85c1dae9521595fa353.zip
fluxbox_paul-4ec9bdbee2cfc2f558f6b85c1dae9521595fa353.tar.bz2
added set and unsetCursor
Diffstat (limited to 'src')
-rw-r--r--src/FbTk/FbWindow.cc10
-rw-r--r--src/FbTk/FbWindow.hh7
2 files changed, 15 insertions, 2 deletions
diff --git a/src/FbTk/FbWindow.cc b/src/FbTk/FbWindow.cc
index 14298ef..5634a5d 100644
--- a/src/FbTk/FbWindow.cc
+++ b/src/FbTk/FbWindow.cc
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: FbWindow.cc,v 1.17 2003/05/13 14:07:24 fluxgen Exp $ 22// $Id: FbWindow.cc,v 1.18 2003/05/17 10:43:20 fluxgen Exp $
23 23
24#include "FbWindow.hh" 24#include "FbWindow.hh"
25#include "EventManager.hh" 25#include "EventManager.hh"
@@ -177,6 +177,14 @@ void FbWindow::raise() {
177 XRaiseWindow(s_display, m_window); 177 XRaiseWindow(s_display, m_window);
178} 178}
179 179
180void FbWindow::setCursor(Cursor cur) {
181 XDefineCursor(s_display, window(), cur);
182}
183
184void FbWindow::unsetCursor() {
185 XUndefineCursor(s_display, window());
186}
187
180int FbWindow::screenNumber() const { 188int FbWindow::screenNumber() const {
181 return m_screen_num; 189 return m_screen_num;
182} 190}
diff --git a/src/FbTk/FbWindow.hh b/src/FbTk/FbWindow.hh
index eeb4250..f8a5505 100644
--- a/src/FbTk/FbWindow.hh
+++ b/src/FbTk/FbWindow.hh
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: FbWindow.hh,v 1.15 2003/05/12 04:20:25 fluxgen Exp $ 22// $Id: FbWindow.hh,v 1.16 2003/05/17 10:42:34 fluxgen Exp $
23 23
24#ifndef FBTK_FBWINDOW_HH 24#ifndef FBTK_FBWINDOW_HH
25#define FBTK_FBWINDOW_HH 25#define FBTK_FBWINDOW_HH
@@ -85,6 +85,11 @@ public:
85 virtual void lower(); 85 virtual void lower();
86 virtual void raise(); 86 virtual void raise();
87 87
88 /// defines a cursor for this window
89 void setCursor(Cursor cur);
90 /// uses the parents cursor instead
91 void unsetCursor();
92
88 /// @return parent FbWindow 93 /// @return parent FbWindow
89 const FbWindow *parent() const { return m_parent; } 94 const FbWindow *parent() const { return m_parent; }
90 /// @return real X window 95 /// @return real X window