]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/container.cpp
Make the DISABLED state actually do something
[libs/gltk.git] / source / container.cpp
index e8b666d67344e854cedf0d948fe6f38d2874eab8..a806ccd3ce6cd3cecb9cb02f0b8eb9d8051f81dd 100644 (file)
@@ -188,7 +188,13 @@ Widget *Container::get_pointer_target(int x, int y)
        else if(click_focus)
                return click_focus;
        else
-               return get_child_at(x, y);
+       {
+               Widget *child = get_child_at(x, y);
+               if(child && child->is_enabled())
+                       return child;
+               else
+                       return 0;
+       }
 }
 
 void Container::pointer_leave()