1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-11 18:20:43 +09:00
ladybird/Libraries/LibGUI
Andreas Kling 4d5e144a6b LibGUI: Forget some of Window's widgets eagerly on widget unparenting
Previously the focused widget would only get cleared on replacement or
on destruction (being a WeakPtr and all.) This could lead to window
dispatching events to a focused widget after it had been removed from
the window's widget tree.

The same issue existed for the hovered widget, etc. So this patch
makes sure that we eagerly clear the various widget pointers in Window
immediately when they are removed from the window's widget tree.
2020-03-05 15:48:57 +01:00
..
AboutDialog.cpp LibGUI: Don't use Core::Object::add() to instantiate dialogs 2020-03-04 21:04:06 +01:00
AboutDialog.h LibGUI: Don't use Core::Object::add() to instantiate dialogs 2020-03-04 21:04:06 +01:00
AbstractButton.cpp LibGUI: Save some more state from AbstractButton 2020-03-03 22:37:48 +01:00
AbstractButton.h LibGUI: Save some more state from AbstractButton 2020-03-03 22:37:48 +01:00
AbstractTableView.cpp LibGUI: Mouse events didn't hit table headers when vertically scrolled 2020-02-25 23:06:40 +01:00
AbstractTableView.h LibGUI: Make descendants of AbstractView define their own select_all() (#1201) 2020-02-25 16:03:15 +01:00
AbstractView.cpp LibGUI: Make descendants of AbstractView define their own select_all() (#1201) 2020-02-25 16:03:15 +01:00
AbstractView.h LibGUI: Make descendants of AbstractView define their own select_all() (#1201) 2020-02-25 16:03:15 +01:00
Action.cpp LibGfx: Add forward declaration header 2020-02-14 23:31:18 +01:00
Action.h LibGUI: Add forwarding header 2020-02-16 09:41:56 +01:00
ActionGroup.cpp LibGUI: Remove leading G from filenames 2020-02-06 20:33:02 +01:00
ActionGroup.h LibGUI: Add forwarding header 2020-02-16 09:41:56 +01:00
Application.cpp LibGUI: Use GUI::Window::set_main_widget<WidgetType>() in clients 2020-03-04 14:26:16 +01:00
Application.h LibGUI: Add forwarding header 2020-02-16 09:41:56 +01:00
BoxLayout.cpp LibGUI: Make Layout a Core::Object and add basic serialization 2020-03-05 09:22:43 +01:00
BoxLayout.h LibGUI: Make Layout a Core::Object and add basic serialization 2020-03-05 09:22:43 +01:00
Button.cpp LibGUI: Remove Button& parameter from Button::on_click hook 2020-03-03 17:02:38 +01:00
Button.h LibGUI: Remove Button& parameter from Button::on_click hook 2020-03-03 17:02:38 +01:00
CheckBox.cpp LibGUI: Remove parent parameter to GUI::Widget constructor 2020-02-23 12:27:53 +01:00
CheckBox.h LibGUI: Remove parent parameter to GUI::Widget constructor 2020-02-23 12:27:53 +01:00
Clipboard.cpp Kernel+LibC: Rename shared buffer syscalls to use a prefix 2020-02-28 12:55:58 +01:00
Clipboard.h LibGUI: Add forwarding header 2020-02-16 09:41:56 +01:00
ColorPicker.cpp LibGUI: Don't use Core::Object::add() to instantiate dialogs 2020-03-04 21:04:06 +01:00
ColorPicker.h LibGUI: Don't use Core::Object::add() to instantiate dialogs 2020-03-04 21:04:06 +01:00
ColumnsView.cpp LibGUI: Fix ColumnsView.cpp build 2020-02-25 16:05:00 +01:00
ColumnsView.h LibGUI: Make descendants of AbstractView define their own select_all() (#1201) 2020-02-25 16:03:15 +01:00
ComboBox.cpp LibGUI: Use GUI::Window::set_main_widget<WidgetType>() in clients 2020-03-04 14:26:16 +01:00
ComboBox.h LibGUI: Remove parent parameter to GUI::Widget constructor 2020-02-23 12:27:53 +01:00
Command.cpp LibGUI: Remove leading G from filenames 2020-02-06 20:33:02 +01:00
Command.h LibGUI: Remove leading G from filenames 2020-02-06 20:33:02 +01:00
CppLexer.cpp LibGUI+HackStudio: Move syntax highlighting from HackStudio to LibGUI 2020-02-07 20:07:15 +01:00
CppLexer.h LibGUI+HackStudio: Move syntax highlighting from HackStudio to LibGUI 2020-02-07 20:07:15 +01:00
CppSyntaxHighlighter.cpp AK: Make Vector use size_t for its size and capacity 2020-02-25 14:52:35 +01:00
CppSyntaxHighlighter.h LibGUI+HackStudio: Move syntax highlighting from HackStudio to LibGUI 2020-02-07 20:07:15 +01:00
Desktop.cpp LibGUI: Add forwarding header 2020-02-16 09:41:56 +01:00
Desktop.h LibGUI: Add forwarding header 2020-02-16 09:41:56 +01:00
Dialog.cpp LibGUI: Don't use Core::Object::add() to instantiate dialogs 2020-03-04 21:04:06 +01:00
Dialog.h LibGUI: Don't use Core::Object::add() to instantiate dialogs 2020-03-04 21:04:06 +01:00
DragOperation.cpp Kernel+LibC: Rename shared buffer syscalls to use a prefix 2020-02-28 12:55:58 +01:00
DragOperation.h LibGUI: Add forwarding header 2020-02-16 09:41:56 +01:00
Event.cpp LibGUI: Add missing Event.cpp file 2020-02-14 17:35:04 +01:00
Event.h LibCore: Replace manual forward declarations with <LibCore/Forward.h> 2020-02-15 00:13:44 +01:00
FilePicker.cpp LibGUI: Don't use Core::Object::add() to instantiate dialogs 2020-03-04 21:04:06 +01:00
FilePicker.h LibGUI: Don't use Core::Object::add() to instantiate dialogs 2020-03-04 21:04:06 +01:00
FileSystemModel.cpp AK: Make Vector use size_t for its size and capacity 2020-02-25 14:52:35 +01:00
FileSystemModel.h LibGUI: Port the drag&drop code to Core::MimeData 2020-02-14 13:18:59 +01:00
FontDatabase.cpp AK: Make quick_sort() a little more ergonomic 2020-03-03 16:02:58 +01:00
FontDatabase.h LibGfx: Replace manual forward declarations with <LibGfx/Forward.h> 2020-02-15 00:10:34 +01:00
Forward.h LibGUI: Add a MultiView widget, based on FileManager's "DirectoryView" 2020-02-24 20:48:42 +01:00
Frame.cpp LibGUI: Remove parent parameter to GUI::Widget constructor 2020-02-23 12:27:53 +01:00
Frame.h LibGUI: Remove parent parameter to GUI::Widget constructor 2020-02-23 12:27:53 +01:00
GroupBox.cpp LibGUI: Remove parent parameter to GUI::Widget constructor 2020-02-23 12:27:53 +01:00
GroupBox.h LibGUI: Remove parent parameter to GUI::Widget constructor 2020-02-23 12:27:53 +01:00
Icon.cpp LibGUI: Add forwarding header 2020-02-16 09:41:56 +01:00
Icon.h LibGUI: Add forwarding header 2020-02-16 09:41:56 +01:00
InputBox.cpp LibGUI: Don't use Core::Object::add() to instantiate dialogs 2020-03-04 21:04:06 +01:00
InputBox.h LibGUI: Don't use Core::Object::add() to instantiate dialogs 2020-03-04 21:04:06 +01:00
ItemView.cpp LibGUI: Make descendants of AbstractView define their own select_all() (#1201) 2020-02-25 16:03:15 +01:00
ItemView.h LibGUI: Make descendants of AbstractView define their own select_all() (#1201) 2020-02-25 16:03:15 +01:00
JsonArrayModel.cpp AK: Make Vector use size_t for its size and capacity 2020-02-25 14:52:35 +01:00
JsonArrayModel.h LibGUI: Remove leading G from filenames 2020-02-06 20:33:02 +01:00
Label.cpp LibGUI: Remove parent parameter to GUI::Widget constructor 2020-02-23 12:27:53 +01:00
Label.h LibGUI: Remove parent parameter to GUI::Widget constructor 2020-02-23 12:27:53 +01:00
Layout.cpp LibGUI: Make Layout a Core::Object and add basic serialization 2020-03-05 09:22:43 +01:00
Layout.h LibGUI: Make Layout a Core::Object and add basic serialization 2020-03-05 09:22:43 +01:00
LazyWidget.cpp LibGUI: Remove parent parameter to GUI::Widget constructor 2020-02-23 12:27:53 +01:00
LazyWidget.h LibGUI: Remove parent parameter to GUI::Widget constructor 2020-02-23 12:27:53 +01:00
ListView.cpp LibGUI: Make descendants of AbstractView define their own select_all() (#1201) 2020-02-25 16:03:15 +01:00
ListView.h LibGUI: Make descendants of AbstractView define their own select_all() (#1201) 2020-02-25 16:03:15 +01:00
Makefile LibGUI: Add a MultiView widget, based on FileManager's "DirectoryView" 2020-02-24 20:48:42 +01:00
Margins.h LibGUI: Remove leading G from filenames 2020-02-06 20:33:02 +01:00
Menu.cpp Kernel+LibC: Rename shared buffer syscalls to use a prefix 2020-02-28 12:55:58 +01:00
Menu.h AK: Make Vector use size_t for its size and capacity 2020-02-25 14:52:35 +01:00
MenuBar.cpp LibGUI: Reduce menu-related header dependencies 2020-02-15 01:56:30 +01:00
MenuBar.h LibGUI: Add forwarding header 2020-02-16 09:41:56 +01:00
MenuItem.cpp LibGUI: Reduce menu-related header dependencies 2020-02-15 01:56:30 +01:00
MenuItem.h LibGUI: Add forwarding header 2020-02-16 09:41:56 +01:00
MessageBox.cpp LibGUI: Don't use Core::Object::add() to instantiate dialogs 2020-03-04 21:04:06 +01:00
MessageBox.h LibGUI: Don't use Core::Object::add() to instantiate dialogs 2020-03-04 21:04:06 +01:00
Model.cpp LibGUI: Add GUI::Model::accepts_drag(index, data_type) 2020-02-13 21:45:46 +01:00
Model.h LibGUI: Add forwarding header 2020-02-16 09:41:56 +01:00
ModelEditingDelegate.h LibGUI: Remove parent parameter to GUI::Widget constructor 2020-02-23 12:27:53 +01:00
ModelIndex.cpp LibGUI: Add forwarding header 2020-02-16 09:41:56 +01:00
ModelIndex.h LibGUI: Add forwarding header 2020-02-16 09:41:56 +01:00
ModelSelection.cpp LibGUI: Add forwarding header 2020-02-16 09:41:56 +01:00
ModelSelection.h LibGUI: Add forwarding header 2020-02-16 09:41:56 +01:00
MultiView.cpp LibGUI: Disable the ColumnsView subview in MultiView for now 2020-02-27 14:43:35 +01:00
MultiView.h LibGUI: Disable the ColumnsView subview in MultiView for now 2020-02-27 14:43:35 +01:00
Notification.cpp NotificationServer: Add a system service for desktop notifications 2020-02-16 21:58:17 +01:00
Notification.h NotificationServer: Add a system service for desktop notifications 2020-02-16 21:58:17 +01:00
Painter.cpp LibGfx: Add forward declaration header 2020-02-14 23:31:18 +01:00
Painter.h LibGUI: Add forwarding header 2020-02-16 09:41:56 +01:00
ProgressBar.cpp LibGUI: Remove parent parameter to GUI::Widget constructor 2020-02-23 12:27:53 +01:00
ProgressBar.h LibGUI: Remove parent parameter to GUI::Widget constructor 2020-02-23 12:27:53 +01:00
RadioButton.cpp LibGUI: Remove parent parameter to GUI::Widget constructor 2020-02-23 12:27:53 +01:00
RadioButton.h LibGUI: Remove parent parameter to GUI::Widget constructor 2020-02-23 12:27:53 +01:00
ResizeCorner.cpp LibGUI: Remove parent parameter to GUI::Widget constructor 2020-02-23 12:27:53 +01:00
ResizeCorner.h LibGUI: Remove parent parameter to GUI::Widget constructor 2020-02-23 12:27:53 +01:00
ScrollableWidget.cpp LibGUI: Implement keyboard and mouse wheel events for SpinBox 2020-02-24 10:40:32 +01:00
ScrollableWidget.h LibGUI: Remove parent parameter to GUI::Widget constructor 2020-02-23 12:27:53 +01:00
ScrollBar.cpp LibGUI: Remove parent parameter to GUI::Widget constructor 2020-02-23 12:27:53 +01:00
ScrollBar.h LibGUI: Remove parent parameter to GUI::Widget constructor 2020-02-23 12:27:53 +01:00
Shortcut.cpp AK: Make Vector use size_t for its size and capacity 2020-02-25 14:52:35 +01:00
Shortcut.h LibGUI: Add forwarding header 2020-02-16 09:41:56 +01:00
Slider.cpp LibGUI: Remove parent parameter to GUI::Widget constructor 2020-02-23 12:27:53 +01:00
Slider.h LibGUI: Remove parent parameter to GUI::Widget constructor 2020-02-23 12:27:53 +01:00
SortingProxyModel.cpp AK: Make quick_sort() a little more ergonomic 2020-03-03 16:02:58 +01:00
SortingProxyModel.h LibGUI: Remove leading G from filenames 2020-02-06 20:33:02 +01:00
SpinBox.cpp LibGUI: Remove Button& parameter from Button::on_click hook 2020-03-03 17:02:38 +01:00
SpinBox.h LibGUI: Implement keyboard and mouse wheel events for SpinBox 2020-02-24 10:40:32 +01:00
Splitter.cpp LibGUI: Make Layout a Core::Object and add basic serialization 2020-03-05 09:22:43 +01:00
Splitter.h LibGUI: Remove parent parameter to GUI::Widget constructor 2020-02-23 12:27:53 +01:00
StackWidget.cpp LibGUI: Remove parent parameter to GUI::Widget constructor 2020-02-23 12:27:53 +01:00
StackWidget.h LibGUI: Remove parent parameter to GUI::Widget constructor 2020-02-23 12:27:53 +01:00
StatusBar.cpp LibCore: Make Core::Object::add<ChildType> return a ChildType& 2020-03-04 21:04:06 +01:00
StatusBar.h LibGUI: Remove parent parameter to GUI::Widget constructor 2020-02-23 12:27:53 +01:00
SyntaxHighlighter.cpp AK: Make Vector use size_t for its size and capacity 2020-02-25 14:52:35 +01:00
SyntaxHighlighter.h LibGUI: Add forwarding header 2020-02-16 09:41:56 +01:00
TableView.cpp LibGUI: Remove parent parameter to GUI::Widget constructor 2020-02-23 12:27:53 +01:00
TableView.h LibGUI: Remove parent parameter to GUI::Widget constructor 2020-02-23 12:27:53 +01:00
TabWidget.cpp AK: Make Vector use size_t for its size and capacity 2020-02-25 14:52:35 +01:00
TabWidget.h LibGUI: Add helper for constructing new TabWidget tabs 2020-02-23 12:27:53 +01:00
TextBox.cpp LibGUI: Remove parent parameter to GUI::Widget constructor 2020-02-23 12:27:53 +01:00
TextBox.h LibGUI: Remove parent parameter to GUI::Widget constructor 2020-02-23 12:27:53 +01:00
TextDocument.cpp AK: Remove unnecessary casts to size_t, after Vector changes 2020-03-01 12:58:22 +01:00
TextDocument.h AK: Remove unnecessary casts to size_t, after Vector changes 2020-03-01 12:58:22 +01:00
TextEditor.cpp LibGUI: TextEditor should paint text with disabled color when disabled 2020-03-04 21:19:35 +01:00
TextEditor.h LibGUI: Remove parent parameter to GUI::Widget constructor 2020-02-23 12:27:53 +01:00
TextPosition.h LibGUI: Remove leading G from filenames 2020-02-06 20:33:02 +01:00
TextRange.h LibGUI: Remove leading G from filenames 2020-02-06 20:33:02 +01:00
ToolBar.cpp LibGUI: Make Layout a Core::Object and add basic serialization 2020-03-05 09:22:43 +01:00
ToolBar.h LibGUI: Remove parent parameter to GUI::Widget constructor 2020-02-23 12:27:53 +01:00
TreeView.cpp LibGUI: Fix broken TreeView rendering with more than two columns 2020-03-02 23:05:04 +01:00
TreeView.h LibGUI: Fix broken TreeView rendering with more than two columns 2020-03-02 23:05:04 +01:00
UndoStack.cpp AK: Make Vector use size_t for its size and capacity 2020-02-25 14:52:35 +01:00
UndoStack.h AK: Make Vector use size_t for its size and capacity 2020-02-25 14:52:35 +01:00
Variant.cpp LibGUI: Remove leading G from filenames 2020-02-06 20:33:02 +01:00
Variant.h AK: Remove manual forward declarations with <AK/Forward.h> 2020-02-15 00:12:31 +01:00
Widget.cpp LibGUI: Forget some of Window's widgets eagerly on widget unparenting 2020-03-05 15:48:57 +01:00
Widget.h LibGUI+Inspector: Highlight the currently remotely inspected widget 2020-03-05 14:42:05 +01:00
Window.cpp LibGUI: Forget some of Window's widgets eagerly on widget unparenting 2020-03-05 15:48:57 +01:00
Window.h LibGUI: Forget some of Window's widgets eagerly on widget unparenting 2020-03-05 15:48:57 +01:00
WindowServerConnection.cpp Kernel+LibC: Rename shared buffer syscalls to use a prefix 2020-02-28 12:55:58 +01:00
WindowServerConnection.h LibGUI: Remove leading G from filenames 2020-02-06 20:33:02 +01:00
WindowType.h LibGUI: Remove leading G from filenames 2020-02-06 20:33:02 +01:00