]> git.pld-linux.org Git - packages/WindowMaker.git/blob - WindowMaker-areas.patch
- don't disable xft configuration in WPrefs
[packages/WindowMaker.git] / WindowMaker-areas.patch
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
3 @@ -94,6 +94,8 @@
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;
12 @@ -104,7 +106,7 @@
13  void
14  wGNOMEInitStuff(WScreen *scr)
15  {
16 -    Atom supportedStuff[10];
17 +    Atom supportedStuff[12];
18      int count;
19  
20      if (!_XA_WIN_SUPPORTING_WM_CHECK) {
21 @@ -126,11 +128,16 @@
22  
23         _XA_WIN_ICONS = XInternAtom(dpy, "_WIN_ICONS", False);
24  
25 +       _XA_WIN_AREA = XInternAtom(dpy, "_WIN_AREA", False);
26 +
27 +       _XA_WIN_AREA_COUNT = 
28 +           XInternAtom(dpy, "_WIN_AREA_COUNT", False);
29 +
30         _XA_WIN_WORKSPACE = XInternAtom(dpy, "_WIN_WORKSPACE", False);
31  
32         _XA_WIN_WORKSPACE_COUNT = 
33             XInternAtom(dpy, "_WIN_WORKSPACE_COUNT", False);
34 -
35 +       
36         _XA_WIN_WORKSPACE_NAMES = 
37             XInternAtom(dpy, "_WIN_WORKSPACE_NAMES", False);
38  
39 @@ -173,6 +180,8 @@
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;
48 @@ -221,11 +230,16 @@
49  wGNOMEUpdateWorkspaceHints(WScreen *scr)
50  {
51      long val;
52 +    long val2[2];
53  
54      val = scr->workspace_count;
55 +    val2[0] = 1;
56 +    val2[1] = 1;
57  
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);
62  
63      wGNOMEUpdateWorkspaceNamesHint(scr);
64  }
65 @@ -254,11 +268,16 @@
66  wGNOMEUpdateCurrentWorkspaceHint(WScreen *scr)
67  {
68      long val;
69 +    long val2[2];
70  
71      val = scr->current_workspace;
72 +    val2[0] = 0;
73 +    val2[1] = 0;
74  
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);
79  }
80  
81  
This page took 0.041281 seconds and 3 git commands to generate.