/[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.32 by dreamind, Tue Jan 21 00:57:27 2003 UTC revision 1.33 by dreamind, Tue Jan 28 01:56:36 2003 UTC
# Line 31  clientInitPosition (Client * c) Line 31  clientInitPosition (Client * c)
31  #endif  #endif
32    
33          clientGravitate (c, APPLY);          clientGravitate (c, APPLY);
34          min_x = margins[MARGIN_LEFT];          if (typeDock(c->window))
35          min_y = margins[MARGIN_TOP];                  {
36          max_x = XDisplayWidth (dpy, screen) - margins[MARGIN_RIGHT];                          min_x = 0;
37          max_y = XDisplayHeight (dpy, screen) - margins[MARGIN_BOTTOM];                          min_y = 0;
38                            max_x = XDisplayWidth (dpy, screen);
39                            max_y = XDisplayHeight (dpy, screen);
40                    }
41            else
42                    {
43                            min_x = margins[MARGIN_LEFT];
44                            min_y = margins[MARGIN_TOP];
45                            max_x = XDisplayWidth (dpy, screen) - margins[MARGIN_RIGHT];
46                            max_y = XDisplayHeight (dpy, screen) - margins[MARGIN_BOTTOM];
47                    }
48    
49          if (!(c->size->flags & (PPosition | USPosition)))          if (!(c->size->flags & (PPosition | USPosition)))
50                  {                  {
# Line 429  clientFrame (Window w) Line 439  clientFrame (Window w)
439          c->border_width = attr.border_width;          c->border_width = attr.border_width;
440          for (i = 0; i < BUTTON_COUNT; i++)          for (i = 0; i < BUTTON_COUNT; i++)
441                  c->button_pressed[i] = False;                  c->button_pressed[i] = False;
442            getNetWMStrut(w, margins, c->margins);
443          if (!getGnomeHint (w, win_hints, &c->win_hints))          if (!getGnomeHint (w, win_hints, &c->win_hints))
444                  c->win_hints = 0;                  c->win_hints = 0;
445          if (!getGnomeHint (w, win_state, &c->win_state))          if (!getGnomeHint (w, win_state, &c->win_state))
# Line 572  clientUnframe (Client * c, int remap) Line 583  clientUnframe (Client * c, int remap)
583          printf ("unframing client (%#lx)\n", c->window);          printf ("unframing client (%#lx)\n", c->window);
584  #endif  #endif
585    
586            delNetWMStrut(margins, c->margins);
587          clientGravitate (c, REMOVE);          clientGravitate (c, REMOVE);
588          clientUngrabKeys (c);          clientUngrabKeys (c);
589          XSetWindowBorderWidth (dpy, c->window, c->border_width);          XSetWindowBorderWidth (dpy, c->window, c->border_width);

Legend:
Removed from v.1.32  
changed lines
  Added in v.1.33

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