Am Mittwoch 29 Oktober 2008 schrieb Heiko Stübner: > _findHandler() builds the cache key as DOM_div_mouse* and finds a cached > handler for it. But this is the handler for the main window, where instead > it should build a new mouse-handler instance for the target-window. > > The mousehandler itself carries the target-window/-document for which it > listens and should therefor work correctly when initialised correctly. Today I tracked qx.event.Registration.addListener to get a better feeling for the source of the problem. The attached log shows all calls to addListener with the hash-code of the event-manager it uses. (1 is the eventmanager of the main window, gp of the opened window). The resize-event of the new window (qx.ui.root.Application) is attached correctly and fires too, but with the other events some strange things happen: The "high-level" Events are using the manager of the main window but the events on the dom-nodes are using the manager for the new window.
At this point I'm lacking knowledge of the inner workings of the event system but I will continue my search nevertheless on monday. Heiko ------ Log 8ms new Manager for [object Window] hash:1 8ms addListener: [object Window]/ready/1 9ms addListener: [object Window]/shutdown/1 15ms addListener: [object Window]/useraction/1 92ms addListener: [object HTMLHtmlElement]/keypress/1 2354ms qx.core.Init: Load runtime: 2354ms 2396ms addListener: [object Window]/resize/1 2405ms addListener: qx.ui.root.Application[s]/keypress/1 2413ms addListener: [object HTMLDivElement]/keypress/1 [... many addListner calls ...] --- Button-Events opening the window 21997ms Mousehandler-Buttonevent[object MouseEvent] 22093ms Mousehandler-Buttonevent[object MouseEvent] 22900ms Mousehandler-Buttonevent[object MouseEvent] --- window is open 23428ms new Manager for [object Window] hash:gp 23444ms addListener: [object Window]/resize/gp 23460ms addListener: qx.ui.root.Application[gl]/keypress/1 23476ms addListener: [object HTMLDivElement]/keypress/gp 23492ms addListener: qx.ui.root.Application[gl]/focusin/1 23507ms addListener: [object HTMLDivElement]/focusin/gp 23524ms addListener: qx.ui.root.Application[gl]/focusout/1 23539ms addListener: [object HTMLDivElement]/focusout/gp 23554ms addListener: qx.ui.root.Application[gl]/activate/1 23569ms addListener: [object HTMLDivElement]/activate/gp 23585ms addListener: qx.ui.root.Application[gl]/deactivate/1 23601ms addListener: [object HTMLDivElement]/deactivate/gp 23619ms addListener: qx.locale.Manager[9]/changeLocale/1 23637ms addListener: qx.locale.Manager[9]/changeLocale/1 23654ms addListener: qx.ui.toolbar.Button[hd]/mouseover/1 23670ms addListener: qx.ui.toolbar.Button[hd]/mouseout/1 23685ms addListener: qx.ui.toolbar.Button[hd]/mousedown/1 23700ms addListener: qx.ui.toolbar.Button[hd]/mouseup/1 23715ms addListener: qx.ui.toolbar.Button[hd]/keydown/1 23731ms addListener: qx.ui.toolbar.Button[hd]/keyup/1 23746ms addListener: qx.ui.toolbar.Button[hd]/dblclick/1 23761ms addListener: qx.ui.toolbar.Button[hd]/execute/1 --resize-events of the window 116424ms resize-event fired 121845ms resize-event fired 123785ms resize-event fired 125451ms resize-event fired -- Mit freundlichen Grüßen Heiko Stübner Nexst4 ------------------------------------ Nexst4 - Kesys GmbH Arndtstrasse 12 01099 Dresden Tel.: +49 (351) 655 76 70 Fax: +49 (351) 655 76 66 Mail: [EMAIL PROTECTED] Geschäftsführer: Alf Thiele Sitz der Gesellschaft: Dresden Handelsregister: Amtsgericht Dresden HRB 22605 ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
