diff options
author | maniac <maniac@d7aaf104-2d23-0410-ae22-9d23157bf5a3> | 2007-02-16 18:04:22 +0000 |
---|---|---|
committer | maniac <maniac@d7aaf104-2d23-0410-ae22-9d23157bf5a3> | 2007-02-16 18:04:22 +0000 |
commit | 14d7c94d90d24e29136a42ce4e03bb7cdcd1bc2e (patch) | |
tree | 6be959118f7b187c37409460b427b430436d6657 | |
parent | 854df0fedf94311c61a0685a3b29f9a5e34ee8a4 (diff) | |
download | marex-dev-14d7c94d90d24e29136a42ce4e03bb7cdcd1bc2e.tar.gz marex-dev-14d7c94d90d24e29136a42ce4e03bb7cdcd1bc2e.tar.bz2 |
wall plugin: fix unnecessary damaging
git-svn-id: file:///beryl/trunk@4109 d7aaf104-2d23-0410-ae22-9d23157bf5a3
-rw-r--r-- | beryl-plugins/src/wall.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/beryl-plugins/src/wall.c b/beryl-plugins/src/wall.c index 6e75613..389ecca 100644 --- a/beryl-plugins/src/wall.c +++ b/beryl-plugins/src/wall.c @@ -385,10 +385,9 @@ static void wallHandleEvent(CompDisplay * d, XEvent * event) case ButtonPress: s = findScreenAtDisplay(d, event->xbutton.root); ws = GET_WALL_SCREEN(s, wd); - ws->anyClick = TRUE; - damageScreen(s); if (ws->expoMode) { + ws->anyClick = TRUE; if (event->xbutton.button == Button1) ws->dndState = DnDStart; else if (event->xbutton.button != Button5) @@ -412,7 +411,7 @@ static void wallHandleEvent(CompDisplay * d, XEvent * event) ws->origVX = ws->mouseOverViewX; ws->origVY = ws->mouseOverViewY; ws->expoMode = FALSE; - damageScreen(s); + while (s->x != ws->mouseOverViewX) moveScreenViewport(s, 1, 0, TRUE); while (s->y != ws->mouseOverViewY) @@ -420,6 +419,7 @@ static void wallHandleEvent(CompDisplay * d, XEvent * event) focusDefaultWindow(s); } + damageScreen(s); } break; case ButtonRelease: @@ -1767,7 +1767,6 @@ static void wallDonePaintScreen(CompScreen * s) ws->prevCursorX = ws->newCursorX; ws->prevCursorY = ws->newCursorY; - damageScreen(s); } @@ -1830,8 +1829,6 @@ static void wallDonePaintScreen(CompScreen * s) ws->prevCursorX = ws->newCursorX; ws->prevCursorY = ws->newCursorY; - - //damageScreen(s); } static void wallDisplayInitOptions(WallDisplay * wd) |