mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:47:35 +00:00
LibGUI+WindowServer: Keep canonical WindowType enum in WindowServer
Having the same enum in two places was annoying. Let's just "using" the WindowServer::WindowType enum into the GUI namespace.
This commit is contained in:
parent
2036d7518a
commit
50a8e0e495
2 changed files with 7 additions and 15 deletions
|
@ -26,21 +26,10 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include <Services/WindowServer/WindowType.h>
|
||||||
|
|
||||||
namespace GUI {
|
namespace GUI {
|
||||||
|
|
||||||
// Keep this in sync with WindowServer::WindowType.
|
using WindowType = WindowServer::WindowType;
|
||||||
enum class WindowType {
|
|
||||||
Invalid = 0,
|
|
||||||
Normal,
|
|
||||||
Menu,
|
|
||||||
WindowSwitcher,
|
|
||||||
Taskbar,
|
|
||||||
Tooltip,
|
|
||||||
Menubar,
|
|
||||||
MenuApplet,
|
|
||||||
Notification,
|
|
||||||
Desktop,
|
|
||||||
ToolWindow,
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,7 +26,8 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
// Keep this in sync with GUI::WindowType.
|
namespace WindowServer {
|
||||||
|
|
||||||
enum class WindowType {
|
enum class WindowType {
|
||||||
Invalid = 0,
|
Invalid = 0,
|
||||||
Normal,
|
Normal,
|
||||||
|
@ -40,3 +41,5 @@ enum class WindowType {
|
||||||
Desktop,
|
Desktop,
|
||||||
ToolWindow,
|
ToolWindow,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue