From fe94fedc10a546507424f04034f0dc7681765b7f Mon Sep 17 00:00:00 2001 From: gogg Date: Tue, 24 Nov 2009 01:21:19 +0000 Subject: [PATCH] fix for ancient bug that causes non-gui keyboard input to be discarded if the mouse pointer is outside the client area of the window --- panda/src/tform/mouseWatcher.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/panda/src/tform/mouseWatcher.cxx b/panda/src/tform/mouseWatcher.cxx index 9dff3f51e7..42dd8af78a 100644 --- a/panda/src/tform/mouseWatcher.cxx +++ b/panda/src/tform/mouseWatcher.cxx @@ -1441,8 +1441,8 @@ do_transmit_data(DataGraphTraverser *trav, const DataNodeTransmit &input, // within the window. This is considered not having a mouse. set_no_mouse(); - // This also means we should suppress button events below us. - _internal_suppress |= MouseWatcherRegion::SF_any_button; + // This also means we should suppress mouse button events below us. + _internal_suppress |= MouseWatcherRegion::SF_mouse_button; } else { // The mouse is within the display region; rescale it.