diff options
author | Roland Mainz <roland.mainz@nrubsig.org> | 2005-03-02 14:21:40 +0000 |
---|---|---|
committer | Roland Mainz <roland.mainz@nrubsig.org> | 2005-03-02 14:21:40 +0000 |
commit | d995fe631a5706de93a05fda498333442af3d207 (patch) | |
tree | 408b597c04f7b3277e03274ad34ce2a1ed47d53c /hw/xnest/Screen.c | |
parent | 3f79c5eefc0d62d3a9b095472cd75b446ba2a56e (diff) |
xc/programs/Xserver/hw/xnest/Screen.c
xc/programs/Xserver/hw/xnest/Window.c
//bugs.freedesktop.org/show_bug.cgi?id=2546) attachment #2005
(https://bugs.freedesktop.org/attachment.cgi?id=2005): Fix Xnest to
update the shape regions in the backend server whenever a client
changes them in Xnest (the fix is to add a new wrapper which calls
|xnestShapeWindow()| before calling |miSetShape()|). Patch by Mark
McLoughlin <mark@skynet.ie>
Diffstat (limited to 'hw/xnest/Screen.c')
-rw-r--r-- | hw/xnest/Screen.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/hw/xnest/Screen.c b/hw/xnest/Screen.c index 676e7748f..3dec48b5f 100644 --- a/hw/xnest/Screen.c +++ b/hw/xnest/Screen.c @@ -361,6 +361,11 @@ xnestOpenScreen(int index, ScreenPtr pScreen, int argc, char *argv[]) if (!miScreenDevPrivateInit(pScreen, xnestWidth, NULL)) return FALSE; +#ifdef SHAPE + /* overwrite miSetShape with our own */ + pScreen->SetShape = xnestSetShape; +#endif /* SHAPE */ + /* devPrivates */ #define POSITION_OFFSET (pScreen->myNum * (xnestWidth + xnestHeight) / 32) |