aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2003-05-17 10:40:12 (GMT)
committerfluxgen <fluxgen>2003-05-17 10:40:12 (GMT)
commitf1a34dc2f6d88f64dd9efd79ab804f71049b21c2 (patch)
tree710a739c0ba2c10bd5252405153ff62f40022960
parenta97807dddedfc2181f7af216512fb0200e49ad28 (diff)
downloadfluxbox_paul-f1a34dc2f6d88f64dd9efd79ab804f71049b21c2.zip
fluxbox_paul-f1a34dc2f6d88f64dd9efd79ab804f71049b21c2.tar.bz2
minor fix for register empty windows
-rw-r--r--src/FbTk/EventManager.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/FbTk/EventManager.cc b/src/FbTk/EventManager.cc
index 3f28464..1f2aef1 100644
--- a/src/FbTk/EventManager.cc
+++ b/src/FbTk/EventManager.cc
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: EventManager.cc,v 1.5 2003/03/03 21:51:13 rathnor Exp $ 22// $Id: EventManager.cc,v 1.6 2003/05/17 10:40:12 fluxgen Exp $
23 23
24#include "EventManager.hh" 24#include "EventManager.hh"
25#include "FbWindow.hh" 25#include "FbWindow.hh"
@@ -91,7 +91,8 @@ void EventManager::remove(const FbWindow &win) {
91} 91}
92 92
93void EventManager::registerEventHandler(EventHandler &ev, Window win) { 93void EventManager::registerEventHandler(EventHandler &ev, Window win) {
94 m_eventhandlers[win] = &ev; 94 if (win != None)
95 m_eventhandlers[win] = &ev;
95} 96}
96 97
97void EventManager::unregisterEventHandler(Window win) { 98void EventManager::unregisterEventHandler(Window win) {