diff options
author | Andreas Kling <kling@serenityos.org> | 2020-05-12 20:30:33 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-05-12 20:31:16 +0200 |
commit | 977863ea078e829df10d351a2e9ac3097fb8f5d9 (patch) | |
tree | 5ea075feaa74d0ff74381399c85cae1bfbaaa6b0 /Services/Taskbar/TaskbarWindow.cpp | |
parent | 3a905aed063e84331aec82826926cdb89d777892 (diff) | |
download | serenity-977863ea078e829df10d351a2e9ac3097fb8f5d9.zip |
LibGUI: Include keyboard modifier state with button on_click calls
This will allow you us to implement special behavior when Ctrl+clicking
a button.
Diffstat (limited to 'Services/Taskbar/TaskbarWindow.cpp')
-rw-r--r-- | Services/Taskbar/TaskbarWindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Services/Taskbar/TaskbarWindow.cpp b/Services/Taskbar/TaskbarWindow.cpp index 92b49f7914..d287583cd7 100644 --- a/Services/Taskbar/TaskbarWindow.cpp +++ b/Services/Taskbar/TaskbarWindow.cpp @@ -116,7 +116,7 @@ void TaskbarWindow::create_quick_launch_bar() button.set_icon(Gfx::Bitmap::load_from_file(app_icon_path)); button.set_tooltip(name); - button.on_click = [app_executable] { + button.on_click = [app_executable](auto) { pid_t pid = fork(); if (pid < 0) { perror("fork"); |