search for: edgesize

Displaying 2 results from an estimated 2 matches for "edgesize".

2006 Oct 25
2
[PATCH] Edge buttons
...efine SCREEN_EDGE_SIZE_MIN 1 +#define SCREEN_EDGE_SIZE_MAX 50 + #define NUM_OPTIONS(s) (sizeof ((s)->opt) / sizeof (CompOption)) static int @@ -164,6 +168,59 @@ updateDefaultIcon (CompScreen *screen) return TRUE; } +static void +updateScreenEdges (CompScreen *s) +{ + + int edgeSize = 0; + + edgeSize = s->opt[COMP_SCREEN_OPTION_EDGE_SIZE].value.i; + if (edgeSize < 0) + edgeSize = 1; + + struct screenEdgeGeometry { + int xw, x0; + int yh, y0; + int ww, w0; + int hh, h0; + } geometry[SCREEN_EDGE_NUM] = { + { 0, 0, 0, edgeSize, + 0, edgeSize, 1, (-2*e...
2006 Nov 08
2
bug in today's git snapshot with maximizing windows
...50 > + > #define NUM_OPTIONS(s) (sizeof ((s)->opt) / sizeof (CompOption)) > > static int > @@ -164,6 +168,59 @@ updateDefaultIcon (CompScreen *screen) > return TRUE; > } > > +static void > +updateScreenEdges (CompScreen *s) > +{ > + > + int edgeSize = 0; > + > + edgeSize = s->opt[COMP_SCREEN_OPTION_EDGE_SIZE].value.i; > + if (edgeSize < 0) > + edgeSize = 1; > + > + struct screenEdgeGeometry { > + int xw, x0; > + int yh, y0; > + int ww, w0; > + int hh, h0; > + } geometry[SCREEN_E...