1 --- WindowMaker-0.51.0/src/gnome.c.areas Wed Jan 20 10:00:00 1999
2 +++ WindowMaker-0.51.0/src/gnome.c Mon Feb 15 17:23:09 1999
4 static Atom _XA_WIN_APP_STATE;
5 static Atom _XA_WIN_EXPANDED_SIZE;
6 static Atom _XA_WIN_ICONS;
7 +static Atom _XA_WIN_AREA;
8 +static Atom _XA_WIN_AREA_COUNT;
9 static Atom _XA_WIN_WORKSPACE;
10 static Atom _XA_WIN_WORKSPACE_COUNT;
11 static Atom _XA_WIN_WORKSPACE_NAMES;
14 wGNOMEInitStuff(WScreen *scr)
16 - Atom supportedStuff[10];
17 + Atom supportedStuff[12];
20 if (!_XA_WIN_SUPPORTING_WM_CHECK) {
23 _XA_WIN_ICONS = XInternAtom(dpy, "_WIN_ICONS", False);
25 + _XA_WIN_AREA = XInternAtom(dpy, "_WIN_AREA", False);
27 + _XA_WIN_AREA_COUNT =
28 + XInternAtom(dpy, "_WIN_AREA_COUNT", False);
30 _XA_WIN_WORKSPACE = XInternAtom(dpy, "_WIN_WORKSPACE", False);
32 _XA_WIN_WORKSPACE_COUNT =
33 XInternAtom(dpy, "_WIN_WORKSPACE_COUNT", False);
36 _XA_WIN_WORKSPACE_NAMES =
37 XInternAtom(dpy, "_WIN_WORKSPACE_NAMES", False);
40 supportedStuff[count++] = _XA_WIN_APP_STATE;
41 supportedStuff[count++] = _XA_WIN_EXPANDED_SIZE;
42 supportedStuff[count++] = _XA_WIN_ICONS;
43 + supportedStuff[count++] = _XA_WIN_AREA;
44 + supportedStuff[count++] = _XA_WIN_AREA_COUNT;
45 supportedStuff[count++] = _XA_WIN_WORKSPACE;
46 supportedStuff[count++] = _XA_WIN_WORKSPACE_COUNT;
47 supportedStuff[count++] = _XA_WIN_WORKSPACE_NAMES;
49 wGNOMEUpdateWorkspaceHints(WScreen *scr)
54 val = scr->workspace_count;
58 XChangeProperty(dpy, scr->root_win, _XA_WIN_WORKSPACE_COUNT, XA_CARDINAL,
59 32, PropModeReplace, (unsigned char*)&val, 1);
60 + XChangeProperty(dpy, scr->root_win, _XA_WIN_AREA_COUNT, XA_CARDINAL,
61 + 32, PropModeReplace, (unsigned char*)&val2, 2);
63 wGNOMEUpdateWorkspaceNamesHint(scr);
66 wGNOMEUpdateCurrentWorkspaceHint(WScreen *scr)
71 val = scr->current_workspace;
75 XChangeProperty(dpy, scr->root_win, _XA_WIN_WORKSPACE, XA_CARDINAL,
76 32, PropModeReplace, (unsigned char*)&val, 1);
77 + XChangeProperty(dpy, scr->root_win, _XA_WIN_AREA, XA_CARDINAL,
78 + 32, PropModeReplace, (unsigned char*)&val2, 2);