- printf("GUILE: MOTION: win %lx type %d modifiers %u x %d y %d\n",
- (long)e.window, (w ? w->type():-1), e.state, _dx, _dy);
-
- if (w && (w->type() == OBWidget::Type_Titlebar ||
- w->type() == OBWidget::Type_Label)) {
- OBClient *c = Openbox::instance->findClient(e.window);
- if (c) c->move(c->area().x() + _dx, c->area().y() + _dy);
- }
+ // maybe that should all be done via python tho..
+ // run the simple MOTION guile hook for now...
+ python_callback(Action_MouseMotion, e.window,
+ (OBWidget::WidgetType)(w ? w->type():-1),
+ e.state, e.x_root, e.y_root, e.time);