kwo pushed a commit to branch master.

http://git.enlightenment.org/e16/e16.git/commit/?id=47d1aa9d19703c6144f43ab34d1aa2fce6c21abe

commit 47d1aa9d19703c6144f43ab34d1aa2fce6c21abe
Author: Kim Woelders <k...@woelders.dk>
Date:   Thu May 6 19:24:22 2021 +0200

    FX: Tweaks
---
 src/fx.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/fx.c b/src/fx.c
index 676be56d..1dde5277 100644
--- a/src/fx.c
+++ b/src/fx.c
@@ -55,6 +55,7 @@ typedef struct {
 
 typedef struct {
    Win                 win;
+   EX_Window           root;
    EX_Pixmap           above;
    int                 count;
    float               incv, inch, incx;
@@ -71,13 +72,14 @@ _FxSetup(FXData * d, unsigned int height)
    if (!d->above)
      {
        d->win = EobjGetWin(bgeo);
+       d->root = EobjGetXwin(bgeo);
        d->above = ECreatePixmap(d->win, WinGetW(VROOT), height, 0);
 
        XGCValues           xgcv;
 
        xgcv.subwindow_mode = ClipByChildren;
        if (!d->gc1)
-          d->gc1 = EXCreateGC(WinGetXwin(d->win), GCSubwindowMode, &xgcv);
+          d->gc1 = EXCreateGC(d->root, GCSubwindowMode, &xgcv);
      }
 
 #if USE_COMPOSITE
@@ -112,14 +114,14 @@ _FxCopyArea(FXData * d, int out, int src_x, int src_y, 
int dst_x, int dst_y,
    if (out)
      {
        src = d->above;
-       dst = WinGetXwin(d->win);
+       dst = d->root;
 
        EXCopyAreaGC(src, dst, d->gc1, src_x, src_y, width, height,
                     dst_x, dst_y);
      }
    else
      {
-       src = WinGetXwin(d->win);
+       src = d->root;
        dst = d->above;
 
        EXCopyArea(src, dst, src_x, src_y, width, height, dst_x, dst_y);

-- 


Reply via email to