mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 22:48:11 +00:00
Taskbar: Add toggle_show_desktop()
This function is added to separate the desktop toggling functionality from the "Show Desktop" button in the taskbar and to enable calling this behaviour via a keyboard shortcut in a later commit.
This commit is contained in:
parent
6c202ee4a9
commit
12682f0bcc
2 changed files with 6 additions and 0 deletions
|
@ -109,6 +109,11 @@ void TaskbarWindow::config_string_did_change(String const& domain, String const&
|
|||
}
|
||||
|
||||
void TaskbarWindow::show_desktop_button_clicked(unsigned)
|
||||
{
|
||||
toggle_show_desktop();
|
||||
}
|
||||
|
||||
void TaskbarWindow::toggle_show_desktop()
|
||||
{
|
||||
GUI::ConnectionToWindowManagerServer::the().async_toggle_show_desktop();
|
||||
}
|
||||
|
|
|
@ -30,6 +30,7 @@ public:
|
|||
private:
|
||||
explicit TaskbarWindow(NonnullRefPtr<GUI::Menu> start_menu);
|
||||
static void show_desktop_button_clicked(unsigned);
|
||||
static void toggle_show_desktop();
|
||||
void set_quick_launch_button_data(GUI::Button&, String const&, NonnullRefPtr<Desktop::AppFile>);
|
||||
void on_screen_rects_change(Vector<Gfx::IntRect, 4> const&, size_t);
|
||||
NonnullRefPtr<GUI::Button> create_button(WindowIdentifier const&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue