ewmh: add missing window types

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-02-13 11:25:38 +01:00
parent af95800df1
commit ada983d08e
4 changed files with 39 additions and 2 deletions

View File

@ -1741,7 +1741,25 @@ luaA_client_index(lua_State *L)
case WINDOW_TYPE_UTILITY: case WINDOW_TYPE_UTILITY:
lua_pushliteral(L, "utility"); lua_pushliteral(L, "utility");
break; break;
default: case WINDOW_TYPE_DROPDOWN_MENU:
lua_pushliteral(L, "dropdown_menu");
break;
case WINDOW_TYPE_POPUP_MENU:
lua_pushliteral(L, "popup_menu");
break;
case WINDOW_TYPE_TOOLTIP:
lua_pushliteral(L, "tooltip");
break;
case WINDOW_TYPE_NOTIFICATION:
lua_pushliteral(L, "notification");
break;
case WINDOW_TYPE_COMBO:
lua_pushliteral(L, "combo");
break;
case WINDOW_TYPE_DND:
lua_pushliteral(L, "dnd");
break;
case WINDOW_TYPE_NORMAL:
lua_pushliteral(L, "normal"); lua_pushliteral(L, "normal");
break; break;
} }

View File

@ -23,6 +23,12 @@ _NET_WM_WINDOW_TYPE_MENU
_NET_WM_WINDOW_TYPE_UTILITY _NET_WM_WINDOW_TYPE_UTILITY
_NET_WM_WINDOW_TYPE_SPLASH _NET_WM_WINDOW_TYPE_SPLASH
_NET_WM_WINDOW_TYPE_DIALOG _NET_WM_WINDOW_TYPE_DIALOG
_NET_WM_WINDOW_TYPE_DROPDOWN_MENU
_NET_WM_WINDOW_TYPE_POPUP_MENU
_NET_WM_WINDOW_TYPE_TOOLTIP
_NET_WM_WINDOW_TYPE_NOTIFICATION
_NET_WM_WINDOW_TYPE_COMBO
_NET_WM_WINDOW_TYPE_DND
_NET_WM_WINDOW_TYPE_NORMAL _NET_WM_WINDOW_TYPE_NORMAL
_NET_WM_ICON _NET_WM_ICON
_NET_WM_PID _NET_WM_PID

6
ewmh.c
View File

@ -89,6 +89,12 @@ ewmh_init(int phys_screen)
_NET_WM_WINDOW_TYPE_UTILITY, _NET_WM_WINDOW_TYPE_UTILITY,
_NET_WM_WINDOW_TYPE_SPLASH, _NET_WM_WINDOW_TYPE_SPLASH,
_NET_WM_WINDOW_TYPE_DIALOG, _NET_WM_WINDOW_TYPE_DIALOG,
_NET_WM_WINDOW_TYPE_DROPDOWN_MENU,
_NET_WM_WINDOW_TYPE_POPUP_MENU,
_NET_WM_WINDOW_TYPE_TOOLTIP,
_NET_WM_WINDOW_TYPE_NOTIFICATION,
_NET_WM_WINDOW_TYPE_COMBO,
_NET_WM_WINDOW_TYPE_DND,
_NET_WM_WINDOW_TYPE_NORMAL, _NET_WM_WINDOW_TYPE_NORMAL,
_NET_WM_ICON, _NET_WM_ICON,
_NET_WM_PID, _NET_WM_PID,

View File

@ -47,7 +47,14 @@ typedef enum
*/ */
WINDOW_TYPE_MENU, WINDOW_TYPE_MENU,
WINDOW_TYPE_TOOLBAR, WINDOW_TYPE_TOOLBAR,
WINDOW_TYPE_UTILITY WINDOW_TYPE_UTILITY,
/* This ones are usually set on override-redirect windows. */
WINDOW_TYPE_DROPDOWN_MENU,
WINDOW_TYPE_POPUP_MENU,
WINDOW_TYPE_TOOLTIP,
WINDOW_TYPE_NOTIFICATION,
WINDOW_TYPE_COMBO,
WINDOW_TYPE_DND
} window_type_t; } window_type_t;
/** Wibox types */ /** Wibox types */