mirror of
https://github.com/RGBCube/serenity
synced 2025-05-20 12:35:07 +00:00

Taskbar now simply asks the WindowServer to popup a window menu when right clicking on a taskbar button. This patch also implements the "close" menu item, and furthermore makes the window menu show up when you left-click a window's titlebar icon. :^)
15 lines
341 B
C++
15 lines
341 B
C++
#pragma once
|
|
|
|
#include "WindowIdentifier.h"
|
|
#include <LibGUI/GButton.h>
|
|
|
|
class TaskbarButton final : public GButton {
|
|
public:
|
|
TaskbarButton(const WindowIdentifier&, GWidget* parent);
|
|
virtual ~TaskbarButton() override;
|
|
|
|
private:
|
|
virtual void context_menu_event(GContextMenuEvent&) override;
|
|
|
|
WindowIdentifier m_identifier;
|
|
};
|