Fix trouble with move/resize operations started by _NET_WM_MOVERESIZE.

SVN revision: 50348
This commit is contained in:
Kim Woelders 2010-07-18 18:52:48 +00:00
parent 8438984e49
commit a32381ce55
2 changed files with 9 additions and 3 deletions

View File

@ -400,9 +400,11 @@ EventsUpdateXY(int *px, int *py)
{
int ss;
ss = EQueryPointer(NULL, px, py, NULL, NULL);
Mode.events.cx = *px;
Mode.events.cy = *py;
ss = EQueryPointer(NULL, &Mode.events.cx, &Mode.events.cy, NULL, NULL);
if (px)
*px = Mode.events.cx;
if (py)
*py = Mode.events.cy;
return ss;
}

View File

@ -26,6 +26,7 @@
#include "E.h"
#include "desktops.h"
#include "e16-ecore_hints.h"
#include "events.h"
#include "ewins.h"
#include "hints.h"
@ -1028,6 +1029,9 @@ EWMH_ProcessClientClientMessage(EWin * ewin, XClientMessageEvent * ev)
if (ev->message_type == ECORE_X_ATOM_NET_WM_MOVERESIZE)
{
/* source = OPSRC(ev->data.l[4]); */
EventsUpdateXY(NULL, NULL);
switch (ev->data.l[2])
{
case _NET_WM_MOVERESIZE_SIZE_TOPLEFT: