diff options
author | fluxgen <fluxgen> | 2003-05-17 10:40:12 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2003-05-17 10:40:12 (GMT) |
commit | f1a34dc2f6d88f64dd9efd79ab804f71049b21c2 (patch) | |
tree | 710a739c0ba2c10bd5252405153ff62f40022960 /src/FbTk | |
parent | a97807dddedfc2181f7af216512fb0200e49ad28 (diff) | |
download | fluxbox_pavel-f1a34dc2f6d88f64dd9efd79ab804f71049b21c2.zip fluxbox_pavel-f1a34dc2f6d88f64dd9efd79ab804f71049b21c2.tar.bz2 |
minor fix for register empty windows
Diffstat (limited to 'src/FbTk')
-rw-r--r-- | src/FbTk/EventManager.cc | 5 |
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 | ||
93 | void EventManager::registerEventHandler(EventHandler &ev, Window win) { | 93 | void EventManager::registerEventHandler(EventHandler &ev, Window win) { |
94 | m_eventhandlers[win] = &ev; | 94 | if (win != None) |
95 | m_eventhandlers[win] = &ev; | ||
95 | } | 96 | } |
96 | 97 | ||
97 | void EventManager::unregisterEventHandler(Window win) { | 98 | void EventManager::unregisterEventHandler(Window win) { |