ladybird/Libraries
Andreas Kling 72d68b4025 LibCore: Fix broken "stay_within" mechanism in event dispatch
The "stay_within" parameter to CObject::dispatch_event() optionally
specifies a node in the CObject parent chain where event dispatch
should stop bubbling upwards.

Since event dispatch is done recursively, this was not working right,
as we would simply return from the innermost dispatch loop, leaving
the event un-accepted, which meant that the penultimately inner
dispatch loop would pick up the event and keep bubbling it anyway.

This made it possible for events to jump across window boundaries
within an application, in cases where one window was a CObject ancestor
of another window. This is typically the case with dialog windows.

Fix #1078.
2020-01-21 21:55:25 +01:00
..
LibAudio Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
LibC Kernel+LibC: Clean up open() flag (O_*) definitions 2020-01-21 13:34:39 +01:00
LibCore LibCore: Fix broken "stay_within" mechanism in event dispatch 2020-01-21 21:55:25 +01:00
LibDraw LibDraw: Remove old PNG_STOPWATCH_DEBUG debug code 2020-01-21 15:40:14 +01:00
LibELF Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
LibGUI LibGUI: Make GDialog accept escape key press events 2020-01-21 21:55:25 +01:00
LibHTML Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
LibIPC Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
LibM Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
LibMarkdown Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
LibPCIDB Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
LibProtocol Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
LibPthread Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
LibThread Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
LibVT Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
Makefile Build: clean up build system, use one shared Makefile 2019-12-20 20:20:54 +01:00