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

Diff of /oroborus/src/client.c

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

revision 1.44 by dreamind, Mon Feb 10 03:06:57 2003 UTC revision 1.45 by dreamind, Mon Feb 10 05:36:30 2003 UTC
# Line 1047  clientSetFocus (Client * c, int sort) Line 1047  clientSetFocus (Client * c, int sort)
1047                          XSetInputFocus (dpy, c->window, RevertToNone, CurrentTime);                          XSetInputFocus (dpy, c->window, RevertToNone, CurrentTime);
1048                          setFocusHint (c->window);                          setFocusHint (c->window);
1049                          for (tmp = clients, i = 0; i < client_count; tmp = tmp->next, i++)                          for (tmp = clients, i = 0; i < client_count; tmp = tmp->next, i++)
1050                                  if (c != tmp && tmp->win_workspace == workspace && tmp->focus)                                  if (c != tmp && tmp && tmp->win_workspace == workspace && tmp->focus)
1051                                          {                                          {
1052                                                  tmp->focus = False;                                                  if (tmp->focus)
1053                                                  frameDraw(tmp);                                                          {
1054                                                                    tmp->focus = False;
1055                                                                    frameDraw(tmp);
1056                                                            }
1057                                          }                                          }
1058                          c->focus = True;                          c->focus = True;
1059                  }                  }
# Line 1639  clientCycle (Client * c) Line 1642  clientCycle (Client * c)
1642          c2 = clientGetNext (c2, INCLUDE_HIDDEN);          c2 = clientGetNext (c2, INCLUDE_HIDDEN);
1643          if (!c2)          if (!c2)
1644                  cycling = False;                  cycling = False;
1645            else
1646                    {
1647                            clientShow (c2, False);
1648                            clientRaise (c2);
1649                            clientSetFocus (c2, 0);
1650                    }
1651    
1652  #ifdef DEBUG  #ifdef DEBUG
1653          printf ("entering cycle loop\n");          printf ("entering cycle loop\n");
# Line 1646  clientCycle (Client * c) Line 1655  clientCycle (Client * c)
1655    
1656          while (cycling)          while (cycling)
1657                  {                  {
                         clientShow (c2, False);  
                         clientRaise (c2);  
                         clientSetFocus (c2, False);  
   
1658                          XNextEvent (dpy, &ev);                          XNextEvent (dpy, &ev);
1659                          if (ev.type == KeyPress)                          if (ev.type == KeyPress)
1660                                  {                                  {
# Line 1660  clientCycle (Client * c) Line 1665  clientCycle (Client * c)
1665                                                          c2 = clientGetNext (c2, INCLUDE_HIDDEN);                                                          c2 = clientGetNext (c2, INCLUDE_HIDDEN);
1666                                                          if (!c2)                                                          if (!c2)
1667                                                                  cycling = False;                                                                  cycling = False;
1668                                                            else
1669                                                                    {
1670                                                                            clientShow (c2, False);
1671                                                                            clientRaise (c2);
1672                                                                            clientSetFocus (c2, 0);
1673                                                                    }
1674                                                  }                                                  }
1675                                          else                                          else
1676                                                  {                                                  {

Legend:
Removed from v.1.44  
changed lines
  Added in v.1.45

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