diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-11-10 12:20:29 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-11-10 12:20:29 +0000 |
| commit | b067510b6114844945381293227783bf9fd7a806 (patch) | |
| tree | 5efde47d042e0afc0689a2af1a26f505e146e67d /src/openbox.cc | |
| parent | 00b96c7846e715698d0f635887a3eff009deb0c8 (diff) | |
cleanups.
OBScreen almost ready for some action
Diffstat (limited to 'src/openbox.cc')
| -rw-r--r-- | src/openbox.cc | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/openbox.cc b/src/openbox.cc index ee2fffb5..6f42bc20 100644 --- a/src/openbox.cc +++ b/src/openbox.cc @@ -10,6 +10,8 @@ #include "otk/display.hh" extern "C" { +#include <X11/cursorfont.h> + #ifdef HAVE_STDIO_H # include <stdio.h> #endif // HAVE_STDIO_H @@ -96,7 +98,14 @@ Openbox::Openbox(int argc, char **argv) sigaction(SIGHUP, &action, (struct sigaction *) 0); _property = new otk::OBProperty(); - + + // create the mouse cursors we'll use + _cursors.session = XCreateFontCursor(otk::OBDisplay::display, XC_left_ptr); + _cursors.move = XCreateFontCursor(otk::OBDisplay::display, XC_fleur); + _cursors.ll_angle = XCreateFontCursor(otk::OBDisplay::display, XC_ll_angle); + _cursors.lr_angle = XCreateFontCursor(otk::OBDisplay::display, XC_lr_angle); + _cursors.ul_angle = XCreateFontCursor(otk::OBDisplay::display, XC_ul_angle); + _cursors.ur_angle = XCreateFontCursor(otk::OBDisplay::display, XC_ur_angle); _state = State_Normal; // done starting } |
