Commit 5eeb17a5 authored by Ivica Bukvic's avatar Ivica Bukvic
Browse files

*refined when the reflecttitle is being invoked

parent f4747727
......@@ -690,7 +690,7 @@ void canvas_dirty(t_canvas *x, t_floatarg n)
if ((unsigned)n != x2->gl_dirty)
{
x2->gl_dirty = n;
if (glist_isvisible(x2))
if (x2->gl_havewindow) // was glist_isvisible(x2)
canvas_reflecttitle(x2);
}
}
......
......@@ -2182,19 +2182,22 @@ static char *cursorlist[] = {
void canvas_setcursor(t_canvas *x, unsigned int cursornum)
{
//fprintf(stderr,"canvas_setcursor %d\n", cursornum);
static t_canvas *xwas;
static unsigned int cursorwas;
if (cursornum >= sizeof(cursorlist)/sizeof *cursorlist)
{
bug("canvas_setcursor");
return;
}
if (xwas != x || cursorwas != cursornum)
if (x->gl_havewindow)
{
sys_vgui(".x%lx configure -cursor %s\n", x, cursorlist[cursornum]);
xwas = x;
cursorwas = cursornum;
//fprintf(stderr,"canvas_setcursor %d\n", cursornum);
static t_canvas *xwas;
static unsigned int cursorwas;
if (cursornum >= sizeof(cursorlist)/sizeof *cursorlist)
{
bug("canvas_setcursor");
return;
}
if (xwas != x || cursorwas != cursornum)
{
sys_vgui(".x%lx configure -cursor %s\n", x, cursorlist[cursornum]);
xwas = x;
cursorwas = cursornum;
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment