diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2017-06-30 09:10:26 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2017-06-30 09:10:26 +0200 |
commit | 58df0d3172ad548b85627e5bb0b92a27a6072736 (patch) | |
tree | 76d621778d30e541ab5bdce539b38bed27833abf /src/gui/desktop.c | |
parent | 587f8d3dbf25408100496854c8803ce3c918ec4f (diff) | |
download | abaos-58df0d3172ad548b85627e5bb0b92a27a6072736.tar.gz abaos-58df0d3172ad548b85627e5bb0b92a27a6072736.tar.bz2 |
added a window to gui which is draggable by the mouse
Diffstat (limited to 'src/gui/desktop.c')
-rw-r--r-- | src/gui/desktop.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/desktop.c b/src/gui/desktop.c index 0c0aa01..6592b52 100644 --- a/src/gui/desktop.c +++ b/src/gui/desktop.c @@ -60,6 +60,7 @@ void desktop_draw( void *obj, graphics_context_t *context ) void desktop_on_mouse_down( void *obj, const int x, const int y ) { + composite_widget_on_mouse_down( obj, x, y ); } void desktop_on_mouse_up( void *obj, const int x, const int y ) @@ -73,4 +74,6 @@ void desktop_on_mouse_move( void *obj, const int old_x, const int old_y, const i desktop->mouse_x = x; desktop->mouse_y = y; + + composite_widget_on_mouse_move( obj, old_x, old_y, x, y ); } |