]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/root.cpp
Pass coordinates relative to the receiving widget's geometry
[libs/gltk.git] / source / root.cpp
index a59c939b5b1415d1e918c7fe7c7a023652303ee6..bb3913c73fbf5db85fc85217a98dce872417666a 100644 (file)
@@ -10,7 +10,7 @@ Distributed under the LGPL
 namespace Msp {
 namespace GLtk {
 
-Root::Root(Resources &r, Window &w):
+Root::Root(Resources &r, Graphics::Window &w):
        Panel(r),
        window(w)
 {
@@ -21,6 +21,8 @@ Root::Root(Resources &r, Window &w):
        window.signal_button_press.connect(sigc::mem_fun(this, &Root::button_press_event));
        window.signal_button_release.connect(sigc::mem_fun(this, &Root::button_release_event));
        window.signal_pointer_motion.connect(sigc::mem_fun(this, &Root::pointer_motion_event));
+       window.signal_key_press.connect(sigc::mem_fun(this, &Root::key_press));
+       window.signal_key_release.connect(sigc::mem_fun(this, &Root::key_release));
 }
 
 void Root::button_press_event(int x, int y, unsigned btn, unsigned)