all repos — fluxbox @ f1a34dc2f6d88f64dd9efd79ab804f71049b21c2

custom fork of the fluxbox windowmanager

minor fix for register empty windows
fluxgen fluxgen
commit

f1a34dc2f6d88f64dd9efd79ab804f71049b21c2

parent

a97807dddedfc2181f7af216512fb0200e49ad28

1 files changed, 3 insertions(+), 2 deletions(-)

jump to
M src/FbTk/EventManager.ccsrc/FbTk/EventManager.cc

@@ -19,7 +19,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// 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,7 +91,8 @@ unregisterEventHandler(win.window());

} void EventManager::registerEventHandler(EventHandler &ev, Window win) { - m_eventhandlers[win] = &ev; + if (win != None) + m_eventhandlers[win] = &ev; } void EventManager::unregisterEventHandler(Window win) {