Wed Apr 2 17:54:45 EST 2003

(KainX)

Added latest patch from Kim Woelders <kim@woelders.dk> to fix setting
of the _NET_DESKTOP_VIEWPORT hint.


SVN revision: 6815
This commit is contained in:
Michael Jennings 2003-04-02 22:55:53 +00:00
parent f0b27f7838
commit 3f3664393c
2 changed files with 22 additions and 6 deletions

View File

@ -1780,3 +1780,11 @@ Removed all files in intl/ since they should now be autogenerated by
whatever version of gettext is installed, and different versions have
different files. Plus they're autogenerated anyway, so they shouldn't
be in CVS to begin with.
-------------------------------------------------------------------------------
Wed Apr 2 17:54:45 EST 2003
(KainX)
Added latest patch from Kim Woelders <kim@woelders.dk> to fix setting
of the _NET_DESKTOP_VIEWPORT hint.

View File

@ -327,14 +327,22 @@ EWMH_SetCurrentDesktop(void)
void
EWMH_SetDesktopViewport(void)
{
CARD32 val[2];
int ax, ay;
CARD32 *p_coord;
int n_coord, i;
EDBUG(6, "EWMH_SetDesktopViewport");
GetCurrentArea(&ax, &ay);
val[0] = ax * root.w;
val[1] = ay * root.h;
_ATOM_SET_CARD32(_NET_DESKTOP_VIEWPORT, root.win, val, 2);
n_coord = 2 * mode.numdesktops;
p_coord = Emalloc(n_coord * sizeof(CARD32));
if (p_coord)
{
for (i = 0; i < mode.numdesktops; i++)
{
p_coord[2 * i] = desks.desk[i].current_area_x * root.w;
p_coord[2 * i + 1] = desks.desk[i].current_area_y * root.h;
}
_ATOM_SET_CARD32(_NET_DESKTOP_VIEWPORT, root.win, p_coord, n_coord);
Efree(p_coord);
}
EDBUG_RETURN_;
}