parent
5388d8539e
commit
9158ef2fb1
3
src/E.h
3
src/E.h
|
@ -1193,8 +1193,6 @@ void MoveCurrentLinearAreaBy(int a);
|
|||
void MoveEwinToLinearArea(EWin * ewin, int a);
|
||||
void MoveEwinLinearAreaBy(EWin * ewin, int a);
|
||||
|
||||
int Emkstemp(char *template);
|
||||
|
||||
/* arrange.c */
|
||||
#define ARRANGE_VERBATIM 0
|
||||
#define ARRANGE_BY_SIZE 1
|
||||
|
@ -1726,7 +1724,6 @@ int findLocalizedFile(char *fname);
|
|||
EWin *FindEwinByBase(Window win);
|
||||
EWin *FindEwinByChildren(Window win);
|
||||
EWin *FindEwinByPartial(const char *win, int type);
|
||||
EWin *FindEwinByDecoration(Window win);
|
||||
Button *FindButton(Window win);
|
||||
ActionClass *FindActionClass(Window win);
|
||||
Group **ListWinGroups(EWin * ewin, char group_select, int *num);
|
||||
|
|
|
@ -2301,18 +2301,6 @@ DesktopsIpcArea(const char *params, Client * c __UNUSED__)
|
|||
}
|
||||
}
|
||||
|
||||
static void
|
||||
IPC_NumDesks(const char *params, Client * c __UNUSED__)
|
||||
{
|
||||
if (!params)
|
||||
return;
|
||||
|
||||
if (!strcmp(params, "?"))
|
||||
{
|
||||
IpcPrintf("Number of Desks: %d\n", Conf.desks.num);
|
||||
}
|
||||
}
|
||||
|
||||
IpcItem DesktopsIpcArray[] = {
|
||||
{
|
||||
DesktopsIpcDesk,
|
||||
|
@ -2343,9 +2331,6 @@ IpcItem DesktopsIpcArray[] = {
|
|||
" area lgoto <al> Goto specified linear area\n"
|
||||
" area lmove <dl> Move relative to current linear area\n"}
|
||||
,
|
||||
{
|
||||
IPC_NumDesks, "num_desks", NULL, "Deprecated - do not use", NULL}
|
||||
,
|
||||
};
|
||||
#define N_IPC_FUNCS (sizeof(DesktopsIpcArray)/sizeof(IpcItem))
|
||||
|
||||
|
|
|
@ -108,7 +108,7 @@ FindEwinByPartial(const char *match, int type)
|
|||
return ewin;
|
||||
}
|
||||
|
||||
EWin *
|
||||
static EWin *
|
||||
FindEwinByDecoration(Window win)
|
||||
{
|
||||
EWin *const *ewins;
|
||||
|
|
11
src/ipc.c
11
src/ipc.c
|
@ -1073,7 +1073,7 @@ EwinShowInfo2(const EWin * ewin)
|
|||
"NeverUseArea %i FixedPos %i\n"
|
||||
"Desktop %i Layer %i(%i)\n"
|
||||
"Iconified %i Sticky %i Shaded %i Docked %i\n"
|
||||
"State %i Shown %i Active %i Floating %i\n"
|
||||
"State %i Shown %i Visibility %i Active %i\n"
|
||||
"Member of groups %i\n"
|
||||
#if USE_COMPOSITE
|
||||
"Opacity %3i(%x) Shadow %i\n"
|
||||
|
@ -1118,8 +1118,8 @@ EwinShowInfo2(const EWin * ewin)
|
|||
ewin->never_use_area, ewin->fixedpos, EoGetDesk(ewin),
|
||||
EoGetLayer(ewin), ewin->o.ilayer,
|
||||
ewin->iconified, EoIsSticky(ewin), ewin->shaded,
|
||||
ewin->docked, ewin->state, EoIsShown(ewin), ewin->active,
|
||||
EoIsFloating(ewin), ewin->num_groups, ewin->ewmh.opacity
|
||||
ewin->docked, ewin->state, EoIsShown(ewin), ewin->visibility,
|
||||
ewin->active, ewin->num_groups, ewin->ewmh.opacity
|
||||
#if USE_COMPOSITE
|
||||
, EoGetOpacity(ewin), EoGetShadow(ewin)
|
||||
#endif
|
||||
|
@ -1310,6 +1310,11 @@ IPC_Compat(const char *params)
|
|||
if (*p == '?')
|
||||
IpcPrintf("Current Desktop: %d\n", DesksGetCurrent());
|
||||
}
|
||||
else if (!strcmp(param1, "num_desks"))
|
||||
{
|
||||
if (*p == '?')
|
||||
IpcPrintf("Number of Desks: %d\n", DesksGetNumber());
|
||||
}
|
||||
else
|
||||
{
|
||||
ok = 0;
|
||||
|
|
Loading…
Reference in New Issue