mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-21 10:19:03 +03:00
2e9cc75d11
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. :^)
16 lines
341 B
C++
16 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;
|
|
};
|