Having the same enum in two places was annoying. Let's just "using" the WindowServer::WindowType enum into the GUI namespace.
@@ -26,21 +26,10 @@
#pragma once
+#include <Services/WindowServer/WindowType.h>
+
namespace GUI {
-// Keep this in sync with WindowServer::WindowType.
-enum class WindowType {
- Invalid = 0,
- Normal,
- Menu,
- WindowSwitcher,
- Taskbar,
- Tooltip,
- Menubar,
- MenuApplet,
- Notification,
- Desktop,
- ToolWindow,
-};
+using WindowType = WindowServer::WindowType;
}
@@ -26,7 +26,8 @@
-// Keep this in sync with GUI::WindowType.
+namespace WindowServer {
enum class WindowType {
Invalid = 0,
Normal,
@@ -40,3 +41,5 @@ enum class WindowType {
Desktop,
ToolWindow,
};
+}