EWM hint support is no longer optional. Split off hints.h.

SVN revision: 18049
This commit is contained in:
Kim Woelders 2005-10-27 23:18:35 +00:00
parent 3eb7cd2d95
commit 9dca3e88f1
29 changed files with 173 additions and 171 deletions

View File

@ -80,9 +80,6 @@ AC_ARG_ENABLE(sound,
[ --enable-sound compile with sound support [default=yes]],,
enable_sound=yes)
AC_ARG_ENABLE(hints-ewmh,
[ --enable-hints-ewmh compile with Extended Window Manager Hints support [default=yes]],,
enable_hints_ewmh=yes)
AC_ARG_ENABLE(hints-gnome,
[ --enable-hints-gnome compile with GNOME(<2.0) hints support [default=no]],,
enable_hints_gnome=no)
@ -91,13 +88,9 @@ AC_ARG_ENABLE(ecore-x,
[ --enable-ecore-x use ecore-x interface to X11 [default=no]],,
enable_ecore_x=no)
if test "x$enable_hints_ewmh" = "xyes"; then
AC_DEFINE(ENABLE_EWMH, 1, [Extended Window Manager Hints])
fi
if test "x$enable_hints_gnome" = "xyes"; then
AC_DEFINE(ENABLE_GNOME, 1, [GNOME(<2.0) Hints])
fi
AM_CONDITIONAL(ENABLE_EWMH, test "x$enable_hints_ewmh" = "xyes")
AM_CONDITIONAL(ENABLE_GNOME, test "x$enable_hints_gnome" = "xyes")
dnl The following test must come after AM_GNU_GETTEXT as it relies on

116
src/E.h
View File

@ -1075,32 +1075,6 @@ void WaitEvent(void);
void EventDebugInit(const char *s);
void EventShow(const XEvent * ev);
#if ENABLE_EWMH
/* ewmh.c */
void EWMH_Init(Window win_wm_check);
void EWMH_SetDesktopCount(void);
void EWMH_SetDesktopRoots(void);
void EWMH_SetDesktopNames(void);
void EWMH_SetDesktopSize(void);
void EWMH_SetCurrentDesktop(void);
void EWMH_SetDesktopViewport(void);
void EWMH_SetWorkArea(void);
void EWMH_SetClientList(void);
void EWMH_SetClientStacking(void);
void EWMH_SetActiveWindow(Window win);
void EWMH_SetShowingDesktop(int on);
void EWMH_SetWindowName(Window win, const char *name);
void EWMH_SetWindowDesktop(const EWin * ewin);
void EWMH_SetWindowState(const EWin * ewin);
void EWMH_SetWindowBorder(const EWin * ewin);
void EWMH_SetWindowOpacity(const EWin * ewin);
void EWMH_SetWindowActions(const EWin * ewin);
void EWMH_GetWindowHints(EWin * ewin);
void EWMH_DelWindowHints(const EWin * ewin);
void EWMH_ProcessClientMessage(XClientMessageEvent * event);
void EWMH_ProcessPropertyChange(EWin * ewin, Atom atom_change);
#endif
/* extinitwin.c */
Window ExtInitWinCreate(void);
void ExtInitWinSet(Window win);
@ -1189,23 +1163,6 @@ int FontConfigLoad(FILE * fs);
void FontConfigUnload(void);
const char *FontLookup(const char *name);
#if ENABLE_GNOME
/* gnome.c */
void GNOME_SetCurrentDesk(void);
void GNOME_SetDeskCount(void);
void GNOME_SetDeskNames(void);
void GNOME_SetClientList(void);
void GNOME_SetEwinDesk(const EWin * ewin);
void GNOME_SetEwinArea(const EWin * ewin);
void GNOME_SetHint(const EWin * ewin);
void GNOME_SetCurrentArea(void);
void GNOME_SetAreaCount(void);
void GNOME_GetHints(EWin * ewin, Atom atom_change);
void GNOME_DelHints(const EWin * ewin);
void GNOME_SetHints(Window win_wm_check);
void GNOME_ProcessClientMessage(XClientMessageEvent * event);
#endif
/* grabs.c */
int GrabKeyboardSet(Window win);
int GrabKeyboardRelease(void);
@ -1236,75 +1193,6 @@ void SignalsRestore(void);
void HandleXError(Display * d, XErrorEvent * ev);
void HandleXIOError(Display * d);
/* hints.c */
void HintsInit(void);
void HintsSetDesktopConfig(void);
void HintsSetViewportConfig(void);
void HintsSetCurrentDesktop(void);
void HintsSetDesktopViewport(void);
void HintsSetClientList(void);
void HintsSetClientStacking(void);
void HintsSetActiveWindow(Window win);
void HintsSetWindowName(Window win, const char *name);
void HintsSetWindowClass(Window win, const char *name,
const char *clss);
void HintsSetWindowDesktop(const EWin * ewin);
void HintsSetWindowArea(const EWin * ewin);
void HintsSetWindowState(const EWin * ewin);
void HintsSetWindowOpacity(const EWin * ewin);
void HintsSetWindowBorder(const EWin * ewin);
void HintsGetWindowHints(EWin * ewin);
void HintsDelWindowHints(const EWin * ewin);
void HintsProcessPropertyChange(EWin * ewin, Atom atom_change);
void HintsProcessClientMessage(XClientMessageEvent * event);
Pixmap HintsGetRootPixmap(Window win);
void HintsSetRootHints(Window win);
void HintsSetRootInfo(Window win, Pixmap pmap,
unsigned int color);
void EHintsSetInfo(const EWin * ewin);
int EHintsGetInfo(EWin * ewin);
void EHintsSetDeskInfo(void);
void EHintsGetDeskInfo(void);
void EHintsSetInfoOnAll(void);
/* icccm.c */
void ICCCM_Init(void);
void ICCCM_ProcessClientMessage(XClientMessageEvent * event);
void ICCCM_GetTitle(EWin * ewin, Atom atom_change);
void ICCCM_GetColormap(EWin * ewin);
void ICCCM_Delete(const EWin * ewin);
void ICCCM_Save(const EWin * ewin);
void ICCCM_Iconify(const EWin * ewin);
void ICCCM_DeIconify(const EWin * ewin);
void ICCCM_SizeMatch(const EWin * ewin, int wi, int hi, int *pwo,
int *pho);
void ICCCM_MatchSize(EWin * ewin);
void ICCCM_GetIncrementalSize(EWin * ewin, unsigned int w,
unsigned int h, unsigned int *wi,
unsigned int *hi);
void ICCCM_SetSizeConstraints(EWin * ewin, unsigned int wmin,
unsigned int hmin,
unsigned int wmax,
unsigned int hmax,
unsigned int wbase,
unsigned int hbase,
unsigned int winc,
unsigned int hinc, double amin,
double amax);
void ICCCM_Configure(const EWin * ewin);
void ICCCM_AdoptStart(const EWin * ewin);
void ICCCM_Adopt(const EWin * ewin);
void ICCCM_Withdraw(const EWin * ewin);
void ICCCM_Cmap(EWin * ewin);
void ICCCM_Focus(const EWin * ewin);
void ICCCM_GetGeoms(EWin * ewin, Atom atom_change);
void ICCCM_GetInfo(EWin * ewin, Atom atom_change);
void ICCCM_GetHints(EWin * ewin, Atom atom_change);
void ICCCM_SetIconSizes(void);
void ICCCM_ProcessPropertyChange(EWin * ewin, Atom atom_change);
/* ipc.c */
void __PRINTF__ IpcPrintf(const char *fmt, ...);
int HandleIPC(const char *params, Client * c);
@ -1397,10 +1285,6 @@ int ActionResizeStart(EWin * ewin, int grab, int hv);
int ActionResizeEnd(EWin * ewin);
void ActionResizeHandleMotion(void);
/* mwm.c */
void MWM_GetHints(EWin * ewin, Atom atom_change);
void MWM_SetInfo(void);
/* progress.c */
typedef struct _progressbar Progressbar;

View File

@ -1,12 +1,9 @@
SUBDIRS =
EXTRA_DIST = ewmh.c gnome.c ecompmgr.c ecompmgr.h snprintf.c
EXTRA_DIST = gnome.c ecompmgr.c ecompmgr.h snprintf.c
bin_PROGRAMS = e16
if ENABLE_EWMH
SRCS_EWMH = ewmh.c
endif
if ENABLE_GNOME
SRCS_GNOME = gnome.c
endif
@ -53,6 +50,7 @@ e16_SOURCES = \
ewins.h \
ewin-ops.c \
ewin-ops.h \
ewmh.c \
extinitwin.c \
file.c \
finders.c \
@ -63,6 +61,7 @@ e16_SOURCES = \
groups.c \
handlers.c \
hints.c \
hints.h \
hiwin.c \
hiwin.h \
icccm.c \
@ -112,7 +111,7 @@ e16_SOURCES = \
x.c \
xwin.h \
zoom.c \
$(SRCS_EWMH) $(SRCS_GNOME) \
$(SRCS_GNOME) \
$(SRCS_ECOMPMGR) \
$(SRCS_SNPRINTF)

View File

@ -24,6 +24,7 @@
#include "desktops.h"
#include "emodule.h"
#include "ewins.h"
#include "hints.h"
static int area_w = 3;
static int area_h = 3;

View File

@ -26,6 +26,7 @@
#include "backgrounds.h"
#include "desktops.h"
#include "emodule.h"
#include "hints.h" /* FIXME - Should not be here */
#include "iclass.h"
#include "tclass.h"
#include "xwin.h"

View File

@ -23,6 +23,7 @@
*/
#include "E.h"
#include "ewins.h"
#include "hints.h"
#include "iclass.h"
#include "snaps.h"
#include "tclass.h"

View File

@ -24,6 +24,7 @@
#include "desktops.h"
#include "eobj.h"
#include "ewins.h"
#include "hints.h"
#include "iclass.h"
#include "tclass.h"
#include "xwin.h"

View File

@ -28,6 +28,7 @@
#include "emodule.h"
#include "eobj.h"
#include "ewins.h"
#include "hints.h"
#include "tooltips.h"
#include "xwin.h"
#include <time.h>

View File

@ -23,6 +23,7 @@
*/
#include "E.h"
#include "ewins.h"
#include "hints.h"
#include "iclass.h"
#include "tclass.h"
#include "xwin.h"

View File

@ -23,6 +23,7 @@
#include "E.h"
#include "desktops.h"
#include "ewins.h"
#include "hints.h"
#include "xwin.h"
#include <sys/ipc.h>
#include <sys/shm.h>

View File

@ -26,6 +26,7 @@
#include "ecore-e16.h"
#include "eobj.h"
#include "ewins.h" /* FIXME - Should not be here */
#include "hints.h"
#include "xwin.h"
void

View File

@ -27,6 +27,7 @@
#include "eobj.h"
#include "ewins.h"
#include "ewin-ops.h"
#include "hints.h"
#include "iclass.h" /* FIXME - Should not be here */
#include "snaps.h"
#include "xwin.h"

View File

@ -27,6 +27,7 @@
#include "emodule.h"
#include "eobj.h"
#include "ewins.h"
#include "hints.h"
#include "icons.h"
#include "snaps.h"
#include "xwin.h"
@ -351,14 +352,12 @@ EwinDestroy(EWin * ewin)
Efree(ewin->icccm.wm_command);
if (ewin->icccm.wm_machine)
Efree(ewin->icccm.wm_machine);
#if ENABLE_EWMH
if (ewin->ewmh.wm_name)
Efree(ewin->ewmh.wm_name);
if (ewin->ewmh.wm_icon_name)
Efree(ewin->ewmh.wm_icon_name);
if (ewin->ewmh.wm_icon)
Efree(ewin->ewmh.wm_icon);
#endif
if (ewin->bits)
Efree(ewin->bits);
if (ewin->session_id)
@ -1424,11 +1423,9 @@ EwinGetName(const EWin * ewin)
if (!ewin)
return NULL;
#if ENABLE_EWMH
name = ewin->ewmh.wm_name;
if (name)
goto done;
#endif
name = ewin->icccm.wm_name;
if (name)
goto done;
@ -1442,11 +1439,9 @@ EwinGetIconName(const EWin * ewin)
{
const char *name;
#if ENABLE_EWMH
name = ewin->ewmh.wm_icon_name;
if (name)
goto done;
#endif
name = ewin->icccm.wm_icon_name;
if (name)
goto done;
@ -1672,6 +1667,8 @@ EwinsSetFree(void)
if (EventDebug(EDBUG_TYPE_SESSION))
Eprintf("EwinsSetFree\n");
EHintsSetInfoOnAll();
lst = EwinListStackGet(&num);
for (i = num - 1; i >= 0; i--)
{

View File

@ -27,6 +27,7 @@
#include "desktops.h"
#include "ecore-e16.h"
#include "ewins.h"
#include "hints.h"
/*
* _NET_WM_MOVERESIZE client message actions

View File

@ -25,6 +25,7 @@
#include "desktops.h" /* FIXME - Should not be here */
#include "emodule.h"
#include "ewins.h"
#include "hints.h"
#include "xwin.h"
#define EwinListFocusRaise(ewin) EobjListFocusRaise(EoObj(ewin))

View File

@ -25,6 +25,7 @@
#include "desktops.h"
#include "ecore-e16.h"
#include "ewins.h"
#include "hints.h"
#include "xwin.h"
/* WIN_WM_NAME STRING - contains a string identifier for the WM's name */

View File

@ -27,6 +27,7 @@
#include "desktops.h" /* Should not be here */
#include "ecore-e16.h"
#include "ewins.h"
#include "hints.h"
#include "xwin.h"
/*
@ -42,12 +43,11 @@ HintsInit(void)
win = ECreateWindow(VRoot.win, -200, -200, 5, 5, 0);
ICCCM_Init();
MWM_SetInfo();
#if ENABLE_GNOME
GNOME_SetHints(win);
#endif
#if ENABLE_EWMH
EWMH_Init(win);
#endif
atom = XInternAtom(disp, "ENLIGHTENMENT_VERSION", False);
ecore_x_window_prop_string_set(VRoot.win, atom, e_wm_version);
@ -72,18 +72,14 @@ HintsSetClientList(void)
#if ENABLE_GNOME
GNOME_SetClientList();
#endif
#if ENABLE_EWMH
EWMH_SetClientList();
EWMH_SetClientStacking();
#endif
}
void
HintsSetClientStacking(void)
{
#if ENABLE_EWMH
EWMH_SetClientStacking();
#endif
}
void
@ -93,12 +89,10 @@ HintsSetDesktopConfig(void)
GNOME_SetDeskCount();
GNOME_SetDeskNames();
#endif
#if ENABLE_EWMH
EWMH_SetDesktopCount();
EWMH_SetDesktopRoots();
EWMH_SetDesktopNames();
EWMH_SetWorkArea();
#endif
}
void
@ -107,9 +101,7 @@ HintsSetViewportConfig(void)
#if ENABLE_GNOME
GNOME_SetAreaCount();
#endif
#if ENABLE_EWMH
EWMH_SetDesktopSize();
#endif
}
void
@ -118,9 +110,7 @@ HintsSetCurrentDesktop(void)
#if ENABLE_GNOME
GNOME_SetCurrentDesk();
#endif
#if ENABLE_EWMH
EWMH_SetCurrentDesktop();
#endif
HintsSetDesktopViewport();
}
@ -130,17 +120,13 @@ HintsSetDesktopViewport(void)
#if ENABLE_GNOME
GNOME_SetCurrentArea();
#endif
#if ENABLE_EWMH
EWMH_SetDesktopViewport();
#endif
}
void
HintsSetActiveWindow(Window win)
{
#if ENABLE_EWMH
EWMH_SetActiveWindow(win);
#endif
}
void
@ -148,9 +134,7 @@ HintsSetWindowName(Window win, const char *name)
{
ecore_x_window_prop_string_set(win, ECORE_X_ATOM_WM_NAME, name);
#if ENABLE_EWMH
EWMH_SetWindowName(win, name);
#endif
}
void
@ -171,9 +155,7 @@ HintsSetWindowDesktop(const EWin * ewin)
#if ENABLE_GNOME
GNOME_SetEwinDesk(ewin);
#endif
#if ENABLE_EWMH
EWMH_SetWindowDesktop(ewin);
#endif
}
void
@ -190,26 +172,20 @@ HintsSetWindowState(const EWin * ewin)
#if ENABLE_GNOME
GNOME_SetHint(ewin);
#endif
#if ENABLE_EWMH
EWMH_SetWindowState(ewin);
EWMH_SetWindowActions(ewin);
#endif
}
void
HintsSetWindowOpacity(const EWin * ewin)
{
#if ENABLE_EWMH
EWMH_SetWindowOpacity(ewin);
#endif
}
void
HintsSetWindowBorder(const EWin * ewin)
{
#if ENABLE_EWMH
EWMH_SetWindowBorder(ewin);
#endif
}
/*
@ -222,9 +198,7 @@ HintsGetWindowHints(EWin * ewin)
#if ENABLE_GNOME
GNOME_GetHints(ewin, 0);
#endif
#if ENABLE_EWMH
EWMH_GetWindowHints(ewin);
#endif
}
/*
@ -237,9 +211,7 @@ HintsDelWindowHints(const EWin * ewin)
#if ENABLE_GNOME
GNOME_DelHints(ewin);
#endif
#if ENABLE_EWMH
EWMH_DelWindowHints(ewin);
#endif
}
/*
@ -257,10 +229,8 @@ HintsProcessPropertyChange(EWin * ewin, Atom atom_change)
if (!memcmp(name, "WM_", 3))
ICCCM_ProcessPropertyChange(ewin, atom_change);
#if ENABLE_EWMH
else if (!memcmp(name, "_NET_", 5))
EWMH_ProcessPropertyChange(ewin, atom_change);
#endif
#if 0 /* No! - ENABLE_GNOME */
else if (!memcmp(name, "_WIN_", 5))
GNOME_GetHints(ewin, atom_change);
@ -279,10 +249,8 @@ HintsProcessClientMessage(XClientMessageEvent * event)
if (!memcmp(name, "WM_", 3))
ICCCM_ProcessClientMessage(event);
#if ENABLE_EWMH
else if (!memcmp(name, "_NET_", 5))
EWMH_ProcessClientMessage(event);
#endif
#if ENABLE_GNOME
else if (!memcmp(name, "_WIN_", 5))
GNOME_ProcessClientMessage(event);

142
src/hints.h Normal file
View File

@ -0,0 +1,142 @@
/*
* Copyright (C) 2000-2005 Carsten Haitzler, Geoff Harrison,
* and various contributors
* Copyright (C) 2004-2005 Kim Woelders
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies of the Software, its documentation and marketing & publicity
* materials, and acknowledgment shall be given in the documentation, materials
* and software packages that this Software was used.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#ifndef _HINTS_H_
#define _HINTS_H_
/* ewmh.c */
void EWMH_Init(Window win_wm_check);
void EWMH_SetDesktopCount(void);
void EWMH_SetDesktopRoots(void);
void EWMH_SetDesktopNames(void);
void EWMH_SetDesktopSize(void);
void EWMH_SetCurrentDesktop(void);
void EWMH_SetDesktopViewport(void);
void EWMH_SetWorkArea(void);
void EWMH_SetClientList(void);
void EWMH_SetClientStacking(void);
void EWMH_SetActiveWindow(Window win);
void EWMH_SetShowingDesktop(int on);
void EWMH_SetWindowName(Window win, const char *name);
void EWMH_SetWindowDesktop(const EWin * ewin);
void EWMH_SetWindowState(const EWin * ewin);
void EWMH_SetWindowBorder(const EWin * ewin);
void EWMH_SetWindowOpacity(const EWin * ewin);
void EWMH_SetWindowActions(const EWin * ewin);
void EWMH_GetWindowHints(EWin * ewin);
void EWMH_DelWindowHints(const EWin * ewin);
void EWMH_ProcessClientMessage(XClientMessageEvent * event);
void EWMH_ProcessPropertyChange(EWin * ewin, Atom atom_change);
#if ENABLE_GNOME
/* gnome.c */
void GNOME_SetCurrentDesk(void);
void GNOME_SetDeskCount(void);
void GNOME_SetDeskNames(void);
void GNOME_SetClientList(void);
void GNOME_SetEwinDesk(const EWin * ewin);
void GNOME_SetEwinArea(const EWin * ewin);
void GNOME_SetHint(const EWin * ewin);
void GNOME_SetCurrentArea(void);
void GNOME_SetAreaCount(void);
void GNOME_GetHints(EWin * ewin, Atom atom_change);
void GNOME_DelHints(const EWin * ewin);
void GNOME_SetHints(Window win_wm_check);
void GNOME_ProcessClientMessage(XClientMessageEvent * event);
#endif
/* hints.c */
void HintsInit(void);
void HintsSetDesktopConfig(void);
void HintsSetViewportConfig(void);
void HintsSetCurrentDesktop(void);
void HintsSetDesktopViewport(void);
void HintsSetClientList(void);
void HintsSetClientStacking(void);
void HintsSetActiveWindow(Window win);
void HintsSetWindowName(Window win, const char *name);
void HintsSetWindowClass(Window win, const char *name,
const char *clss);
void HintsSetWindowDesktop(const EWin * ewin);
void HintsSetWindowArea(const EWin * ewin);
void HintsSetWindowState(const EWin * ewin);
void HintsSetWindowOpacity(const EWin * ewin);
void HintsSetWindowBorder(const EWin * ewin);
void HintsGetWindowHints(EWin * ewin);
void HintsDelWindowHints(const EWin * ewin);
void HintsProcessPropertyChange(EWin * ewin, Atom atom_change);
void HintsProcessClientMessage(XClientMessageEvent * event);
Pixmap HintsGetRootPixmap(Window win);
void HintsSetRootHints(Window win);
void HintsSetRootInfo(Window win, Pixmap pmap,
unsigned int color);
void EHintsSetInfo(const EWin * ewin);
int EHintsGetInfo(EWin * ewin);
void EHintsSetDeskInfo(void);
void EHintsGetDeskInfo(void);
void EHintsSetInfoOnAll(void);
/* icccm.c */
void ICCCM_Init(void);
void ICCCM_ProcessClientMessage(XClientMessageEvent * event);
void ICCCM_GetTitle(EWin * ewin, Atom atom_change);
void ICCCM_GetColormap(EWin * ewin);
void ICCCM_Delete(const EWin * ewin);
void ICCCM_Save(const EWin * ewin);
void ICCCM_Iconify(const EWin * ewin);
void ICCCM_DeIconify(const EWin * ewin);
void ICCCM_SizeMatch(const EWin * ewin, int wi, int hi, int *pwo,
int *pho);
void ICCCM_MatchSize(EWin * ewin);
void ICCCM_GetIncrementalSize(EWin * ewin, unsigned int w,
unsigned int h, unsigned int *wi,
unsigned int *hi);
void ICCCM_SetSizeConstraints(EWin * ewin, unsigned int wmin,
unsigned int hmin,
unsigned int wmax,
unsigned int hmax,
unsigned int wbase,
unsigned int hbase,
unsigned int winc,
unsigned int hinc, double amin,
double amax);
void ICCCM_Configure(const EWin * ewin);
void ICCCM_AdoptStart(const EWin * ewin);
void ICCCM_Adopt(const EWin * ewin);
void ICCCM_Withdraw(const EWin * ewin);
void ICCCM_Cmap(EWin * ewin);
void ICCCM_Focus(const EWin * ewin);
void ICCCM_GetGeoms(EWin * ewin, Atom atom_change);
void ICCCM_GetInfo(EWin * ewin, Atom atom_change);
void ICCCM_GetHints(EWin * ewin, Atom atom_change);
void ICCCM_SetIconSizes(void);
void ICCCM_ProcessPropertyChange(EWin * ewin, Atom atom_change);
/* mwm.c */
void MWM_GetHints(EWin * ewin, Atom atom_change);
void MWM_SetInfo(void);
#endif /* _HINTS_H_ */

View File

@ -25,6 +25,7 @@
#include "desktops.h"
#include "ecore-e16.h"
#include "ewins.h"
#include "hints.h"
#include "xwin.h"
void

View File

@ -27,6 +27,7 @@
#include "emodule.h"
#include "eobj.h"
#include "ewins.h"
#include "hints.h"
#include "iclass.h"
#include "icons.h"
#include "menus.h"

View File

@ -27,6 +27,7 @@
#include "eobj.h"
#include "ewins.h"
#include "ewin-ops.h"
#include "hints.h" /* FIXME - Should not be here */
#include "snaps.h"
#include "xwin.h"
#include <ctype.h>

View File

@ -24,6 +24,7 @@
#include "E.h"
#include "desktops.h"
#include "emodule.h"
#include "hints.h"
#include "snaps.h"
#include "timestamp.h"
#include "xwin.h"

View File

@ -25,6 +25,7 @@
#include "emodule.h"
#include "eobj.h"
#include "ewins.h"
#include "hints.h"
#include "iclass.h"
#include "menus.h"
#include "tclass.h"

View File

@ -25,6 +25,7 @@
#include "desktops.h"
#include "emodule.h"
#include "ewins.h"
#include "hints.h"
#include "xwin.h"
static struct

View File

@ -22,6 +22,7 @@
*/
#include "E.h"
#include "ewins.h"
#include "hints.h"
/* Motif window hints */
#define MWM_HINTS_FUNCTIONS (1L << 0)

View File

@ -26,6 +26,7 @@
#include "desktops.h"
#include "emodule.h"
#include "ewins.h"
#include "hints.h"
#include "hiwin.h"
#include "iclass.h"
#include "menus.h"

View File

@ -25,6 +25,7 @@
#include "ecore-e16.h"
#include "emodule.h"
#include "ewins.h"
#include "hints.h"
#include "snaps.h"
#include "xwin.h"
#include <errno.h>
@ -839,7 +840,6 @@ doSMExit(int mode, const char *params)
if (disp)
{
/* We may get here from HandleXIOError */
EHintsSetInfoOnAll();
EwinsSetFree();
if (Mode.wm.startup && Mode.wm.exiting)
MapUnmap(1);

View File

@ -292,8 +292,6 @@ SetupX(const char *dstr)
"access to, nor have heard of.\n"), ProtocolVersion(disp));
}
MWM_SetInfo();
/* damn that bloody numlock stuff - ok I'd rather XFree got fixed to not */
/* have it as a modifier and everyone have to write specific code to mask */
/* it out - but well.... */

View File

@ -23,6 +23,7 @@
*/
#include "E.h"
#include "ewins.h"
#include "hints.h"
#define MAX_HOR 0x1
#define MAX_VER 0x2