all repos — fluxbox @ 033a6dc46275923dbaf125d8e87de606eee10f09

custom fork of the fluxbox windowmanager

initiate cursors and changed to FbTk EventHandler with SignalEvent
fluxgen fluxgen
commit

033a6dc46275923dbaf125d8e87de606eee10f09

parent

6664591b56e34921eb8f4336c21ecd0a94c6e084

1 files changed, 12 insertions(+), 6 deletions(-)

jump to
M src/fluxbox.ccsrc/fluxbox.cc

@@ -22,7 +22,8 @@ // 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: fluxbox.cc,v 1.69 2002/08/16 11:09:25 fluxgen Exp $ +// $Id: fluxbox.cc,v 1.70 2002/08/17 22:14:00 fluxgen Exp $ + #include "fluxbox.hh"

@@ -38,7 +39,6 @@ #include "Workspacemenu.hh"

#include "StringUtil.hh" #include "Resource.hh" #include "XrmDatabaseHelper.hh" - #ifdef SLIT #include "Slit.hh" #endif // SLIT

@@ -52,12 +52,13 @@ #ifdef HAVE_CONFIG_H

#include "../config.h" #endif // HAVE_CONFIG_H +// X headers #include <X11/Xlib.h> #include <X11/Xutil.h> #include <X11/Xresource.h> #include <X11/Xatom.h> #include <X11/keysym.h> - +#include <X11/cursorfont.h> #ifdef SHAPE #include <X11/extensions/shape.h> #endif // SHAPE

@@ -389,6 +390,11 @@ "Fluxbox::Fluxbox: no managable screens found, aborting.\n"));

throw static_cast<int>(3); } + //setup cursor bitmaps + cursor.session = XCreateFontCursor(getXDisplay(), XC_left_ptr); + cursor.move = XCreateFontCursor(getXDisplay(), XC_fleur); + cursor.ll_angle = XCreateFontCursor(getXDisplay(), XC_ll_angle); + cursor.lr_angle = XCreateFontCursor(getXDisplay(), XC_lr_angle); XSynchronize(getXDisplay(), False); XSync(getXDisplay(), False);

@@ -525,7 +531,7 @@ }

} } -void Fluxbox::process_event(XEvent *e) { +void Fluxbox::handleEvent(XEvent * const e) { if ((masked == e->xany.window) && masked_window && (e->type == MotionNotify)) {

@@ -1570,11 +1576,11 @@ return true;

} #endif //!NEWWMSPEC -void Fluxbox::handleSignal(int sig) { +void Fluxbox::handleEvent(SignalEvent * const sig) { I18n *i18n = I18n::instance(); static int re_enter = 0; - switch (sig) { + switch (sig->signum) { case SIGCHLD: // we don't want the child process to kill us waitpid(-1, 0, WNOHANG | WUNTRACED); break;