Tue Mar 28 10:31:25 PST 2000
(Mandrake) fixed maximize bug where it would pay attention to iconified windows. SVN revision: 2359
This commit is contained in:
parent
9446df4641
commit
23caf31298
|
@ -4499,3 +4499,10 @@ Sun Mar 26 15:40:38 PST 2000
|
|||
|
||||
new "configpanel" ipc command. This way I can use my config panels from efm
|
||||
by building a menu that runs eesh *grin*
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
Tue Mar 28 10:31:25 PST 2000
|
||||
(Mandrake)
|
||||
|
||||
fixed maximize bug where it would pay attention to iconified windows.
|
||||
|
|
|
@ -1181,11 +1181,11 @@ doMoveEnd(void *params)
|
|||
if (gwins[i]->floating)
|
||||
MoveEwinToDesktopAt(gwins[i], d,
|
||||
gwins[i]->x - (desks.desk[d].x -
|
||||
desks.desk[gwins[i]->
|
||||
desktop].x),
|
||||
desks.
|
||||
desk[gwins[i]->desktop].x),
|
||||
gwins[i]->y - (desks.desk[d].y -
|
||||
desks.desk[gwins[i]->
|
||||
desktop].y));
|
||||
desks.
|
||||
desk[gwins[i]->desktop].y));
|
||||
else
|
||||
MoveEwinToDesktopAt(gwins[i], d, gwins[i]->x, gwins[i]->y);
|
||||
gwins[i]->floating = 0;
|
||||
|
|
24
src/areas.c
24
src/areas.c
|
@ -357,13 +357,13 @@ SetCurrentArea(int ax, int ay)
|
|||
lst[i]->x -
|
||||
(root.w *
|
||||
(ax -
|
||||
desks.desk[desks.current].
|
||||
current_area_x)),
|
||||
desks.desk[desks.
|
||||
current].current_area_x)),
|
||||
lst[i]->y -
|
||||
(root.h *
|
||||
(ay -
|
||||
desks.desk[desks.current].
|
||||
current_area_y)));
|
||||
desks.desk[desks.
|
||||
current].current_area_y)));
|
||||
if (setflip)
|
||||
mode.flipp = 0;
|
||||
lst[i]->area_x = a1;
|
||||
|
@ -394,13 +394,13 @@ SetCurrentArea(int ax, int ay)
|
|||
x -
|
||||
(root.w *
|
||||
(ax -
|
||||
desks.desk[desks.
|
||||
current].current_area_x)),
|
||||
desks.desk[desks.current].
|
||||
current_area_x)),
|
||||
y -
|
||||
(root.h *
|
||||
(ay -
|
||||
desks.desk[desks.
|
||||
current].current_area_y)));
|
||||
desks.desk[desks.current].
|
||||
current_area_y)));
|
||||
}
|
||||
}
|
||||
/* if we're not moving it... move it across */
|
||||
|
@ -419,13 +419,13 @@ SetCurrentArea(int ax, int ay)
|
|||
lst[i]->x -
|
||||
(root.w *
|
||||
(ax -
|
||||
desks.desk[desks.current].
|
||||
current_area_x)),
|
||||
desks.desk[desks.
|
||||
current].current_area_x)),
|
||||
lst[i]->y -
|
||||
(root.h *
|
||||
(ay -
|
||||
desks.desk[desks.current].
|
||||
current_area_y)));
|
||||
desks.desk[desks.
|
||||
current].current_area_y)));
|
||||
if (setflip)
|
||||
mode.flipp = 0;
|
||||
lst[i]->area_x = a1;
|
||||
|
|
|
@ -667,9 +667,10 @@ SnapEwin(EWin * ewin, int dx, int dy, int *new_dx, int *new_dy)
|
|||
EWin **lst, **gwins;
|
||||
int gnum, num, i, j, screen_snap_dist, odx, ody;
|
||||
static char last_res = 0;
|
||||
|
||||
#ifdef HAS_XINERAMA
|
||||
static XineramaScreenInfo *screens = NULL;
|
||||
#endif
|
||||
#endif
|
||||
static int num_screens = 0;
|
||||
int top_bound, bottom_bound, left_bound, right_bound;
|
||||
|
||||
|
|
|
@ -1227,12 +1227,12 @@ CalcEwinWinpart(EWin * ewin, int i)
|
|||
if (bottomright == -1)
|
||||
{
|
||||
ox =
|
||||
((ewin->
|
||||
border->part[i].geom.bottomright.x.percent * ewin->w) >> 10) +
|
||||
((ewin->border->
|
||||
part[i].geom.bottomright.x.percent * ewin->w) >> 10) +
|
||||
ewin->border->part[i].geom.bottomright.x.absolute;
|
||||
oy =
|
||||
((ewin->
|
||||
border->part[i].geom.bottomright.y.percent * ewin->h) >> 10) +
|
||||
((ewin->border->
|
||||
part[i].geom.bottomright.y.percent * ewin->h) >> 10) +
|
||||
ewin->border->part[i].geom.bottomright.y.absolute;
|
||||
}
|
||||
else if (bottomright >= 0)
|
||||
|
@ -2643,8 +2643,9 @@ MinShadeSize(EWin * ewin, int *mw, int *mh)
|
|||
(ewin->w - ewin->border->border.right) > rightborderwidth)
|
||||
rightborderwidth =
|
||||
(ewin->bits[i].x + ewin->bits[i].w) - (ewin->w -
|
||||
ewin->border->
|
||||
border.right);
|
||||
ewin->
|
||||
border->border.
|
||||
right);
|
||||
}
|
||||
}
|
||||
ewin->w = rightborderwidth + leftborderwidth;
|
||||
|
@ -2670,8 +2671,9 @@ MinShadeSize(EWin * ewin, int *mw, int *mh)
|
|||
bottomborderwidth)
|
||||
bottomborderwidth =
|
||||
(ewin->bits[i].y + ewin->bits[i].h) - (ewin->h -
|
||||
ewin->border->
|
||||
border.bottom);
|
||||
ewin->
|
||||
border->border.
|
||||
bottom);
|
||||
}
|
||||
}
|
||||
ewin->h = bottomborderwidth + topborderwidth;
|
||||
|
|
33
src/dialog.c
33
src/dialog.c
|
@ -1193,8 +1193,8 @@ DialogRealizeItem(Dialog * d, DItem * di)
|
|||
ImlibImage *im;
|
||||
|
||||
im =
|
||||
ELoadImage(di->item.slider.ic_border->norm.
|
||||
normal->im_file);
|
||||
ELoadImage(di->item.slider.ic_border->norm.normal->
|
||||
im_file);
|
||||
if (im)
|
||||
{
|
||||
di->item.slider.border_orig_w = im->rgb_width;
|
||||
|
@ -1470,13 +1470,12 @@ DialogRealizeItem(Dialog * d, DItem * di)
|
|||
dii->y +
|
||||
((dii->h
|
||||
-
|
||||
dii->item.
|
||||
check_button.check_orig_h) /
|
||||
2),
|
||||
dii->item.
|
||||
check_button.check_orig_w,
|
||||
dii->item.
|
||||
check_button.check_orig_h);
|
||||
dii->item.check_button.
|
||||
check_orig_h) / 2),
|
||||
dii->item.check_button.
|
||||
check_orig_w,
|
||||
dii->item.check_button.
|
||||
check_orig_h);
|
||||
if (dii->type == DITEM_RADIOBUTTON)
|
||||
EMoveResizeWindow(disp,
|
||||
dii->item.radio_button.radio_win,
|
||||
|
@ -1484,13 +1483,12 @@ DialogRealizeItem(Dialog * d, DItem * di)
|
|||
dii->y +
|
||||
((dii->h
|
||||
-
|
||||
dii->item.
|
||||
radio_button.radio_orig_h) /
|
||||
2),
|
||||
dii->item.
|
||||
radio_button.radio_orig_w,
|
||||
dii->item.
|
||||
radio_button.radio_orig_h);
|
||||
dii->item.radio_button.
|
||||
radio_orig_h) / 2),
|
||||
dii->item.radio_button.
|
||||
radio_orig_w,
|
||||
dii->item.radio_button.
|
||||
radio_orig_h);
|
||||
if (dii->type == DITEM_AREA)
|
||||
{
|
||||
dii->item.area.w = dii->w -
|
||||
|
@ -2000,8 +1998,7 @@ DialogItemAreaSetSize(DItem * di, int w, int h)
|
|||
di->item.area.h = h;
|
||||
}
|
||||
|
||||
Window
|
||||
DialogItemAreaGetWindow(DItem * di)
|
||||
Window DialogItemAreaGetWindow(DItem * di)
|
||||
{
|
||||
return di->item.area.area_win;
|
||||
}
|
||||
|
|
|
@ -494,8 +494,7 @@ HandleMotion(XEvent * ev)
|
|||
(gwins
|
||||
[i]->reqx,
|
||||
gwins[i]->x,
|
||||
mode.
|
||||
edge_snap_dist)))))))
|
||||
mode.edge_snap_dist)))))))
|
||||
{
|
||||
jumpx = 1;
|
||||
ndx = gwins[i]->reqx - gwins[i]->x + dx;
|
||||
|
@ -518,8 +517,7 @@ HandleMotion(XEvent * ev)
|
|||
(gwins
|
||||
[i]->reqy,
|
||||
gwins[i]->y,
|
||||
mode.
|
||||
edge_snap_dist)))))))
|
||||
mode.edge_snap_dist)))))))
|
||||
{
|
||||
jumpy = 1;
|
||||
ndy = gwins[i]->reqy - gwins[i]->y + dy;
|
||||
|
@ -982,8 +980,8 @@ HandleMotion(XEvent * ev)
|
|||
{
|
||||
di->item.slider.wanted_val += dy;
|
||||
di->item.slider.val = di->item.slider.lower +
|
||||
((((di->
|
||||
item.slider.base_h - di->item.slider.knob_h -
|
||||
((((di->item.
|
||||
slider.base_h - di->item.slider.knob_h -
|
||||
di->item.slider.wanted_val) *
|
||||
(di->item.slider.upper -
|
||||
di->item.slider.lower)) /
|
||||
|
@ -2509,13 +2507,13 @@ HandleMouseUp(XEvent * ev)
|
|||
HideEwin(gwins[i]);
|
||||
MoveEwin(gwins[i], gwin_px[i] +
|
||||
((desks.desk
|
||||
[gwins[i]->desktop].
|
||||
current_area_x) -
|
||||
[gwins[i]->
|
||||
desktop].current_area_x) -
|
||||
p->hi_ewin->area_x) * root.w,
|
||||
gwin_py[i] +
|
||||
((desks.
|
||||
desk[gwins[i]->desktop].
|
||||
current_area_y) -
|
||||
((desks.desk
|
||||
[gwins[i]->
|
||||
desktop].current_area_y) -
|
||||
p->hi_ewin->area_y) * root.h);
|
||||
if (was_shaded != gwins[i]->shaded)
|
||||
InstantShadeEwin(gwins[i]);
|
||||
|
|
|
@ -263,7 +263,8 @@ cp(char *s, char *ss)
|
|||
EDBUG_RETURN_;
|
||||
}
|
||||
|
||||
time_t moddate(char *s)
|
||||
time_t
|
||||
moddate(char *s)
|
||||
{
|
||||
struct stat st;
|
||||
|
||||
|
|
|
@ -1770,8 +1770,8 @@ IPC_ImageClass(char *params, Client * c)
|
|||
if (iclass->norm.normal->real_file)
|
||||
im =
|
||||
Imlib_load_image(id,
|
||||
iclass->norm.
|
||||
normal->real_file);
|
||||
iclass->norm.normal->
|
||||
real_file);
|
||||
if (im)
|
||||
{
|
||||
Esnprintf(buf, sizeof(buf),
|
||||
|
|
|
@ -282,7 +282,8 @@ ShowMenu(Menu * m, char noshow)
|
|||
* * * * * *
|
||||
* * * * * * *
|
||||
* * * * * * * *
|
||||
* * * * * * * * * from appearing offscreen */
|
||||
* * * * * * * * *
|
||||
* * * * * * * * * * from appearing offscreen */
|
||||
unsigned int w, h, mw, mh;
|
||||
|
||||
EDBUG(5, "ShowMenu");
|
||||
|
|
|
@ -126,7 +126,8 @@ GetNetText(char *URL)
|
|||
|
||||
}
|
||||
|
||||
time_t GetNetFileDate(char *URL)
|
||||
time_t
|
||||
GetNetFileDate(char *URL)
|
||||
{
|
||||
|
||||
#ifdef AUTOUPGRADE
|
||||
|
|
|
@ -37,7 +37,8 @@ static Window sc_window = 0;
|
|||
static Atom sc_atom = 0;
|
||||
static ImlibData *imd = NULL;
|
||||
|
||||
Window SC_GetDestWin(void)
|
||||
Window
|
||||
SC_GetDestWin(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -751,8 +751,7 @@ SetupEnv()
|
|||
return;
|
||||
}
|
||||
|
||||
Window
|
||||
MakeExtInitWin(void)
|
||||
Window MakeExtInitWin(void)
|
||||
{
|
||||
Display *d2;
|
||||
Window win;
|
||||
|
|
76
src/size.c
76
src/size.c
|
@ -96,15 +96,16 @@ MaxHeight(EWin * ewin, char *resize_type)
|
|||
#endif
|
||||
for (i = 0; i < num; i++)
|
||||
{
|
||||
if (((ewin->desktop == lst[i]->desktop) ||
|
||||
(lst[i]->sticky)) &&
|
||||
(!(lst[i]->floating)) &&
|
||||
(lst[i] != ewin) &&
|
||||
(!(lst[i]->ignorearrange)) &&
|
||||
SPANS_COMMON(ewin->x, ewin->w, lst[i]->x, lst[i]->w))
|
||||
if (
|
||||
(((ewin->desktop
|
||||
== lst[i]->desktop) && !(lst[i]->iconified))
|
||||
|| (lst[i]->sticky)) && (!(lst[i]->floating))
|
||||
&& (lst[i] != ewin) && (!(lst[i]->ignorearrange))
|
||||
&& SPANS_COMMON(ewin->x, ewin->w, lst[i]->x,
|
||||
lst[i]->w))
|
||||
{
|
||||
if (((lst[i]->y + lst[i]->h) <= y) &&
|
||||
((lst[i]->y + lst[i]->h) >= y1))
|
||||
if (((lst[i]->y + lst[i]->h) <= y)
|
||||
&& ((lst[i]->y + lst[i]->h) >= y1))
|
||||
y1 = lst[i]->y + lst[i]->h;
|
||||
else if (((y + h) <= lst[i]->y)
|
||||
&& (y2 >= lst[i]->y))
|
||||
|
@ -176,12 +177,14 @@ MaxHeight(EWin * ewin, char *resize_type)
|
|||
#endif
|
||||
for (i = 0; i < num; i++)
|
||||
{
|
||||
if (((ewin->desktop == lst[i]->desktop) ||
|
||||
(lst[i]->sticky)) &&
|
||||
(!(lst[i]->floating)) &&
|
||||
(lst[i] != ewin) &&
|
||||
(lst[i]->never_use_area) &&
|
||||
SPANS_COMMON(ewin->x, ewin->w, lst[i]->x, lst[i]->w))
|
||||
if (
|
||||
(((ewin->
|
||||
desktop == lst[i]->desktop)
|
||||
&& !(lst[i]->iconified)) || (lst[i]->sticky))
|
||||
&& (!(lst[i]->floating)) && (lst[i] != ewin)
|
||||
&& (lst[i]->never_use_area)
|
||||
&& SPANS_COMMON(ewin->x, ewin->w, lst[i]->x,
|
||||
lst[i]->w))
|
||||
{
|
||||
if (((lst[i]->y + lst[i]->h) <= y) &&
|
||||
((lst[i]->y + lst[i]->h) >= y1))
|
||||
|
@ -291,12 +294,14 @@ MaxWidth(EWin * ewin, char *resize_type)
|
|||
#endif
|
||||
for (i = 0; i < num; i++)
|
||||
{
|
||||
if (((ewin->desktop == lst[i]->desktop) ||
|
||||
(lst[i]->sticky)) &&
|
||||
(!(lst[i]->floating)) &&
|
||||
(lst[i] != ewin) &&
|
||||
(!(lst[i]->ignorearrange)) &&
|
||||
SPANS_COMMON(ewin->y, ewin->h, lst[i]->y, lst[i]->h))
|
||||
if (
|
||||
(((ewin->
|
||||
desktop == lst[i]->desktop)
|
||||
&& !(lst[i]->iconified)) || (lst[i]->sticky))
|
||||
&& (!(lst[i]->floating)) && (lst[i] != ewin)
|
||||
&& (!(lst[i]->ignorearrange))
|
||||
&& SPANS_COMMON(ewin->y, ewin->h, lst[i]->y,
|
||||
lst[i]->h))
|
||||
{
|
||||
if (((lst[i]->x + lst[i]->w) <= x) &&
|
||||
((lst[i]->x + lst[i]->w) >= x1))
|
||||
|
@ -372,7 +377,7 @@ MaxWidth(EWin * ewin, char *resize_type)
|
|||
for (i = 0; i < num; i++)
|
||||
{
|
||||
if ((lst[i] != ewin) && (!(lst[i]->ignorearrange)) &&
|
||||
(!(lst[i]->floating)) &&
|
||||
(!(lst[i]->floating)) && !(lst[i]->iconified) &&
|
||||
(((ewin->desktop == lst[i]->desktop) &&
|
||||
(lst[i]->fixedpos)) ||
|
||||
(lst[i]->sticky)) &&
|
||||
|
@ -502,12 +507,14 @@ MaxSize(EWin * ewin, char *resize_type)
|
|||
#endif
|
||||
for (i = 0; i < num; i++)
|
||||
{
|
||||
if (((ewin->desktop == lst[i]->desktop) ||
|
||||
(lst[i]->sticky)) &&
|
||||
(!(lst[i]->floating)) &&
|
||||
(lst[i] != ewin) &&
|
||||
(!(lst[i]->ignorearrange)) &&
|
||||
SPANS_COMMON(ewin->x, ewin->w, lst[i]->x, lst[i]->w))
|
||||
if (
|
||||
(((ewin->
|
||||
desktop == lst[i]->desktop)
|
||||
&& !(lst[i]->iconified)) || (lst[i]->sticky))
|
||||
&& (!(lst[i]->floating)) && (lst[i] != ewin)
|
||||
&& (!(lst[i]->ignorearrange))
|
||||
&& SPANS_COMMON(ewin->x, ewin->w, lst[i]->x,
|
||||
lst[i]->w))
|
||||
{
|
||||
if (((lst[i]->y + lst[i]->h) <= y) &&
|
||||
((lst[i]->y + lst[i]->h) >= y1))
|
||||
|
@ -618,12 +625,15 @@ MaxSize(EWin * ewin, char *resize_type)
|
|||
#endif
|
||||
for (i = 0; i < num; i++)
|
||||
{
|
||||
if ((lst[i] != ewin) && (!(lst[i]->ignorearrange)) &&
|
||||
(!(lst[i]->floating)) &&
|
||||
(((ewin->desktop == lst[i]->desktop) &&
|
||||
(lst[i]->fixedpos)) ||
|
||||
(lst[i]->sticky)) &&
|
||||
SPANS_COMMON(ewin->x, ewin->w, lst[i]->x, lst[i]->w))
|
||||
if (
|
||||
((lst[i] != ewin) && (!(lst[i]->ignorearrange))
|
||||
&& !(lst[i]->iconified)) && (!(lst[i]->floating))
|
||||
&&
|
||||
(((ewin->
|
||||
desktop == lst[i]->desktop) && (lst[i]->fixedpos))
|
||||
|| (lst[i]->sticky))
|
||||
&& SPANS_COMMON(ewin->x, ewin->w, lst[i]->x,
|
||||
lst[i]->w))
|
||||
{
|
||||
if (((lst[i]->y + lst[i]->h) <= y) &&
|
||||
((lst[i]->y + lst[i]->h) >= y1))
|
||||
|
|
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);
|
||||
PastePixmap(disp, tt->win,
|
||||
Imlib_copy_image(id,
|
||||
ic->norm.normal->
|
||||
im),
|
||||
ic->norm.
|
||||
normal->im),
|
||||
Imlib_copy_mask(id,
|
||||
ic->norm.normal->im),
|
||||
x, y);
|
||||
|
@ -702,11 +702,12 @@ ShowToolTip(ToolTip * tt, char *text, ActionClass * ac, int x, int y)
|
|||
ic->norm.normal->im->rgb_height);
|
||||
PastePixmap(disp, tt->win,
|
||||
Imlib_copy_image(id,
|
||||
ic->norm.normal->
|
||||
im),
|
||||
ic->norm.
|
||||
normal->im),
|
||||
Imlib_copy_mask(id,
|
||||
ic->norm.normal->
|
||||
im), x, y);
|
||||
ic->norm.
|
||||
normal->im), x,
|
||||
y);
|
||||
x += ic->norm.normal->im->rgb_width;
|
||||
}
|
||||
break;
|
||||
|
@ -722,11 +723,12 @@ ShowToolTip(ToolTip * tt, char *text, ActionClass * ac, int x, int y)
|
|||
ic->norm.normal->im->rgb_height);
|
||||
PastePixmap(disp, tt->win,
|
||||
Imlib_copy_image(id,
|
||||
ic->norm.normal->
|
||||
im),
|
||||
ic->norm.
|
||||
normal->im),
|
||||
Imlib_copy_mask(id,
|
||||
ic->norm.normal->
|
||||
im), x, y);
|
||||
ic->norm.
|
||||
normal->im), x,
|
||||
y);
|
||||
x += ic->norm.normal->im->rgb_width;
|
||||
}
|
||||
break;
|
||||
|
@ -742,11 +744,12 @@ ShowToolTip(ToolTip * tt, char *text, ActionClass * ac, int x, int y)
|
|||
ic->norm.normal->im->rgb_height);
|
||||
PastePixmap(disp, tt->win,
|
||||
Imlib_copy_image(id,
|
||||
ic->norm.normal->
|
||||
im),
|
||||
ic->norm.
|
||||
normal->im),
|
||||
Imlib_copy_mask(id,
|
||||
ic->norm.normal->
|
||||
im), x, y);
|
||||
ic->norm.
|
||||
normal->im), x,
|
||||
y);
|
||||
x += ic->norm.normal->im->rgb_width;
|
||||
}
|
||||
break;
|
||||
|
@ -762,11 +765,12 @@ ShowToolTip(ToolTip * tt, char *text, ActionClass * ac, int x, int y)
|
|||
ic->norm.normal->im->rgb_height);
|
||||
PastePixmap(disp, tt->win,
|
||||
Imlib_copy_image(id,
|
||||
ic->norm.normal->
|
||||
im),
|
||||
ic->norm.
|
||||
normal->im),
|
||||
Imlib_copy_mask(id,
|
||||
ic->norm.normal->
|
||||
im), x, y);
|
||||
ic->norm.
|
||||
normal->im), x,
|
||||
y);
|
||||
x += ic->norm.normal->im->rgb_width;
|
||||
}
|
||||
break;
|
||||
|
@ -782,11 +786,12 @@ ShowToolTip(ToolTip * tt, char *text, ActionClass * ac, int x, int y)
|
|||
ic->norm.normal->im->rgb_height);
|
||||
PastePixmap(disp, tt->win,
|
||||
Imlib_copy_image(id,
|
||||
ic->norm.normal->
|
||||
im),
|
||||
ic->norm.
|
||||
normal->im),
|
||||
Imlib_copy_mask(id,
|
||||
ic->norm.normal->
|
||||
im), x, y);
|
||||
ic->norm.
|
||||
normal->im), x,
|
||||
y);
|
||||
x += ic->norm.normal->im->rgb_width;
|
||||
}
|
||||
break;
|
||||
|
@ -806,16 +811,17 @@ ShowToolTip(ToolTip * tt, char *text, ActionClass * ac, int x, int y)
|
|||
{
|
||||
Imlib_render(id, ic->norm.normal->im,
|
||||
ic->norm.normal->im->rgb_width,
|
||||
ic->norm.normal->im->
|
||||
rgb_height);
|
||||
ic->norm.normal->
|
||||
im->rgb_height);
|
||||
PastePixmap(disp, tt->win,
|
||||
Imlib_copy_image(id,
|
||||
ic->norm.
|
||||
normal->im),
|
||||
ic->
|
||||
norm.normal->
|
||||
im),
|
||||
Imlib_copy_mask(id,
|
||||
ic->norm.
|
||||
normal->im), x,
|
||||
y);
|
||||
ic->
|
||||
norm.normal->
|
||||
im), x, y);
|
||||
x += ic->norm.normal->im->rgb_width;
|
||||
}
|
||||
}
|
||||
|
@ -829,16 +835,17 @@ ShowToolTip(ToolTip * tt, char *text, ActionClass * ac, int x, int y)
|
|||
{
|
||||
Imlib_render(id, ic->norm.normal->im,
|
||||
ic->norm.normal->im->rgb_width,
|
||||
ic->norm.normal->im->
|
||||
rgb_height);
|
||||
ic->norm.normal->
|
||||
im->rgb_height);
|
||||
PastePixmap(disp, tt->win,
|
||||
Imlib_copy_image(id,
|
||||
ic->norm.
|
||||
normal->im),
|
||||
ic->
|
||||
norm.normal->
|
||||
im),
|
||||
Imlib_copy_mask(id,
|
||||
ic->norm.
|
||||
normal->im), x,
|
||||
y);
|
||||
ic->
|
||||
norm.normal->
|
||||
im), x, y);
|
||||
x += ic->norm.normal->im->rgb_width;
|
||||
}
|
||||
}
|
||||
|
@ -852,16 +859,17 @@ ShowToolTip(ToolTip * tt, char *text, ActionClass * ac, int x, int y)
|
|||
{
|
||||
Imlib_render(id, ic->norm.normal->im,
|
||||
ic->norm.normal->im->rgb_width,
|
||||
ic->norm.normal->im->
|
||||
rgb_height);
|
||||
ic->norm.normal->
|
||||
im->rgb_height);
|
||||
PastePixmap(disp, tt->win,
|
||||
Imlib_copy_image(id,
|
||||
ic->norm.
|
||||
normal->im),
|
||||
ic->
|
||||
norm.normal->
|
||||
im),
|
||||
Imlib_copy_mask(id,
|
||||
ic->norm.
|
||||
normal->im), x,
|
||||
y);
|
||||
ic->
|
||||
norm.normal->
|
||||
im), x, y);
|
||||
x += ic->norm.normal->im->rgb_width;
|
||||
}
|
||||
}
|
||||
|
@ -875,16 +883,17 @@ ShowToolTip(ToolTip * tt, char *text, ActionClass * ac, int x, int y)
|
|||
{
|
||||
Imlib_render(id, ic->norm.normal->im,
|
||||
ic->norm.normal->im->rgb_width,
|
||||
ic->norm.normal->im->
|
||||
rgb_height);
|
||||
ic->norm.normal->
|
||||
im->rgb_height);
|
||||
PastePixmap(disp, tt->win,
|
||||
Imlib_copy_image(id,
|
||||
ic->norm.
|
||||
normal->im),
|
||||
ic->
|
||||
norm.normal->
|
||||
im),
|
||||
Imlib_copy_mask(id,
|
||||
ic->norm.
|
||||
normal->im), x,
|
||||
y);
|
||||
ic->
|
||||
norm.normal->
|
||||
im), x, y);
|
||||
x += ic->norm.normal->im->rgb_width;
|
||||
}
|
||||
}
|
||||
|
@ -898,16 +907,17 @@ ShowToolTip(ToolTip * tt, char *text, ActionClass * ac, int x, int y)
|
|||
{
|
||||
Imlib_render(id, ic->norm.normal->im,
|
||||
ic->norm.normal->im->rgb_width,
|
||||
ic->norm.normal->im->
|
||||
rgb_height);
|
||||
ic->norm.normal->
|
||||
im->rgb_height);
|
||||
PastePixmap(disp, tt->win,
|
||||
Imlib_copy_image(id,
|
||||
ic->norm.
|
||||
normal->im),
|
||||
ic->
|
||||
norm.normal->
|
||||
im),
|
||||
Imlib_copy_mask(id,
|
||||
ic->norm.
|
||||
normal->im), x,
|
||||
y);
|
||||
ic->
|
||||
norm.normal->
|
||||
im), x, y);
|
||||
x += ic->norm.normal->im->rgb_width;
|
||||
}
|
||||
}
|
||||
|
@ -921,16 +931,17 @@ ShowToolTip(ToolTip * tt, char *text, ActionClass * ac, int x, int y)
|
|||
{
|
||||
Imlib_render(id, ic->norm.normal->im,
|
||||
ic->norm.normal->im->rgb_width,
|
||||
ic->norm.normal->im->
|
||||
rgb_height);
|
||||
ic->norm.normal->
|
||||
im->rgb_height);
|
||||
PastePixmap(disp, tt->win,
|
||||
Imlib_copy_image(id,
|
||||
ic->norm.
|
||||
normal->im),
|
||||
ic->
|
||||
norm.normal->
|
||||
im),
|
||||
Imlib_copy_mask(id,
|
||||
ic->norm.
|
||||
normal->im), x,
|
||||
y);
|
||||
ic->
|
||||
norm.normal->
|
||||
im), x, y);
|
||||
x += ic->norm.normal->im->rgb_width;
|
||||
}
|
||||
}
|
||||
|
@ -944,16 +955,17 @@ ShowToolTip(ToolTip * tt, char *text, ActionClass * ac, int x, int y)
|
|||
{
|
||||
Imlib_render(id, ic->norm.normal->im,
|
||||
ic->norm.normal->im->rgb_width,
|
||||
ic->norm.normal->im->
|
||||
rgb_height);
|
||||
ic->norm.normal->
|
||||
im->rgb_height);
|
||||
PastePixmap(disp, tt->win,
|
||||
Imlib_copy_image(id,
|
||||
ic->norm.
|
||||
normal->im),
|
||||
ic->
|
||||
norm.normal->
|
||||
im),
|
||||
Imlib_copy_mask(id,
|
||||
ic->norm.
|
||||
normal->im), x,
|
||||
y);
|
||||
ic->
|
||||
norm.normal->
|
||||
im), x, y);
|
||||
x += ic->norm.normal->im->rgb_width;
|
||||
}
|
||||
}
|
||||
|
@ -967,16 +979,17 @@ ShowToolTip(ToolTip * tt, char *text, ActionClass * ac, int x, int y)
|
|||
{
|
||||
Imlib_render(id, ic->norm.normal->im,
|
||||
ic->norm.normal->im->rgb_width,
|
||||
ic->norm.normal->im->
|
||||
rgb_height);
|
||||
ic->norm.normal->
|
||||
im->rgb_height);
|
||||
PastePixmap(disp, tt->win,
|
||||
Imlib_copy_image(id,
|
||||
ic->norm.
|
||||
normal->im),
|
||||
ic->
|
||||
norm.normal->
|
||||
im),
|
||||
Imlib_copy_mask(id,
|
||||
ic->norm.
|
||||
normal->im), x,
|
||||
y);
|
||||
ic->
|
||||
norm.normal->
|
||||
im), x, y);
|
||||
x += ic->norm.normal->im->rgb_width;
|
||||
}
|
||||
}
|
||||
|
|
15
src/x.c
15
src/x.c
|
@ -40,7 +40,8 @@ EFreePixmap(Display * display, Pixmap pixmap)
|
|||
XFreePixmap(display, pixmap);
|
||||
}
|
||||
|
||||
Window ECreateWindow(Window parent, int x, int y, int w, int h, int saveunder)
|
||||
Window
|
||||
ECreateWindow(Window parent, int x, int y, int w, int h, int saveunder)
|
||||
{
|
||||
EXID *xid;
|
||||
Window win;
|
||||
|
@ -586,7 +587,8 @@ DelXID(Window win)
|
|||
}
|
||||
}
|
||||
|
||||
Window ECreateEventWindow(Window parent, int x, int y, int w, int h)
|
||||
Window
|
||||
ECreateEventWindow(Window parent, int x, int y, int w, int h)
|
||||
{
|
||||
Window win;
|
||||
XSetWindowAttributes attr;
|
||||
|
@ -602,7 +604,8 @@ Window ECreateEventWindow(Window parent, int x, int y, int w, int h)
|
|||
* create a window which will accept the keyboard focus when no other
|
||||
* windows have it
|
||||
*/
|
||||
Window ECreateFocusWindow(Window parent, int x, int y, int w, int h)
|
||||
Window
|
||||
ECreateFocusWindow(Window parent, int x, int y, int w, int h)
|
||||
{
|
||||
Window win;
|
||||
XSetWindowAttributes attr;
|
||||
|
@ -736,7 +739,8 @@ WinExists(Window win)
|
|||
EDBUG_RETURN(0);
|
||||
}
|
||||
|
||||
Window WindowAtXY_0(Window base, int bx, int by, int x, int y)
|
||||
Window
|
||||
WindowAtXY_0(Window base, int bx, int by, int x, int y)
|
||||
{
|
||||
Window *list = NULL;
|
||||
XWindowAttributes att;
|
||||
|
@ -783,7 +787,8 @@ Window WindowAtXY_0(Window base, int bx, int by, int x, int y)
|
|||
EDBUG_RETURN(base);
|
||||
}
|
||||
|
||||
Window WindowAtXY(int x, int y)
|
||||
Window
|
||||
WindowAtXY(int x, int y)
|
||||
{
|
||||
Window *list = NULL;
|
||||
Window child = 0, parent_win = 0, root_win = 0;
|
||||
|
|
Loading…
Reference in New Issue