mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-30 05:08:56 +00:00
LibGUI: Add GUI_HOVER_DEBUG runtime debugging flag (environment)
You can now see the outline of GUI widgets when hovering them.
For example:
$ export GUI_HOVER_DEBUG=1
$ FileManager
Then move the mouse around in the file manager. :^)
This commit is contained in:
@@ -809,6 +809,10 @@ void Window::set_hovered_widget(Widget* widget)
|
||||
|
||||
if (m_hovered_widget)
|
||||
Core::EventLoop::current().post_event(*m_hovered_widget, make<Event>(Event::Enter));
|
||||
|
||||
auto* app = Application::the();
|
||||
if (app && app->hover_debugging_enabled())
|
||||
update();
|
||||
}
|
||||
|
||||
void Window::set_current_backing_store(WindowBackingStore& backing_store, bool flush_immediately)
|
||||
|
||||
Reference in New Issue
Block a user