linux setup notes

How to eliminate edge resistance in Enlightenment e16

by T.J. Nelson

How to eliminate edge resistance in Enlightenment e16

E nlightenment is a popular Linux desktop. The window manager, e16, is great but it has one quirk that's annoying: when you move a window, there is ‘resistance’ when it bumps into another window or the edge of the screen. Here is how to fix that.

Edit src/moveresize.c. At line 536, where it says “make our ewin resist other ewins around the place” comment out the line starting with SnapEwin and the entire if .. else block. Then recompile (configure; make; su; make install). Click the center mouse button and select Restart.

Now moving windows should be smooth, with no resistance when you drag a window to the edge of the screen.

for (i = 0; i < num; i++)
{
ndx = dx;
ndy = dy;
/* make our ewin resist other ewins around the place */
/*
SnapEwin(gwins[i], dx, dy, &ndx, &ndy);
if ((dx < 0) && (ndx <= 0))
{
if (ndx > min_dx)
min_dx = ndx;
if (ndx < max_dx)
max_dx = ndx;
}
else if (ndx >= 0)
{
if (ndx < min_dx)
min_dx = ndx;
if (ndx > max_dx)
max_dx = ndx;
}
if ((dy < 0) && (ndy <= 0))
{
if (ndy > min_dy)
min_dy = ndy;
if (ndy < max_dy)
max_dy = ndy;
}
else if (ndy >= 0)
{
if (ndy < min_dy)
min_dy = ndy;
if (ndy > max_dy)
max_dy = ndy;
}
*/
}


On the Internet, no one can tell whether you're a dolphin or a porpoise
jun 24 2015

back

to top