Sat Mar 25 20:51:51 PST 2000
(Mandrake) more xinerama support. This time settings dialogs pop up centered on the current head if there isn't a settings dialog already open. Next - edge resistance between heads. SVN revision: 2336
This commit is contained in:
parent
4aff4646d6
commit
2e2ac95de5
|
@ -4459,3 +4459,12 @@ Sat Mar 25 18:17:32 PST 2000
|
||||||
(Mandrake)
|
(Mandrake)
|
||||||
|
|
||||||
oops, left a debugging printf in arrange.c
|
oops, left a debugging printf in arrange.c
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Sat Mar 25 20:51:51 PST 2000
|
||||||
|
(Mandrake)
|
||||||
|
|
||||||
|
more xinerama support. This time settings dialogs pop up centered on the
|
||||||
|
current head if there isn't a settings dialog already open.
|
||||||
|
Next - edge resistance between heads.
|
||||||
|
|
|
@ -1181,11 +1181,11 @@ doMoveEnd(void *params)
|
||||||
if (gwins[i]->floating)
|
if (gwins[i]->floating)
|
||||||
MoveEwinToDesktopAt(gwins[i], d,
|
MoveEwinToDesktopAt(gwins[i], d,
|
||||||
gwins[i]->x - (desks.desk[d].x -
|
gwins[i]->x - (desks.desk[d].x -
|
||||||
desks.
|
desks.desk[gwins[i]->
|
||||||
desk[gwins[i]->desktop].x),
|
desktop].x),
|
||||||
gwins[i]->y - (desks.desk[d].y -
|
gwins[i]->y - (desks.desk[d].y -
|
||||||
desks.
|
desks.desk[gwins[i]->
|
||||||
desk[gwins[i]->desktop].y));
|
desktop].y));
|
||||||
else
|
else
|
||||||
MoveEwinToDesktopAt(gwins[i], d, gwins[i]->x, gwins[i]->y);
|
MoveEwinToDesktopAt(gwins[i], d, gwins[i]->x, gwins[i]->y);
|
||||||
gwins[i]->floating = 0;
|
gwins[i]->floating = 0;
|
||||||
|
|
24
src/areas.c
24
src/areas.c
|
@ -357,13 +357,13 @@ SetCurrentArea(int ax, int ay)
|
||||||
lst[i]->x -
|
lst[i]->x -
|
||||||
(root.w *
|
(root.w *
|
||||||
(ax -
|
(ax -
|
||||||
desks.desk[desks.
|
desks.desk[desks.current].
|
||||||
current].current_area_x)),
|
current_area_x)),
|
||||||
lst[i]->y -
|
lst[i]->y -
|
||||||
(root.h *
|
(root.h *
|
||||||
(ay -
|
(ay -
|
||||||
desks.desk[desks.
|
desks.desk[desks.current].
|
||||||
current].current_area_y)));
|
current_area_y)));
|
||||||
if (setflip)
|
if (setflip)
|
||||||
mode.flipp = 0;
|
mode.flipp = 0;
|
||||||
lst[i]->area_x = a1;
|
lst[i]->area_x = a1;
|
||||||
|
@ -394,13 +394,13 @@ SetCurrentArea(int ax, int ay)
|
||||||
x -
|
x -
|
||||||
(root.w *
|
(root.w *
|
||||||
(ax -
|
(ax -
|
||||||
desks.desk[desks.current].
|
desks.desk[desks.
|
||||||
current_area_x)),
|
current].current_area_x)),
|
||||||
y -
|
y -
|
||||||
(root.h *
|
(root.h *
|
||||||
(ay -
|
(ay -
|
||||||
desks.desk[desks.current].
|
desks.desk[desks.
|
||||||
current_area_y)));
|
current].current_area_y)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* if we're not moving it... move it across */
|
/* if we're not moving it... move it across */
|
||||||
|
@ -419,13 +419,13 @@ SetCurrentArea(int ax, int ay)
|
||||||
lst[i]->x -
|
lst[i]->x -
|
||||||
(root.w *
|
(root.w *
|
||||||
(ax -
|
(ax -
|
||||||
desks.desk[desks.
|
desks.desk[desks.current].
|
||||||
current].current_area_x)),
|
current_area_x)),
|
||||||
lst[i]->y -
|
lst[i]->y -
|
||||||
(root.h *
|
(root.h *
|
||||||
(ay -
|
(ay -
|
||||||
desks.desk[desks.
|
desks.desk[desks.current].
|
||||||
current].current_area_y)));
|
current_area_y)));
|
||||||
if (setflip)
|
if (setflip)
|
||||||
mode.flipp = 0;
|
mode.flipp = 0;
|
||||||
lst[i]->area_x = a1;
|
lst[i]->area_x = a1;
|
||||||
|
|
|
@ -989,8 +989,57 @@ ArrangeEwin(EWin * ewin)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ewin->x = (root.w - ewin->w) >> 1;
|
#ifdef HAS_XINERAMA
|
||||||
ewin->y = (root.h - ewin->h) >> 1;
|
if (xinerama_active)
|
||||||
|
{
|
||||||
|
Window rt, ch;
|
||||||
|
XineramaScreenInfo *screens;
|
||||||
|
int pointer_x, pointer_y;
|
||||||
|
int num;
|
||||||
|
int d;
|
||||||
|
unsigned int ud;
|
||||||
|
|
||||||
|
XQueryPointer(disp, root.win, &rt, &ch, &pointer_x, &pointer_y,
|
||||||
|
&d, &d, &ud);
|
||||||
|
screens = XineramaQueryScreens(disp, &num);
|
||||||
|
for (i = 0; i < num; i++)
|
||||||
|
{
|
||||||
|
for (i = 0; i < num; i++)
|
||||||
|
{
|
||||||
|
if (pointer_x >= screens[i].x_org)
|
||||||
|
{
|
||||||
|
if (pointer_x <=
|
||||||
|
(screens[i].width + screens[i].x_org))
|
||||||
|
{
|
||||||
|
if (pointer_y >= screens[i].y_org)
|
||||||
|
{
|
||||||
|
if (pointer_y <= (screens[i].height +
|
||||||
|
screens[i].y_org))
|
||||||
|
{
|
||||||
|
ewin->x =
|
||||||
|
((screens[i].width - ewin->w) /
|
||||||
|
2) + screens[i].x_org;
|
||||||
|
ewin->y =
|
||||||
|
((screens[i].height - ewin->h) /
|
||||||
|
2) + screens[i].y_org;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
XFree(screens);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
#endif
|
||||||
|
ewin->x = (root.w - ewin->w) >> 1;
|
||||||
|
ewin->y = (root.h - ewin->h) >> 1;
|
||||||
|
#ifdef HAS_XINERAMA
|
||||||
|
}
|
||||||
|
printf("setting it to %d %d\n", ewin->x, ewin->y);
|
||||||
|
fflush(stdout);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
MoveEwin(ewin, ewin->x, ewin->y);
|
MoveEwin(ewin, ewin->x, ewin->y);
|
||||||
}
|
}
|
||||||
|
|
|
@ -630,8 +630,60 @@ AddToFamily(Window win)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
x = (root.w - ewin->w) >> 1;
|
#ifdef HAS_XINERAMA
|
||||||
y = (root.h - ewin->h) >> 1;
|
if (xinerama_active)
|
||||||
|
{
|
||||||
|
Window rt, ch;
|
||||||
|
XineramaScreenInfo *screens;
|
||||||
|
int pointer_x, pointer_y;
|
||||||
|
int num;
|
||||||
|
int d;
|
||||||
|
unsigned int ud;
|
||||||
|
|
||||||
|
XQueryPointer(disp, root.win, &rt, &ch, &pointer_x,
|
||||||
|
&pointer_y, &d, &d, &ud);
|
||||||
|
screens = XineramaQueryScreens(disp, &num);
|
||||||
|
for (i = 0; i < num; i++)
|
||||||
|
{
|
||||||
|
for (i = 0; i < num; i++)
|
||||||
|
{
|
||||||
|
if (pointer_x >= screens[i].x_org)
|
||||||
|
{
|
||||||
|
if (pointer_x <=
|
||||||
|
(screens[i].width + screens[i].x_org))
|
||||||
|
{
|
||||||
|
if (pointer_y >= screens[i].y_org)
|
||||||
|
{
|
||||||
|
if (pointer_y <= (screens[i].height +
|
||||||
|
screens[i].y_org))
|
||||||
|
{
|
||||||
|
ewin->x =
|
||||||
|
((screens[i].width - ewin->w)
|
||||||
|
/ 2) + screens[i].x_org;
|
||||||
|
ewin->y =
|
||||||
|
((screens
|
||||||
|
[i].height -
|
||||||
|
ewin->h) / 2) +
|
||||||
|
screens[i].y_org;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
XFree(screens);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
#endif
|
||||||
|
ewin->x = (root.w - ewin->w) >> 1;
|
||||||
|
ewin->y = (root.h - ewin->h) >> 1;
|
||||||
|
#ifdef HAS_XINERAMA
|
||||||
|
}
|
||||||
|
printf("setting it to %d %d\n", ewin->x, ewin->y);
|
||||||
|
fflush(stdout);
|
||||||
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -2852,8 +2904,8 @@ ShadeEwin(EWin * ewin)
|
||||||
EMoveResizeWindow(disp, ewin->win_container,
|
EMoveResizeWindow(disp, ewin->win_container,
|
||||||
ewin->border->border.left,
|
ewin->border->border.left,
|
||||||
ewin->border->border.top, ww, hh);
|
ewin->border->border.top, ww, hh);
|
||||||
EMoveResizeWindow(disp, ewin->win, ewin->x, ewin->y, ewin->w,
|
EMoveResizeWindow(disp, ewin->win, ewin->x, ewin->y,
|
||||||
ewin->h);
|
ewin->w, ewin->h);
|
||||||
CalcEwinSizes(ewin);
|
CalcEwinSizes(ewin);
|
||||||
if (ewin->client.shaped)
|
if (ewin->client.shaped)
|
||||||
EShapeCombineShape(disp, ewin->win_container,
|
EShapeCombineShape(disp, ewin->win_container,
|
||||||
|
@ -2908,8 +2960,8 @@ ShadeEwin(EWin * ewin)
|
||||||
EMoveResizeWindow(disp, ewin->win_container,
|
EMoveResizeWindow(disp, ewin->win_container,
|
||||||
ewin->border->border.left,
|
ewin->border->border.left,
|
||||||
ewin->border->border.top, ww, hh);
|
ewin->border->border.top, ww, hh);
|
||||||
EMoveResizeWindow(disp, ewin->win, ewin->x, ewin->y, ewin->w,
|
EMoveResizeWindow(disp, ewin->win, ewin->x, ewin->y,
|
||||||
ewin->h);
|
ewin->w, ewin->h);
|
||||||
CalcEwinSizes(ewin);
|
CalcEwinSizes(ewin);
|
||||||
if (ewin->client.shaped)
|
if (ewin->client.shaped)
|
||||||
EShapeCombineShape(disp, ewin->win_container,
|
EShapeCombineShape(disp, ewin->win_container,
|
||||||
|
@ -2962,8 +3014,8 @@ ShadeEwin(EWin * ewin)
|
||||||
EMoveResizeWindow(disp, ewin->win_container,
|
EMoveResizeWindow(disp, ewin->win_container,
|
||||||
ewin->border->border.left,
|
ewin->border->border.left,
|
||||||
ewin->border->border.top, ww, hh);
|
ewin->border->border.top, ww, hh);
|
||||||
EMoveResizeWindow(disp, ewin->win, ewin->x, ewin->y, ewin->w,
|
EMoveResizeWindow(disp, ewin->win, ewin->x, ewin->y,
|
||||||
ewin->h);
|
ewin->w, ewin->h);
|
||||||
CalcEwinSizes(ewin);
|
CalcEwinSizes(ewin);
|
||||||
if (ewin->client.shaped)
|
if (ewin->client.shaped)
|
||||||
EShapeCombineShape(disp, ewin->win_container,
|
EShapeCombineShape(disp, ewin->win_container,
|
||||||
|
@ -3019,8 +3071,8 @@ ShadeEwin(EWin * ewin)
|
||||||
EMoveResizeWindow(disp, ewin->win_container,
|
EMoveResizeWindow(disp, ewin->win_container,
|
||||||
ewin->border->border.left,
|
ewin->border->border.left,
|
||||||
ewin->border->border.top, ww, hh);
|
ewin->border->border.top, ww, hh);
|
||||||
EMoveResizeWindow(disp, ewin->win, ewin->x, ewin->y, ewin->w,
|
EMoveResizeWindow(disp, ewin->win, ewin->x, ewin->y,
|
||||||
ewin->h);
|
ewin->w, ewin->h);
|
||||||
CalcEwinSizes(ewin);
|
CalcEwinSizes(ewin);
|
||||||
if (ewin->client.shaped)
|
if (ewin->client.shaped)
|
||||||
EShapeCombineShape(disp, ewin->win_container,
|
EShapeCombineShape(disp, ewin->win_container,
|
||||||
|
@ -3118,16 +3170,16 @@ UnShadeEwin(EWin * ewin)
|
||||||
ewin->border->border.top,
|
ewin->border->border.top,
|
||||||
ewin->w - ewin->border->border.left -
|
ewin->w - ewin->border->border.left -
|
||||||
ewin->border->border.right, ewin->client.h);
|
ewin->border->border.right, ewin->client.h);
|
||||||
EMoveResizeWindow(disp, ewin->win, ewin->x, ewin->y, ewin->w,
|
EMoveResizeWindow(disp, ewin->win, ewin->x, ewin->y,
|
||||||
ewin->h);
|
ewin->w, ewin->h);
|
||||||
CalcEwinSizes(ewin);
|
CalcEwinSizes(ewin);
|
||||||
if (ewin->client.shaped)
|
if (ewin->client.shaped)
|
||||||
EShapeCombineShape(disp, ewin->win_container,
|
EShapeCombineShape(disp, ewin->win_container,
|
||||||
ShapeBounding,
|
ShapeBounding,
|
||||||
-(ewin->client.w -
|
-(ewin->client.w -
|
||||||
(ewin->w - ewin->border->border.left -
|
(ewin->w -
|
||||||
ewin->border->border.right)),
|
ewin->border->border.left -
|
||||||
0,
|
ewin->border->border.right)), 0,
|
||||||
ewin->client.win, ShapeBounding,
|
ewin->client.win, ShapeBounding,
|
||||||
ShapeSet);
|
ShapeSet);
|
||||||
PropagateShapes(ewin->win);
|
PropagateShapes(ewin->win);
|
||||||
|
@ -3180,8 +3232,8 @@ UnShadeEwin(EWin * ewin)
|
||||||
ewin->border->border.top,
|
ewin->border->border.top,
|
||||||
ewin->w - ewin->border->border.left -
|
ewin->w - ewin->border->border.left -
|
||||||
ewin->border->border.right, ewin->client.h);
|
ewin->border->border.right, ewin->client.h);
|
||||||
EMoveResizeWindow(disp, ewin->win, ewin->x, ewin->y, ewin->w,
|
EMoveResizeWindow(disp, ewin->win, ewin->x, ewin->y,
|
||||||
ewin->h);
|
ewin->w, ewin->h);
|
||||||
CalcEwinSizes(ewin);
|
CalcEwinSizes(ewin);
|
||||||
if (ewin->client.shaped)
|
if (ewin->client.shaped)
|
||||||
EShapeCombineShape(disp, ewin->win_container,
|
EShapeCombineShape(disp, ewin->win_container,
|
||||||
|
@ -3236,15 +3288,16 @@ UnShadeEwin(EWin * ewin)
|
||||||
ewin->border->border.top, ewin->client.w,
|
ewin->border->border.top, ewin->client.w,
|
||||||
ewin->h - ewin->border->border.top -
|
ewin->h - ewin->border->border.top -
|
||||||
ewin->border->border.bottom);
|
ewin->border->border.bottom);
|
||||||
EMoveResizeWindow(disp, ewin->win, ewin->x, ewin->y, ewin->w,
|
EMoveResizeWindow(disp, ewin->win, ewin->x, ewin->y,
|
||||||
ewin->h);
|
ewin->w, ewin->h);
|
||||||
CalcEwinSizes(ewin);
|
CalcEwinSizes(ewin);
|
||||||
if (ewin->client.shaped)
|
if (ewin->client.shaped)
|
||||||
EShapeCombineShape(disp, ewin->win_container,
|
EShapeCombineShape(disp, ewin->win_container,
|
||||||
ShapeBounding,
|
ShapeBounding,
|
||||||
0,
|
0,
|
||||||
-(ewin->client.h -
|
-(ewin->client.h -
|
||||||
(ewin->h - ewin->border->border.top -
|
(ewin->h -
|
||||||
|
ewin->border->border.top -
|
||||||
ewin->border->border.bottom)),
|
ewin->border->border.bottom)),
|
||||||
ewin->client.win, ShapeBounding,
|
ewin->client.win, ShapeBounding,
|
||||||
ShapeSet);
|
ShapeSet);
|
||||||
|
|
144
src/dialog.c
144
src/dialog.c
|
@ -437,8 +437,7 @@ DialogActivateButton(Window win, int inclick)
|
||||||
if (!d)
|
if (!d)
|
||||||
return;
|
return;
|
||||||
if ((d->button[bnum]->hilited) && (d->button[bnum]->clicked) &&
|
if ((d->button[bnum]->hilited) && (d->button[bnum]->clicked) &&
|
||||||
(inclick == 3))
|
(inclick == 3)) doact = 1;
|
||||||
doact = 1;
|
|
||||||
if (inclick == 0)
|
if (inclick == 0)
|
||||||
d->button[bnum]->hilited = 1;
|
d->button[bnum]->hilited = 1;
|
||||||
if (inclick == 1)
|
if (inclick == 1)
|
||||||
|
@ -613,8 +612,66 @@ ShowDialog(Dialog * d)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
MoveEwin(ewin, ((root.w - (ewin->w)) / 2),
|
#ifdef HAS_XINERAMA
|
||||||
((root.h - (ewin->h)) / 2));
|
if (xinerama_active)
|
||||||
|
{
|
||||||
|
Window rt, ch;
|
||||||
|
int d;
|
||||||
|
unsigned int ud;
|
||||||
|
int pointer_x, pointer_y;
|
||||||
|
int num;
|
||||||
|
XineramaScreenInfo *screens;
|
||||||
|
|
||||||
|
XQueryPointer(disp, root.win, &rt, &ch, &pointer_x,
|
||||||
|
&pointer_y, &d, &d, &ud);
|
||||||
|
screens = XineramaQueryScreens(disp, &num);
|
||||||
|
for (i = 0; i < num; i++)
|
||||||
|
{
|
||||||
|
for (i = 0; i < num; i++)
|
||||||
|
{
|
||||||
|
if (pointer_x >= screens[i].x_org)
|
||||||
|
{
|
||||||
|
if (pointer_x <=
|
||||||
|
(screens[i].width +
|
||||||
|
screens[i].x_org))
|
||||||
|
{
|
||||||
|
if (pointer_y >=
|
||||||
|
screens[i].y_org)
|
||||||
|
{
|
||||||
|
if (pointer_y <=
|
||||||
|
(screens[i].height +
|
||||||
|
screens[i].y_org))
|
||||||
|
{
|
||||||
|
ewin->x =
|
||||||
|
((screens
|
||||||
|
[i].width -
|
||||||
|
ewin->w) / 2) +
|
||||||
|
screens[i].x_org;
|
||||||
|
ewin->y =
|
||||||
|
((screens
|
||||||
|
[i].height -
|
||||||
|
ewin->h) / 2) +
|
||||||
|
screens[i].y_org;
|
||||||
|
MoveEwin(ewin,
|
||||||
|
ewin->x,
|
||||||
|
ewin->y);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
XFree(screens);
|
||||||
|
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
#endif
|
||||||
|
MoveEwin(ewin, ((root.w - (ewin->w)) / 2),
|
||||||
|
((root.h - (ewin->h)) / 2));
|
||||||
|
#ifdef HAS_XINERAMA
|
||||||
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -626,8 +683,63 @@ ShowDialog(Dialog * d)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
MoveEwin(ewin, ((root.w - (ewin->w)) / 2),
|
#ifdef HAS_XINERAMA
|
||||||
((root.h - (ewin->h)) / 2));
|
if (xinerama_active)
|
||||||
|
{
|
||||||
|
Window rt, ch;
|
||||||
|
int d;
|
||||||
|
unsigned int ud;
|
||||||
|
int pointer_x, pointer_y;
|
||||||
|
int num;
|
||||||
|
XineramaScreenInfo *screens;
|
||||||
|
|
||||||
|
XQueryPointer(disp, root.win, &rt, &ch, &pointer_x,
|
||||||
|
&pointer_y, &d, &d, &ud);
|
||||||
|
screens = XineramaQueryScreens(disp, &num);
|
||||||
|
for (i = 0; i < num; i++)
|
||||||
|
{
|
||||||
|
for (i = 0; i < num; i++)
|
||||||
|
{
|
||||||
|
if (pointer_x >= screens[i].x_org)
|
||||||
|
{
|
||||||
|
if (pointer_x <=
|
||||||
|
(screens[i].width + screens[i].x_org))
|
||||||
|
{
|
||||||
|
if (pointer_y >= screens[i].y_org)
|
||||||
|
{
|
||||||
|
if (pointer_y <=
|
||||||
|
(screens[i].height +
|
||||||
|
screens[i].y_org))
|
||||||
|
{
|
||||||
|
ewin->x =
|
||||||
|
((screens
|
||||||
|
[i].width -
|
||||||
|
ewin->w) / 2) +
|
||||||
|
screens[i].x_org;
|
||||||
|
ewin->y =
|
||||||
|
((screens
|
||||||
|
[i].height -
|
||||||
|
ewin->h) / 2) +
|
||||||
|
screens[i].y_org;
|
||||||
|
MoveEwin(ewin, ewin->x,
|
||||||
|
ewin->y);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
XFree(screens);
|
||||||
|
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
#endif
|
||||||
|
MoveEwin(ewin, ((root.w - (ewin->w)) / 2),
|
||||||
|
((root.h - (ewin->h)) / 2));
|
||||||
|
#ifdef HAS_XINERAMA
|
||||||
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
RestackEwin(ewin);
|
RestackEwin(ewin);
|
||||||
|
@ -1349,13 +1461,15 @@ DialogRealizeItem(Dialog * d, DItem * di)
|
||||||
(((sh - (dii->padding.top + dii->padding.bottom)
|
(((sh - (dii->padding.top + dii->padding.bottom)
|
||||||
- dii->h) * dii->align_v) >> 10);
|
- dii->h) * dii->align_v) >> 10);
|
||||||
if (dii->win)
|
if (dii->win)
|
||||||
EMoveResizeWindow(disp, dii->win, dii->x, dii->y,
|
EMoveResizeWindow(disp, dii->win, dii->x,
|
||||||
dii->w, dii->h);
|
dii->y, dii->w, dii->h);
|
||||||
if (dii->type == DITEM_CHECKBUTTON)
|
if (dii->type == DITEM_CHECKBUTTON)
|
||||||
EMoveResizeWindow(disp,
|
EMoveResizeWindow(disp,
|
||||||
dii->item.check_button.check_win,
|
dii->item.check_button.check_win,
|
||||||
dii->x, dii->y +
|
dii->x,
|
||||||
((dii->h -
|
dii->y +
|
||||||
|
((dii->h
|
||||||
|
-
|
||||||
dii->item.
|
dii->item.
|
||||||
check_button.check_orig_h) /
|
check_button.check_orig_h) /
|
||||||
2),
|
2),
|
||||||
|
@ -1366,8 +1480,10 @@ DialogRealizeItem(Dialog * d, DItem * di)
|
||||||
if (dii->type == DITEM_RADIOBUTTON)
|
if (dii->type == DITEM_RADIOBUTTON)
|
||||||
EMoveResizeWindow(disp,
|
EMoveResizeWindow(disp,
|
||||||
dii->item.radio_button.radio_win,
|
dii->item.radio_button.radio_win,
|
||||||
dii->x, dii->y +
|
dii->x,
|
||||||
((dii->h -
|
dii->y +
|
||||||
|
((dii->h
|
||||||
|
-
|
||||||
dii->item.
|
dii->item.
|
||||||
radio_button.radio_orig_h) /
|
radio_button.radio_orig_h) /
|
||||||
2),
|
2),
|
||||||
|
@ -1598,8 +1714,8 @@ DialogDrawItems(Dialog * d, DItem * di, int x, int y, int w, int h)
|
||||||
if (di->item.slider.border_win)
|
if (di->item.slider.border_win)
|
||||||
IclassApply(di->item.slider.ic_border,
|
IclassApply(di->item.slider.ic_border,
|
||||||
di->item.slider.border_win,
|
di->item.slider.border_win,
|
||||||
di->item.slider.border_w, di->item.slider.border_h,
|
di->item.slider.border_w,
|
||||||
0, 0, STATE_NORMAL, 0);
|
di->item.slider.border_h, 0, 0, STATE_NORMAL, 0);
|
||||||
state = STATE_NORMAL;
|
state = STATE_NORMAL;
|
||||||
if ((di->hilited) && (di->clicked))
|
if ((di->hilited) && (di->clicked))
|
||||||
state = STATE_CLICKED;
|
state = STATE_CLICKED;
|
||||||
|
|
|
@ -494,7 +494,8 @@ HandleMotion(XEvent * ev)
|
||||||
(gwins
|
(gwins
|
||||||
[i]->reqx,
|
[i]->reqx,
|
||||||
gwins[i]->x,
|
gwins[i]->x,
|
||||||
mode.edge_snap_dist)))))))
|
mode.
|
||||||
|
edge_snap_dist)))))))
|
||||||
{
|
{
|
||||||
jumpx = 1;
|
jumpx = 1;
|
||||||
ndx = gwins[i]->reqx - gwins[i]->x + dx;
|
ndx = gwins[i]->reqx - gwins[i]->x + dx;
|
||||||
|
@ -517,7 +518,8 @@ HandleMotion(XEvent * ev)
|
||||||
(gwins
|
(gwins
|
||||||
[i]->reqy,
|
[i]->reqy,
|
||||||
gwins[i]->y,
|
gwins[i]->y,
|
||||||
mode.edge_snap_dist)))))))
|
mode.
|
||||||
|
edge_snap_dist)))))))
|
||||||
{
|
{
|
||||||
jumpy = 1;
|
jumpy = 1;
|
||||||
ndy = gwins[i]->reqy - gwins[i]->y + dy;
|
ndy = gwins[i]->reqy - gwins[i]->y + dy;
|
||||||
|
@ -980,8 +982,8 @@ HandleMotion(XEvent * ev)
|
||||||
{
|
{
|
||||||
di->item.slider.wanted_val += dy;
|
di->item.slider.wanted_val += dy;
|
||||||
di->item.slider.val = di->item.slider.lower +
|
di->item.slider.val = di->item.slider.lower +
|
||||||
((((di->item.
|
((((di->
|
||||||
slider.base_h - di->item.slider.knob_h -
|
item.slider.base_h - di->item.slider.knob_h -
|
||||||
di->item.slider.wanted_val) *
|
di->item.slider.wanted_val) *
|
||||||
(di->item.slider.upper -
|
(di->item.slider.upper -
|
||||||
di->item.slider.lower)) /
|
di->item.slider.lower)) /
|
||||||
|
@ -2507,13 +2509,13 @@ HandleMouseUp(XEvent * ev)
|
||||||
HideEwin(gwins[i]);
|
HideEwin(gwins[i]);
|
||||||
MoveEwin(gwins[i], gwin_px[i] +
|
MoveEwin(gwins[i], gwin_px[i] +
|
||||||
((desks.desk
|
((desks.desk
|
||||||
[gwins[i]->
|
[gwins[i]->desktop].
|
||||||
desktop].current_area_x) -
|
current_area_x) -
|
||||||
p->hi_ewin->area_x) * root.w,
|
p->hi_ewin->area_x) * root.w,
|
||||||
gwin_py[i] +
|
gwin_py[i] +
|
||||||
((desks.desk
|
((desks.
|
||||||
[gwins[i]->
|
desk[gwins[i]->desktop].
|
||||||
desktop].current_area_y) -
|
current_area_y) -
|
||||||
p->hi_ewin->area_y) * root.h);
|
p->hi_ewin->area_y) * root.h);
|
||||||
if (was_shaded != gwins[i]->shaded)
|
if (was_shaded != gwins[i]->shaded)
|
||||||
InstantShadeEwin(gwins[i]);
|
InstantShadeEwin(gwins[i]);
|
||||||
|
|
|
@ -263,8 +263,7 @@ cp(char *s, char *ss)
|
||||||
EDBUG_RETURN_;
|
EDBUG_RETURN_;
|
||||||
}
|
}
|
||||||
|
|
||||||
time_t
|
time_t moddate(char *s)
|
||||||
moddate(char *s)
|
|
||||||
{
|
{
|
||||||
struct stat st;
|
struct stat st;
|
||||||
|
|
||||||
|
|
|
@ -1745,8 +1745,8 @@ IPC_ImageClass(char *params, Client * c)
|
||||||
if (iclass->norm.normal->real_file)
|
if (iclass->norm.normal->real_file)
|
||||||
im =
|
im =
|
||||||
Imlib_load_image(id,
|
Imlib_load_image(id,
|
||||||
iclass->norm.
|
iclass->norm.normal->
|
||||||
normal->real_file);
|
real_file);
|
||||||
if (im)
|
if (im)
|
||||||
{
|
{
|
||||||
Esnprintf(buf, sizeof(buf),
|
Esnprintf(buf, sizeof(buf),
|
||||||
|
|
|
@ -277,7 +277,8 @@ ShowMenu(Menu * m, char noshow)
|
||||||
*
|
*
|
||||||
* *
|
* *
|
||||||
* * *
|
* * *
|
||||||
* * * * from appearing offscreen */
|
* * * *
|
||||||
|
* * * * * from appearing offscreen */
|
||||||
unsigned int w, h, mw, mh;
|
unsigned int w, h, mw, mh;
|
||||||
|
|
||||||
EDBUG(5, "ShowMenu");
|
EDBUG(5, "ShowMenu");
|
||||||
|
|
|
@ -126,8 +126,7 @@ GetNetText(char *URL)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
time_t
|
time_t GetNetFileDate(char *URL)
|
||||||
GetNetFileDate(char *URL)
|
|
||||||
{
|
{
|
||||||
|
|
||||||
#ifdef AUTOUPGRADE
|
#ifdef AUTOUPGRADE
|
||||||
|
|
|
@ -37,8 +37,7 @@ static Window sc_window = 0;
|
||||||
static Atom sc_atom = 0;
|
static Atom sc_atom = 0;
|
||||||
static ImlibData *imd = NULL;
|
static ImlibData *imd = NULL;
|
||||||
|
|
||||||
Window
|
Window SC_GetDestWin(void)
|
||||||
SC_GetDestWin(void)
|
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -751,7 +751,8 @@ SetupEnv()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Window MakeExtInitWin(void)
|
Window
|
||||||
|
MakeExtInitWin(void)
|
||||||
{
|
{
|
||||||
Display *d2;
|
Display *d2;
|
||||||
Window win;
|
Window win;
|
||||||
|
|
169
src/tooltips.c
169
src/tooltips.c
|
@ -679,8 +679,8 @@ ShowToolTip(ToolTip * tt, char *text, ActionClass * ac, int x, int y)
|
||||||
ic->norm.normal->im->rgb_height);
|
ic->norm.normal->im->rgb_height);
|
||||||
PastePixmap(disp, tt->win,
|
PastePixmap(disp, tt->win,
|
||||||
Imlib_copy_image(id,
|
Imlib_copy_image(id,
|
||||||
ic->norm.
|
ic->norm.normal->
|
||||||
normal->im),
|
im),
|
||||||
Imlib_copy_mask(id,
|
Imlib_copy_mask(id,
|
||||||
ic->norm.normal->im),
|
ic->norm.normal->im),
|
||||||
x, y);
|
x, y);
|
||||||
|
@ -702,12 +702,11 @@ ShowToolTip(ToolTip * tt, char *text, ActionClass * ac, int x, int y)
|
||||||
ic->norm.normal->im->rgb_height);
|
ic->norm.normal->im->rgb_height);
|
||||||
PastePixmap(disp, tt->win,
|
PastePixmap(disp, tt->win,
|
||||||
Imlib_copy_image(id,
|
Imlib_copy_image(id,
|
||||||
ic->norm.
|
ic->norm.normal->
|
||||||
normal->im),
|
im),
|
||||||
Imlib_copy_mask(id,
|
Imlib_copy_mask(id,
|
||||||
ic->norm.
|
ic->norm.normal->
|
||||||
normal->im), x,
|
im), x, y);
|
||||||
y);
|
|
||||||
x += ic->norm.normal->im->rgb_width;
|
x += ic->norm.normal->im->rgb_width;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -723,12 +722,11 @@ ShowToolTip(ToolTip * tt, char *text, ActionClass * ac, int x, int y)
|
||||||
ic->norm.normal->im->rgb_height);
|
ic->norm.normal->im->rgb_height);
|
||||||
PastePixmap(disp, tt->win,
|
PastePixmap(disp, tt->win,
|
||||||
Imlib_copy_image(id,
|
Imlib_copy_image(id,
|
||||||
ic->norm.
|
ic->norm.normal->
|
||||||
normal->im),
|
im),
|
||||||
Imlib_copy_mask(id,
|
Imlib_copy_mask(id,
|
||||||
ic->norm.
|
ic->norm.normal->
|
||||||
normal->im), x,
|
im), x, y);
|
||||||
y);
|
|
||||||
x += ic->norm.normal->im->rgb_width;
|
x += ic->norm.normal->im->rgb_width;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -744,12 +742,11 @@ ShowToolTip(ToolTip * tt, char *text, ActionClass * ac, int x, int y)
|
||||||
ic->norm.normal->im->rgb_height);
|
ic->norm.normal->im->rgb_height);
|
||||||
PastePixmap(disp, tt->win,
|
PastePixmap(disp, tt->win,
|
||||||
Imlib_copy_image(id,
|
Imlib_copy_image(id,
|
||||||
ic->norm.
|
ic->norm.normal->
|
||||||
normal->im),
|
im),
|
||||||
Imlib_copy_mask(id,
|
Imlib_copy_mask(id,
|
||||||
ic->norm.
|
ic->norm.normal->
|
||||||
normal->im), x,
|
im), x, y);
|
||||||
y);
|
|
||||||
x += ic->norm.normal->im->rgb_width;
|
x += ic->norm.normal->im->rgb_width;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -765,12 +762,11 @@ ShowToolTip(ToolTip * tt, char *text, ActionClass * ac, int x, int y)
|
||||||
ic->norm.normal->im->rgb_height);
|
ic->norm.normal->im->rgb_height);
|
||||||
PastePixmap(disp, tt->win,
|
PastePixmap(disp, tt->win,
|
||||||
Imlib_copy_image(id,
|
Imlib_copy_image(id,
|
||||||
ic->norm.
|
ic->norm.normal->
|
||||||
normal->im),
|
im),
|
||||||
Imlib_copy_mask(id,
|
Imlib_copy_mask(id,
|
||||||
ic->norm.
|
ic->norm.normal->
|
||||||
normal->im), x,
|
im), x, y);
|
||||||
y);
|
|
||||||
x += ic->norm.normal->im->rgb_width;
|
x += ic->norm.normal->im->rgb_width;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -786,12 +782,11 @@ ShowToolTip(ToolTip * tt, char *text, ActionClass * ac, int x, int y)
|
||||||
ic->norm.normal->im->rgb_height);
|
ic->norm.normal->im->rgb_height);
|
||||||
PastePixmap(disp, tt->win,
|
PastePixmap(disp, tt->win,
|
||||||
Imlib_copy_image(id,
|
Imlib_copy_image(id,
|
||||||
ic->norm.
|
ic->norm.normal->
|
||||||
normal->im),
|
im),
|
||||||
Imlib_copy_mask(id,
|
Imlib_copy_mask(id,
|
||||||
ic->norm.
|
ic->norm.normal->
|
||||||
normal->im), x,
|
im), x, y);
|
||||||
y);
|
|
||||||
x += ic->norm.normal->im->rgb_width;
|
x += ic->norm.normal->im->rgb_width;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -811,17 +806,16 @@ ShowToolTip(ToolTip * tt, char *text, ActionClass * ac, int x, int y)
|
||||||
{
|
{
|
||||||
Imlib_render(id, ic->norm.normal->im,
|
Imlib_render(id, ic->norm.normal->im,
|
||||||
ic->norm.normal->im->rgb_width,
|
ic->norm.normal->im->rgb_width,
|
||||||
ic->norm.normal->
|
ic->norm.normal->im->
|
||||||
im->rgb_height);
|
rgb_height);
|
||||||
PastePixmap(disp, tt->win,
|
PastePixmap(disp, tt->win,
|
||||||
Imlib_copy_image(id,
|
Imlib_copy_image(id,
|
||||||
ic->
|
ic->norm.
|
||||||
norm.normal->
|
normal->im),
|
||||||
im),
|
|
||||||
Imlib_copy_mask(id,
|
Imlib_copy_mask(id,
|
||||||
ic->
|
ic->norm.
|
||||||
norm.normal->
|
normal->im), x,
|
||||||
im), x, y);
|
y);
|
||||||
x += ic->norm.normal->im->rgb_width;
|
x += ic->norm.normal->im->rgb_width;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -835,17 +829,16 @@ ShowToolTip(ToolTip * tt, char *text, ActionClass * ac, int x, int y)
|
||||||
{
|
{
|
||||||
Imlib_render(id, ic->norm.normal->im,
|
Imlib_render(id, ic->norm.normal->im,
|
||||||
ic->norm.normal->im->rgb_width,
|
ic->norm.normal->im->rgb_width,
|
||||||
ic->norm.normal->
|
ic->norm.normal->im->
|
||||||
im->rgb_height);
|
rgb_height);
|
||||||
PastePixmap(disp, tt->win,
|
PastePixmap(disp, tt->win,
|
||||||
Imlib_copy_image(id,
|
Imlib_copy_image(id,
|
||||||
ic->
|
ic->norm.
|
||||||
norm.normal->
|
normal->im),
|
||||||
im),
|
|
||||||
Imlib_copy_mask(id,
|
Imlib_copy_mask(id,
|
||||||
ic->
|
ic->norm.
|
||||||
norm.normal->
|
normal->im), x,
|
||||||
im), x, y);
|
y);
|
||||||
x += ic->norm.normal->im->rgb_width;
|
x += ic->norm.normal->im->rgb_width;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -859,17 +852,16 @@ ShowToolTip(ToolTip * tt, char *text, ActionClass * ac, int x, int y)
|
||||||
{
|
{
|
||||||
Imlib_render(id, ic->norm.normal->im,
|
Imlib_render(id, ic->norm.normal->im,
|
||||||
ic->norm.normal->im->rgb_width,
|
ic->norm.normal->im->rgb_width,
|
||||||
ic->norm.normal->
|
ic->norm.normal->im->
|
||||||
im->rgb_height);
|
rgb_height);
|
||||||
PastePixmap(disp, tt->win,
|
PastePixmap(disp, tt->win,
|
||||||
Imlib_copy_image(id,
|
Imlib_copy_image(id,
|
||||||
ic->
|
ic->norm.
|
||||||
norm.normal->
|
normal->im),
|
||||||
im),
|
|
||||||
Imlib_copy_mask(id,
|
Imlib_copy_mask(id,
|
||||||
ic->
|
ic->norm.
|
||||||
norm.normal->
|
normal->im), x,
|
||||||
im), x, y);
|
y);
|
||||||
x += ic->norm.normal->im->rgb_width;
|
x += ic->norm.normal->im->rgb_width;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -883,17 +875,16 @@ ShowToolTip(ToolTip * tt, char *text, ActionClass * ac, int x, int y)
|
||||||
{
|
{
|
||||||
Imlib_render(id, ic->norm.normal->im,
|
Imlib_render(id, ic->norm.normal->im,
|
||||||
ic->norm.normal->im->rgb_width,
|
ic->norm.normal->im->rgb_width,
|
||||||
ic->norm.normal->
|
ic->norm.normal->im->
|
||||||
im->rgb_height);
|
rgb_height);
|
||||||
PastePixmap(disp, tt->win,
|
PastePixmap(disp, tt->win,
|
||||||
Imlib_copy_image(id,
|
Imlib_copy_image(id,
|
||||||
ic->
|
ic->norm.
|
||||||
norm.normal->
|
normal->im),
|
||||||
im),
|
|
||||||
Imlib_copy_mask(id,
|
Imlib_copy_mask(id,
|
||||||
ic->
|
ic->norm.
|
||||||
norm.normal->
|
normal->im), x,
|
||||||
im), x, y);
|
y);
|
||||||
x += ic->norm.normal->im->rgb_width;
|
x += ic->norm.normal->im->rgb_width;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -907,17 +898,16 @@ ShowToolTip(ToolTip * tt, char *text, ActionClass * ac, int x, int y)
|
||||||
{
|
{
|
||||||
Imlib_render(id, ic->norm.normal->im,
|
Imlib_render(id, ic->norm.normal->im,
|
||||||
ic->norm.normal->im->rgb_width,
|
ic->norm.normal->im->rgb_width,
|
||||||
ic->norm.normal->
|
ic->norm.normal->im->
|
||||||
im->rgb_height);
|
rgb_height);
|
||||||
PastePixmap(disp, tt->win,
|
PastePixmap(disp, tt->win,
|
||||||
Imlib_copy_image(id,
|
Imlib_copy_image(id,
|
||||||
ic->
|
ic->norm.
|
||||||
norm.normal->
|
normal->im),
|
||||||
im),
|
|
||||||
Imlib_copy_mask(id,
|
Imlib_copy_mask(id,
|
||||||
ic->
|
ic->norm.
|
||||||
norm.normal->
|
normal->im), x,
|
||||||
im), x, y);
|
y);
|
||||||
x += ic->norm.normal->im->rgb_width;
|
x += ic->norm.normal->im->rgb_width;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -931,17 +921,16 @@ ShowToolTip(ToolTip * tt, char *text, ActionClass * ac, int x, int y)
|
||||||
{
|
{
|
||||||
Imlib_render(id, ic->norm.normal->im,
|
Imlib_render(id, ic->norm.normal->im,
|
||||||
ic->norm.normal->im->rgb_width,
|
ic->norm.normal->im->rgb_width,
|
||||||
ic->norm.normal->
|
ic->norm.normal->im->
|
||||||
im->rgb_height);
|
rgb_height);
|
||||||
PastePixmap(disp, tt->win,
|
PastePixmap(disp, tt->win,
|
||||||
Imlib_copy_image(id,
|
Imlib_copy_image(id,
|
||||||
ic->
|
ic->norm.
|
||||||
norm.normal->
|
normal->im),
|
||||||
im),
|
|
||||||
Imlib_copy_mask(id,
|
Imlib_copy_mask(id,
|
||||||
ic->
|
ic->norm.
|
||||||
norm.normal->
|
normal->im), x,
|
||||||
im), x, y);
|
y);
|
||||||
x += ic->norm.normal->im->rgb_width;
|
x += ic->norm.normal->im->rgb_width;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -955,17 +944,16 @@ ShowToolTip(ToolTip * tt, char *text, ActionClass * ac, int x, int y)
|
||||||
{
|
{
|
||||||
Imlib_render(id, ic->norm.normal->im,
|
Imlib_render(id, ic->norm.normal->im,
|
||||||
ic->norm.normal->im->rgb_width,
|
ic->norm.normal->im->rgb_width,
|
||||||
ic->norm.normal->
|
ic->norm.normal->im->
|
||||||
im->rgb_height);
|
rgb_height);
|
||||||
PastePixmap(disp, tt->win,
|
PastePixmap(disp, tt->win,
|
||||||
Imlib_copy_image(id,
|
Imlib_copy_image(id,
|
||||||
ic->
|
ic->norm.
|
||||||
norm.normal->
|
normal->im),
|
||||||
im),
|
|
||||||
Imlib_copy_mask(id,
|
Imlib_copy_mask(id,
|
||||||
ic->
|
ic->norm.
|
||||||
norm.normal->
|
normal->im), x,
|
||||||
im), x, y);
|
y);
|
||||||
x += ic->norm.normal->im->rgb_width;
|
x += ic->norm.normal->im->rgb_width;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -979,17 +967,16 @@ ShowToolTip(ToolTip * tt, char *text, ActionClass * ac, int x, int y)
|
||||||
{
|
{
|
||||||
Imlib_render(id, ic->norm.normal->im,
|
Imlib_render(id, ic->norm.normal->im,
|
||||||
ic->norm.normal->im->rgb_width,
|
ic->norm.normal->im->rgb_width,
|
||||||
ic->norm.normal->
|
ic->norm.normal->im->
|
||||||
im->rgb_height);
|
rgb_height);
|
||||||
PastePixmap(disp, tt->win,
|
PastePixmap(disp, tt->win,
|
||||||
Imlib_copy_image(id,
|
Imlib_copy_image(id,
|
||||||
ic->
|
ic->norm.
|
||||||
norm.normal->
|
normal->im),
|
||||||
im),
|
|
||||||
Imlib_copy_mask(id,
|
Imlib_copy_mask(id,
|
||||||
ic->
|
ic->norm.
|
||||||
norm.normal->
|
normal->im), x,
|
||||||
im), x, y);
|
y);
|
||||||
x += ic->norm.normal->im->rgb_width;
|
x += ic->norm.normal->im->rgb_width;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
15
src/x.c
15
src/x.c
|
@ -40,8 +40,7 @@ EFreePixmap(Display * display, Pixmap pixmap)
|
||||||
XFreePixmap(display, pixmap);
|
XFreePixmap(display, pixmap);
|
||||||
}
|
}
|
||||||
|
|
||||||
Window
|
Window ECreateWindow(Window parent, int x, int y, int w, int h, int saveunder)
|
||||||
ECreateWindow(Window parent, int x, int y, int w, int h, int saveunder)
|
|
||||||
{
|
{
|
||||||
EXID *xid;
|
EXID *xid;
|
||||||
Window win;
|
Window win;
|
||||||
|
@ -587,8 +586,7 @@ DelXID(Window win)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Window
|
Window ECreateEventWindow(Window parent, int x, int y, int w, int h)
|
||||||
ECreateEventWindow(Window parent, int x, int y, int w, int h)
|
|
||||||
{
|
{
|
||||||
Window win;
|
Window win;
|
||||||
XSetWindowAttributes attr;
|
XSetWindowAttributes attr;
|
||||||
|
@ -604,8 +602,7 @@ ECreateEventWindow(Window parent, int x, int y, int w, int h)
|
||||||
* create a window which will accept the keyboard focus when no other
|
* create a window which will accept the keyboard focus when no other
|
||||||
* windows have it
|
* windows have it
|
||||||
*/
|
*/
|
||||||
Window
|
Window ECreateFocusWindow(Window parent, int x, int y, int w, int h)
|
||||||
ECreateFocusWindow(Window parent, int x, int y, int w, int h)
|
|
||||||
{
|
{
|
||||||
Window win;
|
Window win;
|
||||||
XSetWindowAttributes attr;
|
XSetWindowAttributes attr;
|
||||||
|
@ -739,8 +736,7 @@ WinExists(Window win)
|
||||||
EDBUG_RETURN(0);
|
EDBUG_RETURN(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
Window
|
Window WindowAtXY_0(Window base, int bx, int by, int x, int y)
|
||||||
WindowAtXY_0(Window base, int bx, int by, int x, int y)
|
|
||||||
{
|
{
|
||||||
Window *list = NULL;
|
Window *list = NULL;
|
||||||
XWindowAttributes att;
|
XWindowAttributes att;
|
||||||
|
@ -787,8 +783,7 @@ WindowAtXY_0(Window base, int bx, int by, int x, int y)
|
||||||
EDBUG_RETURN(base);
|
EDBUG_RETURN(base);
|
||||||
}
|
}
|
||||||
|
|
||||||
Window
|
Window WindowAtXY(int x, int y)
|
||||||
WindowAtXY(int x, int y)
|
|
||||||
{
|
{
|
||||||
Window *list = NULL;
|
Window *list = NULL;
|
||||||
Window child = 0, parent_win = 0, root_win = 0;
|
Window child = 0, parent_win = 0, root_win = 0;
|
||||||
|
|
Loading…
Reference in New Issue