diff options
author | rathnor <rathnor> | 2003-03-03 21:51:13 (GMT) |
---|---|---|
committer | rathnor <rathnor> | 2003-03-03 21:51:13 (GMT) |
commit | 19875e5a5ba474387971ede597cdc4aa7454d4c0 (patch) | |
tree | 99d672abcffa86d74734deacbd888eccde02ffd2 /src/FbTk | |
parent | 824fd0db7a4b8117fecba9bb46053bdd38691803 (diff) | |
download | fluxbox_pavel-19875e5a5ba474387971ede597cdc4aa7454d4c0.zip fluxbox_pavel-19875e5a5ba474387971ede597cdc4aa7454d4c0.tar.bz2 |
Add code for toolbar modes
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 cd1ee68..3f28464 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.4 2003/02/23 14:30:18 fluxgen Exp $ | 22 | // $Id: EventManager.cc,v 1.5 2003/03/03 21:51:13 rathnor Exp $ |
23 | 23 | ||
24 | #include "EventManager.hh" | 24 | #include "EventManager.hh" |
25 | #include "FbWindow.hh" | 25 | #include "FbWindow.hh" |
@@ -95,7 +95,8 @@ void EventManager::registerEventHandler(EventHandler &ev, Window win) { | |||
95 | } | 95 | } |
96 | 96 | ||
97 | void EventManager::unregisterEventHandler(Window win) { | 97 | void EventManager::unregisterEventHandler(Window win) { |
98 | m_eventhandlers.erase(win); | 98 | if (win != None) |
99 | m_eventhandlers.erase(win); | ||
99 | } | 100 | } |
100 | 101 | ||
101 | }; | 102 | }; |