/[oroborus]/oroborus/src/workspaces.c
ViewVC logotype

Diff of /oroborus/src/workspaces.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by dreamind, Mon Jul 1 21:25:03 2002 UTC revision 1.6 by dreamind, Tue Jul 2 02:32:11 2002 UTC
# Line 44  workspaceSwitch (int new_ws, Client * c2 Line 44  workspaceSwitch (int new_ws, Client * c2
44    
45    if (c2)    if (c2)
46      {      {
47        setGnomeHint (dpy, c2->window, win_workspace, new_ws);        setGnomeHint (c2->window, win_workspace, new_ws);
48        c2->win_workspace = new_ws;        c2->win_workspace = new_ws;
49      }      }
50    
51    setGnomeHint (dpy, root, win_workspace, new_ws);    setGnomeHint (root, win_workspace, new_ws);
52    setGnomeHint (dpy, root, net_atoms[NET_CURRENT_DESKTOP], new_ws);    setGnomeHint (root, net_atoms[NET_CURRENT_DESKTOP], new_ws);
53    workspace = new_ws;    workspace = new_ws;
54    for (c = clients, i = 0; i < client_count; c = c->next, i++)    for (c = clients, i = 0; i < client_count; c = c->next, i++)
55      {      {
# Line 58  workspaceSwitch (int new_ws, Client * c2 Line 58  workspaceSwitch (int new_ws, Client * c2
58        else        else
59          {          {
60            if (c->win_workspace == new_ws &&            if (c->win_workspace == new_ws &&
61                getWMState (dpy, c->window) != IconicState)                getWMState (c->window) != IconicState)
62              {              {
63                clientShow (c, False);                clientShow (c, False);
64                if (c->focus)                if (c->focus)
# Line 69  workspaceSwitch (int new_ws, Client * c2 Line 69  workspaceSwitch (int new_ws, Client * c2
69              clientHide (c, False);              clientHide (c, False);
70          }          }
71      }      }
72    setGnomeHint (dpy, root, win_workspace, new_ws);    setGnomeHint (root, win_workspace, new_ws);
73    
74    if (c2)    if (c2)
75      f = c2;      f = c2;
# Line 91  workspaceSetCount (int count) Line 91  workspaceSetCount (int count)
91    if (count == workspace_count)    if (count == workspace_count)
92      return;      return;
93    
94    setGnomeHint (dpy, root, win_workspace_count, count);    setGnomeHint (root, win_workspace_count, count);
95    setGnomeHint (dpy, root, net_atoms[NET_NUMBER_OF_DESKTOPS], count);    setGnomeHint (root, net_atoms[NET_NUMBER_OF_DESKTOPS], count);
96    workspace_count = count;    workspace_count = count;
97    
98    for (c = clients, i = 0; i < client_count; c = c->next, i++)    for (c = clients, i = 0; i < client_count; c = c->next, i++)

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26