minor fix for register empty windows
This commit is contained in:
parent
a97807ddde
commit
f1a34dc2f6
1 changed files with 3 additions and 2 deletions
|
@ -19,7 +19,7 @@
|
|||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
// DEALINGS IN THE SOFTWARE.
|
||||
|
||||
// $Id: EventManager.cc,v 1.5 2003/03/03 21:51:13 rathnor Exp $
|
||||
// $Id: EventManager.cc,v 1.6 2003/05/17 10:40:12 fluxgen Exp $
|
||||
|
||||
#include "EventManager.hh"
|
||||
#include "FbWindow.hh"
|
||||
|
@ -91,6 +91,7 @@ void EventManager::remove(const FbWindow &win) {
|
|||
}
|
||||
|
||||
void EventManager::registerEventHandler(EventHandler &ev, Window win) {
|
||||
if (win != None)
|
||||
m_eventhandlers[win] = &ev;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue