From a2760c0465ac53acbbdaef3fc22c7f347e437f3d Mon Sep 17 00:00:00 2001 From: Danny Baumann Date: Mon, 17 Mar 2008 07:46:16 +0100 Subject: [PATCH] Adjust ConfigureRequest geometry for decoration size. Reference: https://bugs.freedesktop.org/show_bug.cgi?id=13589 --- plugins/decoration.c | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/plugins/decoration.c b/plugins/decoration.c index 64717a9..37ed4b4 100644 --- a/plugins/decoration.c +++ b/plugins/decoration.c @@ -958,6 +958,18 @@ decorHandleEvent (CompDisplay *d, if (w) decorWindowUpdate (w, TRUE); break; + case ConfigureRequest: + w = findWindowAtDisplay (d, event->xconfigurerequest.window); + if (w) + { + unsigned int mask = event->xconfigurerequest.value_mask; + + if (mask & CWX) + event->xconfigurerequest.x += decorWindowShiftX (w); + if (mask & CWY) + event->xconfigurerequest.y += decorWindowShiftY (w); + } + break; default: if (event->type == d->damageEvent + XDamageNotify) { -- 1.5.4.1