Thu Mar 16 23:02:49 GMT 2000
(gilbertt) Patch from Marius Aamodt Eriksen <marius@linux.com>. Provides option to include shaded windows in focuslist. Now all we need is an "include iconified windows" option... SVN revision: 2249
This commit is contained in:
parent
f44f9ee3bc
commit
4a9c871612
|
@ -4317,3 +4317,13 @@ Also fixes a couple of bugs with the current -econfdir option.
|
||||||
I've tested this fairly well, as has Bob, but let me know if there are any
|
I've tested this fairly well, as has Bob, but let me know if there are any
|
||||||
problems.
|
problems.
|
||||||
|
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Thu Mar 16 23:02:49 GMT 2000
|
||||||
|
(gilbertt)
|
||||||
|
|
||||||
|
Patch from Marius Aamodt Eriksen <marius@linux.com>. Provides option to
|
||||||
|
include shaded windows in focuslist. Now all we need is an "include
|
||||||
|
iconified windows" option...
|
||||||
|
|
||||||
|
|
5
src/E.h
5
src/E.h
|
@ -1195,6 +1195,7 @@ typedef struct _emode
|
||||||
char menusonscreen;
|
char menusonscreen;
|
||||||
char warpmenus;
|
char warpmenus;
|
||||||
char warpsticky;
|
char warpsticky;
|
||||||
|
char warpshaded;
|
||||||
char numdesktops;
|
char numdesktops;
|
||||||
char transientsfollowleader;
|
char transientsfollowleader;
|
||||||
char switchfortransientmap;
|
char switchfortransientmap;
|
||||||
|
@ -2400,8 +2401,8 @@ void ModifyCMClass(char *name,
|
||||||
int rnum, unsigned char *rpx,
|
int rnum, unsigned char *rpx,
|
||||||
unsigned char *rpy, int gnum,
|
unsigned char *rpy, int gnum,
|
||||||
unsigned char *gpx, unsigned char *gpy,
|
unsigned char *gpx, unsigned char *gpy,
|
||||||
int bnum, unsigned char *bpx,
|
|
||||||
|
|
||||||
|
int bnum, unsigned char *bpx,
|
||||||
unsigned char *bpy);
|
unsigned char *bpy);
|
||||||
|
|
||||||
/* config.c functions */
|
/* config.c functions */
|
||||||
|
@ -2528,8 +2529,8 @@ Iconbox *SelectIconboxForEwin(EWin * ewin);
|
||||||
/* slideouts.c functions */
|
/* slideouts.c functions */
|
||||||
void SlideWindowSizeTo(Window win, int fx, int fy,
|
void SlideWindowSizeTo(Window win, int fx, int fy,
|
||||||
int tx, int ty,
|
int tx, int ty,
|
||||||
int fw, int fh, int tw, int th,
|
|
||||||
|
|
||||||
|
int fw, int fh, int tw, int th,
|
||||||
int speed);
|
int speed);
|
||||||
Slideout *CreateSlideout(char *name, char dir);
|
Slideout *CreateSlideout(char *name, char dir);
|
||||||
void ShowSlideout(Slideout * s, Window win);
|
void ShowSlideout(Slideout * s, Window win);
|
||||||
|
|
|
@ -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.desk[gwins[i]->
|
desks.
|
||||||
desktop].x),
|
desk[gwins[i]->desktop].x),
|
||||||
gwins[i]->y - (desks.desk[d].y -
|
gwins[i]->y - (desks.desk[d].y -
|
||||||
desks.desk[gwins[i]->
|
desks.
|
||||||
desktop].y));
|
desk[gwins[i]->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
|
@ -337,13 +337,13 @@ SetCurrentArea(int ax, int ay)
|
||||||
lst[i]->x -
|
lst[i]->x -
|
||||||
(root.w *
|
(root.w *
|
||||||
(ax -
|
(ax -
|
||||||
desks.desk[desks.current].
|
desks.desk[desks.
|
||||||
current_area_x)),
|
current].current_area_x)),
|
||||||
lst[i]->y -
|
lst[i]->y -
|
||||||
(root.h *
|
(root.h *
|
||||||
(ay -
|
(ay -
|
||||||
desks.desk[desks.current].
|
desks.desk[desks.
|
||||||
current_area_y)));
|
current].current_area_y)));
|
||||||
if (setflip)
|
if (setflip)
|
||||||
mode.flipp = 0;
|
mode.flipp = 0;
|
||||||
lst[i]->area_x = a1;
|
lst[i]->area_x = a1;
|
||||||
|
@ -374,13 +374,13 @@ SetCurrentArea(int ax, int ay)
|
||||||
x -
|
x -
|
||||||
(root.w *
|
(root.w *
|
||||||
(ax -
|
(ax -
|
||||||
desks.desk[desks.
|
desks.desk[desks.current].
|
||||||
current].current_area_x)),
|
current_area_x)),
|
||||||
y -
|
y -
|
||||||
(root.h *
|
(root.h *
|
||||||
(ay -
|
(ay -
|
||||||
desks.desk[desks.
|
desks.desk[desks.current].
|
||||||
current].current_area_y)));
|
current_area_y)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* if we're not moving it... move it across */
|
/* if we're not moving it... move it across */
|
||||||
|
@ -399,13 +399,13 @@ SetCurrentArea(int ax, int ay)
|
||||||
lst[i]->x -
|
lst[i]->x -
|
||||||
(root.w *
|
(root.w *
|
||||||
(ax -
|
(ax -
|
||||||
desks.desk[desks.current].
|
desks.desk[desks.
|
||||||
current_area_x)),
|
current].current_area_x)),
|
||||||
lst[i]->y -
|
lst[i]->y -
|
||||||
(root.h *
|
(root.h *
|
||||||
(ay -
|
(ay -
|
||||||
desks.desk[desks.current].
|
desks.desk[desks.
|
||||||
current_area_y)));
|
current].current_area_y)));
|
||||||
if (setflip)
|
if (setflip)
|
||||||
mode.flipp = 0;
|
mode.flipp = 0;
|
||||||
lst[i]->area_x = a1;
|
lst[i]->area_x = a1;
|
||||||
|
|
|
@ -1163,8 +1163,7 @@ CalcEwinWinpart(EWin * ewin, int i)
|
||||||
ewin->border->part[i].geom.topleft.x.absolute +
|
ewin->border->part[i].geom.topleft.x.absolute +
|
||||||
ewin->bits[topleft].x;
|
ewin->bits[topleft].x;
|
||||||
y =
|
y =
|
||||||
((ewin->
|
((ewin->border->part[i].geom.topleft.y.percent *
|
||||||
border->part[i].geom.topleft.y.percent *
|
|
||||||
ewin->bits[topleft].h) >> 10) +
|
ewin->bits[topleft].h) >> 10) +
|
||||||
ewin->border->part[i].geom.topleft.y.absolute +
|
ewin->border->part[i].geom.topleft.y.absolute +
|
||||||
ewin->bits[topleft].y;
|
ewin->bits[topleft].y;
|
||||||
|
@ -1173,12 +1172,12 @@ CalcEwinWinpart(EWin * ewin, int i)
|
||||||
if (bottomright == -1)
|
if (bottomright == -1)
|
||||||
{
|
{
|
||||||
ox =
|
ox =
|
||||||
((ewin->
|
((ewin->border->
|
||||||
border->part[i].geom.bottomright.x.percent * ewin->w) >> 10) +
|
part[i].geom.bottomright.x.percent * ewin->w) >> 10) +
|
||||||
ewin->border->part[i].geom.bottomright.x.absolute;
|
ewin->border->part[i].geom.bottomright.x.absolute;
|
||||||
oy =
|
oy =
|
||||||
((ewin->
|
((ewin->border->
|
||||||
border->part[i].geom.bottomright.y.percent * ewin->h) >> 10) +
|
part[i].geom.bottomright.y.percent * ewin->h) >> 10) +
|
||||||
ewin->border->part[i].geom.bottomright.y.absolute;
|
ewin->border->part[i].geom.bottomright.y.absolute;
|
||||||
}
|
}
|
||||||
else if (bottomright >= 0)
|
else if (bottomright >= 0)
|
||||||
|
@ -2592,8 +2591,9 @@ MinShadeSize(EWin * ewin, int *mw, int *mh)
|
||||||
(ewin->w - ewin->border->border.right) > rightborderwidth)
|
(ewin->w - ewin->border->border.right) > rightborderwidth)
|
||||||
rightborderwidth =
|
rightborderwidth =
|
||||||
(ewin->bits[i].x + ewin->bits[i].w) - (ewin->w -
|
(ewin->bits[i].x + ewin->bits[i].w) - (ewin->w -
|
||||||
ewin->border->
|
ewin->
|
||||||
border.right);
|
border->border.
|
||||||
|
right);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ewin->w = rightborderwidth + leftborderwidth;
|
ewin->w = rightborderwidth + leftborderwidth;
|
||||||
|
@ -2619,8 +2619,9 @@ MinShadeSize(EWin * ewin, int *mw, int *mh)
|
||||||
bottomborderwidth)
|
bottomborderwidth)
|
||||||
bottomborderwidth =
|
bottomborderwidth =
|
||||||
(ewin->bits[i].y + ewin->bits[i].h) - (ewin->h -
|
(ewin->bits[i].y + ewin->bits[i].h) - (ewin->h -
|
||||||
ewin->border->
|
ewin->
|
||||||
border.bottom);
|
border->border.
|
||||||
|
bottom);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ewin->h = bottomborderwidth + topborderwidth;
|
ewin->h = bottomborderwidth + topborderwidth;
|
||||||
|
|
|
@ -116,6 +116,7 @@
|
||||||
#define CONTROL_RAISE_AFTER_NEXT_FOCUS 1353
|
#define CONTROL_RAISE_AFTER_NEXT_FOCUS 1353
|
||||||
#define CONTROL_DISPLAY_WARP 1354
|
#define CONTROL_DISPLAY_WARP 1354
|
||||||
#define CONTROL_WARPSTICKY 667
|
#define CONTROL_WARPSTICKY 667
|
||||||
|
#define CONTROL_WARPSHADED 668
|
||||||
#define CONTROL_WARP_AFTER_NEXT_FOCUS 1355
|
#define CONTROL_WARP_AFTER_NEXT_FOCUS 1355
|
||||||
#define CONTROL_PAGER_SCANSPEED 1356
|
#define CONTROL_PAGER_SCANSPEED 1356
|
||||||
#define CONTROL_ICONTEXT 1357
|
#define CONTROL_ICONTEXT 1357
|
||||||
|
|
|
@ -724,6 +724,9 @@ Config_Control(FILE * ConfigFile)
|
||||||
case CONTROL_WARPSTICKY:
|
case CONTROL_WARPSTICKY:
|
||||||
mode.warpsticky = i2;
|
mode.warpsticky = i2;
|
||||||
break;
|
break;
|
||||||
|
case CONTROL_WARPSHADED:
|
||||||
|
mode.warpshaded = i2;
|
||||||
|
break;
|
||||||
case DESKTOP_HIQUALITYBG:
|
case DESKTOP_HIQUALITYBG:
|
||||||
desks.hiqualitybg = i2;
|
desks.hiqualitybg = i2;
|
||||||
break;
|
break;
|
||||||
|
@ -3834,6 +3837,7 @@ SaveUserControlConfig(FILE * autosavefile)
|
||||||
fprintf(autosavefile, "351 %i\n", (int)mode.menusonscreen);
|
fprintf(autosavefile, "351 %i\n", (int)mode.menusonscreen);
|
||||||
fprintf(autosavefile, "666 %i\n", (int)mode.warpmenus);
|
fprintf(autosavefile, "666 %i\n", (int)mode.warpmenus);
|
||||||
fprintf(autosavefile, "667 %i\n", (int)mode.warpsticky);
|
fprintf(autosavefile, "667 %i\n", (int)mode.warpsticky);
|
||||||
|
fprintf(autosavefile, "668 %i\n", (int)mode.warpshaded);
|
||||||
fprintf(autosavefile, "1350 %i\n", (int)mode.user_bg);
|
fprintf(autosavefile, "1350 %i\n", (int)mode.user_bg);
|
||||||
fprintf(autosavefile, "1351 %i\n", (int)mode.pager_zoom);
|
fprintf(autosavefile, "1351 %i\n", (int)mode.pager_zoom);
|
||||||
fprintf(autosavefile, "1352 %i\n", (int)mode.pager_title);
|
fprintf(autosavefile, "1352 %i\n", (int)mode.pager_title);
|
||||||
|
|
33
src/dialog.c
33
src/dialog.c
|
@ -1081,8 +1081,8 @@ DialogRealizeItem(Dialog * d, DItem * di)
|
||||||
ImlibImage *im;
|
ImlibImage *im;
|
||||||
|
|
||||||
im =
|
im =
|
||||||
ELoadImage(di->item.slider.ic_border->norm.normal->
|
ELoadImage(di->item.slider.ic_border->norm.
|
||||||
im_file);
|
normal->im_file);
|
||||||
if (im)
|
if (im)
|
||||||
{
|
{
|
||||||
di->item.slider.border_orig_w = im->rgb_width;
|
di->item.slider.border_orig_w = im->rgb_width;
|
||||||
|
@ -1356,23 +1356,25 @@ DialogRealizeItem(Dialog * d, DItem * di)
|
||||||
dii->item.check_button.check_win,
|
dii->item.check_button.check_win,
|
||||||
dii->x, dii->y +
|
dii->x, dii->y +
|
||||||
((dii->h -
|
((dii->h -
|
||||||
dii->item.check_button.
|
dii->item.
|
||||||
check_orig_h) / 2),
|
check_button.check_orig_h) /
|
||||||
dii->item.check_button.
|
2),
|
||||||
check_orig_w,
|
dii->item.
|
||||||
dii->item.check_button.
|
check_button.check_orig_w,
|
||||||
check_orig_h);
|
dii->item.
|
||||||
|
check_button.check_orig_h);
|
||||||
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->y +
|
||||||
((dii->h -
|
((dii->h -
|
||||||
dii->item.radio_button.
|
dii->item.
|
||||||
radio_orig_h) / 2),
|
radio_button.radio_orig_h) /
|
||||||
dii->item.radio_button.
|
2),
|
||||||
radio_orig_w,
|
dii->item.
|
||||||
dii->item.radio_button.
|
radio_button.radio_orig_w,
|
||||||
radio_orig_h);
|
dii->item.
|
||||||
|
radio_button.radio_orig_h);
|
||||||
if (dii->type == DITEM_AREA)
|
if (dii->type == DITEM_AREA)
|
||||||
{
|
{
|
||||||
dii->item.area.w = dii->w -
|
dii->item.area.w = dii->w -
|
||||||
|
@ -1882,8 +1884,7 @@ DialogItemAreaSetSize(DItem * di, int w, int h)
|
||||||
di->item.area.h = h;
|
di->item.area.h = h;
|
||||||
}
|
}
|
||||||
|
|
||||||
Window
|
Window DialogItemAreaGetWindow(DItem * di)
|
||||||
DialogItemAreaGetWindow(DItem * di)
|
|
||||||
{
|
{
|
||||||
return di->item.area.area_win;
|
return di->item.area.area_win;
|
||||||
}
|
}
|
||||||
|
|
|
@ -494,8 +494,7 @@ HandleMotion(XEvent * ev)
|
||||||
(gwins
|
(gwins
|
||||||
[i]->reqx,
|
[i]->reqx,
|
||||||
gwins[i]->x,
|
gwins[i]->x,
|
||||||
mode.
|
mode.edge_snap_dist)))))))
|
||||||
edge_snap_dist)))))))
|
|
||||||
{
|
{
|
||||||
jumpx = 1;
|
jumpx = 1;
|
||||||
ndx = gwins[i]->reqx - gwins[i]->x + dx;
|
ndx = gwins[i]->reqx - gwins[i]->x + dx;
|
||||||
|
@ -518,8 +517,7 @@ HandleMotion(XEvent * ev)
|
||||||
(gwins
|
(gwins
|
||||||
[i]->reqy,
|
[i]->reqy,
|
||||||
gwins[i]->y,
|
gwins[i]->y,
|
||||||
mode.
|
mode.edge_snap_dist)))))))
|
||||||
edge_snap_dist)))))))
|
|
||||||
{
|
{
|
||||||
jumpy = 1;
|
jumpy = 1;
|
||||||
ndy = gwins[i]->reqy - gwins[i]->y + dy;
|
ndy = gwins[i]->reqy - gwins[i]->y + dy;
|
||||||
|
@ -982,8 +980,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->
|
((((di->item.
|
||||||
item.slider.base_h - di->item.slider.knob_h -
|
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)) /
|
||||||
|
@ -2509,13 +2507,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]->desktop].
|
[gwins[i]->
|
||||||
current_area_x) -
|
desktop].current_area_x) -
|
||||||
p->hi_ewin->area_x) * root.w,
|
p->hi_ewin->area_x) * root.w,
|
||||||
gwin_py[i] +
|
gwin_py[i] +
|
||||||
((desks.
|
((desks.desk
|
||||||
desk[gwins[i]->desktop].
|
[gwins[i]->
|
||||||
current_area_y) -
|
desktop].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,7 +263,8 @@ cp(char *s, char *ss)
|
||||||
EDBUG_RETURN_;
|
EDBUG_RETURN_;
|
||||||
}
|
}
|
||||||
|
|
||||||
time_t moddate(char *s)
|
time_t
|
||||||
|
moddate(char *s)
|
||||||
{
|
{
|
||||||
struct stat st;
|
struct stat st;
|
||||||
|
|
||||||
|
|
|
@ -1699,8 +1699,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.normal->
|
iclass->norm.
|
||||||
real_file);
|
normal->real_file);
|
||||||
if (im)
|
if (im)
|
||||||
{
|
{
|
||||||
Esnprintf(buf, sizeof(buf),
|
Esnprintf(buf, sizeof(buf),
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -325,6 +325,7 @@ static char tmp_warp_after_focus;
|
||||||
static char tmp_raise_after_focus;
|
static char tmp_raise_after_focus;
|
||||||
static char tmp_display_warp;
|
static char tmp_display_warp;
|
||||||
static char tmp_warpsticky;
|
static char tmp_warpsticky;
|
||||||
|
static char tmp_warpshaded;
|
||||||
static char tmp_clickalways;
|
static char tmp_clickalways;
|
||||||
|
|
||||||
static void CB_ConfigureFocus(int val, void *data);
|
static void CB_ConfigureFocus(int val, void *data);
|
||||||
|
@ -344,6 +345,7 @@ CB_ConfigureFocus(int val, void *data)
|
||||||
mode.raise_after_next_focus = tmp_raise_after_focus;
|
mode.raise_after_next_focus = tmp_raise_after_focus;
|
||||||
mode.display_warp = tmp_display_warp;
|
mode.display_warp = tmp_display_warp;
|
||||||
mode.warpsticky = tmp_warpsticky;
|
mode.warpsticky = tmp_warpsticky;
|
||||||
|
mode.warpshaded = tmp_warpshaded;
|
||||||
#endif /* WITH_TARTY_WARP */
|
#endif /* WITH_TARTY_WARP */
|
||||||
mode.clickalways = tmp_clickalways;
|
mode.clickalways = tmp_clickalways;
|
||||||
FixFocus();
|
FixFocus();
|
||||||
|
@ -377,6 +379,7 @@ SettingsFocus(void)
|
||||||
tmp_warp_after_focus = mode.warp_after_next_focus;
|
tmp_warp_after_focus = mode.warp_after_next_focus;
|
||||||
tmp_display_warp = mode.display_warp;
|
tmp_display_warp = mode.display_warp;
|
||||||
tmp_warpsticky = mode.warpsticky;
|
tmp_warpsticky = mode.warpsticky;
|
||||||
|
tmp_warpshaded = mode.warpshaded;
|
||||||
#endif /* WITH_TARTY_WARP */
|
#endif /* WITH_TARTY_WARP */
|
||||||
tmp_clickalways = mode.clickalways;
|
tmp_clickalways = mode.clickalways;
|
||||||
|
|
||||||
|
@ -513,6 +516,14 @@ SettingsFocus(void)
|
||||||
DialogItemCheckButtonSetState(di, tmp_warpsticky);
|
DialogItemCheckButtonSetState(di, tmp_warpsticky);
|
||||||
DialogItemCheckButtonSetPtr(di, &tmp_warpsticky);
|
DialogItemCheckButtonSetPtr(di, &tmp_warpsticky);
|
||||||
|
|
||||||
|
di = DialogAddItem(table, DITEM_CHECKBUTTON);
|
||||||
|
DialogItemSetPadding(di, 2, 2, 2, 2);
|
||||||
|
DialogItemSetFill(di, 1, 0);
|
||||||
|
DialogItemSetColSpan(di, 2);
|
||||||
|
DialogItemCheckButtonSetText(di, _("Include shaded windows in focus list"));
|
||||||
|
DialogItemCheckButtonSetState(di, tmp_warpshaded);
|
||||||
|
DialogItemCheckButtonSetPtr(di, &tmp_warpshaded);
|
||||||
|
|
||||||
di = DialogAddItem(table, DITEM_CHECKBUTTON);
|
di = DialogAddItem(table, DITEM_CHECKBUTTON);
|
||||||
DialogItemSetPadding(di, 2, 2, 2, 2);
|
DialogItemSetPadding(di, 2, 2, 2, 2);
|
||||||
DialogItemSetFill(di, 1, 0);
|
DialogItemSetFill(di, 1, 0);
|
||||||
|
|
|
@ -557,6 +557,7 @@ SetupX()
|
||||||
#endif /* WITH_TARTY_WARP */
|
#endif /* WITH_TARTY_WARP */
|
||||||
mode.warp_on_next_focus = 0;
|
mode.warp_on_next_focus = 0;
|
||||||
mode.warpsticky = 1;
|
mode.warpsticky = 1;
|
||||||
|
mode.warpshaded = 1;
|
||||||
mode.edge_flip_resistance = 15;
|
mode.edge_flip_resistance = 15;
|
||||||
mode.context_ewin = NULL;
|
mode.context_ewin = NULL;
|
||||||
mode.moveresize_pending_ewin = NULL;
|
mode.moveresize_pending_ewin = NULL;
|
||||||
|
@ -739,8 +740,7 @@ SetupEnv()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Window
|
Window MakeExtInitWin(void)
|
||||||
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.normal->
|
ic->norm.
|
||||||
im),
|
normal->im),
|
||||||
Imlib_copy_mask(id,
|
Imlib_copy_mask(id,
|
||||||
ic->norm.normal->im),
|
ic->norm.normal->im),
|
||||||
x, y);
|
x, y);
|
||||||
|
@ -702,11 +702,12 @@ 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.normal->
|
ic->norm.
|
||||||
im),
|
normal->im),
|
||||||
Imlib_copy_mask(id,
|
Imlib_copy_mask(id,
|
||||||
ic->norm.normal->
|
ic->norm.
|
||||||
im), x, y);
|
normal->im), x,
|
||||||
|
y);
|
||||||
x += ic->norm.normal->im->rgb_width;
|
x += ic->norm.normal->im->rgb_width;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -722,11 +723,12 @@ 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.normal->
|
ic->norm.
|
||||||
im),
|
normal->im),
|
||||||
Imlib_copy_mask(id,
|
Imlib_copy_mask(id,
|
||||||
ic->norm.normal->
|
ic->norm.
|
||||||
im), x, y);
|
normal->im), x,
|
||||||
|
y);
|
||||||
x += ic->norm.normal->im->rgb_width;
|
x += ic->norm.normal->im->rgb_width;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -742,11 +744,12 @@ 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.normal->
|
ic->norm.
|
||||||
im),
|
normal->im),
|
||||||
Imlib_copy_mask(id,
|
Imlib_copy_mask(id,
|
||||||
ic->norm.normal->
|
ic->norm.
|
||||||
im), x, y);
|
normal->im), x,
|
||||||
|
y);
|
||||||
x += ic->norm.normal->im->rgb_width;
|
x += ic->norm.normal->im->rgb_width;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -762,11 +765,12 @@ 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.normal->
|
ic->norm.
|
||||||
im),
|
normal->im),
|
||||||
Imlib_copy_mask(id,
|
Imlib_copy_mask(id,
|
||||||
ic->norm.normal->
|
ic->norm.
|
||||||
im), x, y);
|
normal->im), x,
|
||||||
|
y);
|
||||||
x += ic->norm.normal->im->rgb_width;
|
x += ic->norm.normal->im->rgb_width;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -782,11 +786,12 @@ 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.normal->
|
ic->norm.
|
||||||
im),
|
normal->im),
|
||||||
Imlib_copy_mask(id,
|
Imlib_copy_mask(id,
|
||||||
ic->norm.normal->
|
ic->norm.
|
||||||
im), x, y);
|
normal->im), x,
|
||||||
|
y);
|
||||||
x += ic->norm.normal->im->rgb_width;
|
x += ic->norm.normal->im->rgb_width;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -806,16 +811,17 @@ 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->im->
|
ic->norm.normal->
|
||||||
rgb_height);
|
im->rgb_height);
|
||||||
PastePixmap(disp, tt->win,
|
PastePixmap(disp, tt->win,
|
||||||
Imlib_copy_image(id,
|
Imlib_copy_image(id,
|
||||||
ic->norm.
|
ic->
|
||||||
normal->im),
|
norm.normal->
|
||||||
|
im),
|
||||||
Imlib_copy_mask(id,
|
Imlib_copy_mask(id,
|
||||||
ic->norm.
|
ic->
|
||||||
normal->im), x,
|
norm.normal->
|
||||||
y);
|
im), x, y);
|
||||||
x += ic->norm.normal->im->rgb_width;
|
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,
|
Imlib_render(id, ic->norm.normal->im,
|
||||||
ic->norm.normal->im->rgb_width,
|
ic->norm.normal->im->rgb_width,
|
||||||
ic->norm.normal->im->
|
ic->norm.normal->
|
||||||
rgb_height);
|
im->rgb_height);
|
||||||
PastePixmap(disp, tt->win,
|
PastePixmap(disp, tt->win,
|
||||||
Imlib_copy_image(id,
|
Imlib_copy_image(id,
|
||||||
ic->norm.
|
ic->
|
||||||
normal->im),
|
norm.normal->
|
||||||
|
im),
|
||||||
Imlib_copy_mask(id,
|
Imlib_copy_mask(id,
|
||||||
ic->norm.
|
ic->
|
||||||
normal->im), x,
|
norm.normal->
|
||||||
y);
|
im), x, y);
|
||||||
x += ic->norm.normal->im->rgb_width;
|
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,
|
Imlib_render(id, ic->norm.normal->im,
|
||||||
ic->norm.normal->im->rgb_width,
|
ic->norm.normal->im->rgb_width,
|
||||||
ic->norm.normal->im->
|
ic->norm.normal->
|
||||||
rgb_height);
|
im->rgb_height);
|
||||||
PastePixmap(disp, tt->win,
|
PastePixmap(disp, tt->win,
|
||||||
Imlib_copy_image(id,
|
Imlib_copy_image(id,
|
||||||
ic->norm.
|
ic->
|
||||||
normal->im),
|
norm.normal->
|
||||||
|
im),
|
||||||
Imlib_copy_mask(id,
|
Imlib_copy_mask(id,
|
||||||
ic->norm.
|
ic->
|
||||||
normal->im), x,
|
norm.normal->
|
||||||
y);
|
im), x, y);
|
||||||
x += ic->norm.normal->im->rgb_width;
|
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,
|
Imlib_render(id, ic->norm.normal->im,
|
||||||
ic->norm.normal->im->rgb_width,
|
ic->norm.normal->im->rgb_width,
|
||||||
ic->norm.normal->im->
|
ic->norm.normal->
|
||||||
rgb_height);
|
im->rgb_height);
|
||||||
PastePixmap(disp, tt->win,
|
PastePixmap(disp, tt->win,
|
||||||
Imlib_copy_image(id,
|
Imlib_copy_image(id,
|
||||||
ic->norm.
|
ic->
|
||||||
normal->im),
|
norm.normal->
|
||||||
|
im),
|
||||||
Imlib_copy_mask(id,
|
Imlib_copy_mask(id,
|
||||||
ic->norm.
|
ic->
|
||||||
normal->im), x,
|
norm.normal->
|
||||||
y);
|
im), x, y);
|
||||||
x += ic->norm.normal->im->rgb_width;
|
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,
|
Imlib_render(id, ic->norm.normal->im,
|
||||||
ic->norm.normal->im->rgb_width,
|
ic->norm.normal->im->rgb_width,
|
||||||
ic->norm.normal->im->
|
ic->norm.normal->
|
||||||
rgb_height);
|
im->rgb_height);
|
||||||
PastePixmap(disp, tt->win,
|
PastePixmap(disp, tt->win,
|
||||||
Imlib_copy_image(id,
|
Imlib_copy_image(id,
|
||||||
ic->norm.
|
ic->
|
||||||
normal->im),
|
norm.normal->
|
||||||
|
im),
|
||||||
Imlib_copy_mask(id,
|
Imlib_copy_mask(id,
|
||||||
ic->norm.
|
ic->
|
||||||
normal->im), x,
|
norm.normal->
|
||||||
y);
|
im), x, y);
|
||||||
x += ic->norm.normal->im->rgb_width;
|
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,
|
Imlib_render(id, ic->norm.normal->im,
|
||||||
ic->norm.normal->im->rgb_width,
|
ic->norm.normal->im->rgb_width,
|
||||||
ic->norm.normal->im->
|
ic->norm.normal->
|
||||||
rgb_height);
|
im->rgb_height);
|
||||||
PastePixmap(disp, tt->win,
|
PastePixmap(disp, tt->win,
|
||||||
Imlib_copy_image(id,
|
Imlib_copy_image(id,
|
||||||
ic->norm.
|
ic->
|
||||||
normal->im),
|
norm.normal->
|
||||||
|
im),
|
||||||
Imlib_copy_mask(id,
|
Imlib_copy_mask(id,
|
||||||
ic->norm.
|
ic->
|
||||||
normal->im), x,
|
norm.normal->
|
||||||
y);
|
im), x, y);
|
||||||
x += ic->norm.normal->im->rgb_width;
|
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,
|
Imlib_render(id, ic->norm.normal->im,
|
||||||
ic->norm.normal->im->rgb_width,
|
ic->norm.normal->im->rgb_width,
|
||||||
ic->norm.normal->im->
|
ic->norm.normal->
|
||||||
rgb_height);
|
im->rgb_height);
|
||||||
PastePixmap(disp, tt->win,
|
PastePixmap(disp, tt->win,
|
||||||
Imlib_copy_image(id,
|
Imlib_copy_image(id,
|
||||||
ic->norm.
|
ic->
|
||||||
normal->im),
|
norm.normal->
|
||||||
|
im),
|
||||||
Imlib_copy_mask(id,
|
Imlib_copy_mask(id,
|
||||||
ic->norm.
|
ic->
|
||||||
normal->im), x,
|
norm.normal->
|
||||||
y);
|
im), x, y);
|
||||||
x += ic->norm.normal->im->rgb_width;
|
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,
|
Imlib_render(id, ic->norm.normal->im,
|
||||||
ic->norm.normal->im->rgb_width,
|
ic->norm.normal->im->rgb_width,
|
||||||
ic->norm.normal->im->
|
ic->norm.normal->
|
||||||
rgb_height);
|
im->rgb_height);
|
||||||
PastePixmap(disp, tt->win,
|
PastePixmap(disp, tt->win,
|
||||||
Imlib_copy_image(id,
|
Imlib_copy_image(id,
|
||||||
ic->norm.
|
ic->
|
||||||
normal->im),
|
norm.normal->
|
||||||
|
im),
|
||||||
Imlib_copy_mask(id,
|
Imlib_copy_mask(id,
|
||||||
ic->norm.
|
ic->
|
||||||
normal->im), x,
|
norm.normal->
|
||||||
y);
|
im), x, y);
|
||||||
x += ic->norm.normal->im->rgb_width;
|
x += ic->norm.normal->im->rgb_width;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -140,10 +140,11 @@ WarpFocus(int delta)
|
||||||
if (((ewin->sticky) || (ewin->desktop == desks.current)) &&
|
if (((ewin->sticky) || (ewin->desktop == desks.current)) &&
|
||||||
(ewin->x + ewin->w > 0) && (ewin->x < root.w) &&
|
(ewin->x + ewin->w > 0) && (ewin->x < root.w) &&
|
||||||
(ewin->y + ewin->h > 0) && (ewin->y < root.h) &&
|
(ewin->y + ewin->h > 0) && (ewin->y < root.h) &&
|
||||||
(!ewin->skipfocus) && (!ewin->shaded) &&
|
(!ewin->skipfocus) && !(ewin->shaded && !mode.warpshaded)
|
||||||
(!ewin->menu) && (!ewin->pager) &&
|
&& (!ewin->menu) && (!ewin->pager) && !(ewin->sticky
|
||||||
!(ewin->sticky && !mode.warpsticky) &&
|
&& !mode.
|
||||||
(!ewin->ibox) && (!ewin->iconified)
|
warpsticky)
|
||||||
|
&& (!ewin->ibox) && (!ewin->iconified)
|
||||||
/*&& (ewin->client.mwm_decor_title) &&
|
/*&& (ewin->client.mwm_decor_title) &&
|
||||||
* (ewin->client.mwm_decor_border) */
|
* (ewin->client.mwm_decor_border) */
|
||||||
)
|
)
|
||||||
|
|
15
src/x.c
15
src/x.c
|
@ -40,7 +40,8 @@ EFreePixmap(Display * display, Pixmap pixmap)
|
||||||
XFreePixmap(display, 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;
|
EXID *xid;
|
||||||
Window win;
|
Window win;
|
||||||
|
@ -586,8 +587,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;
|
||||||
|
@ -603,8 +603,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;
|
||||||
|
@ -738,8 +737,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;
|
||||||
|
@ -786,8 +784,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