Skip to content

Commit

Permalink
rootless: Fix SetShape regression
Browse files Browse the repository at this point in the history
This fixes a regression in miext/rootless from 643cb6e

Found-by: tinderbox
Signed-off-by: Jeremy Huddleston <[email protected]>
Reviewed-by: Pierre-Loup A. Griffais <[email protected]>
Signed-off-by: Keith Packard <[email protected]>
  • Loading branch information
jeremyhu authored and keith-packard committed Jun 6, 2010
1 parent 6b4af3b commit 1768e51
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions miext/rootless/rootlessWindow.c
Original file line number Diff line number Diff line change
Expand Up @@ -288,12 +288,12 @@ static void RootlessReshapeFrame(WindowPtr pWin)
* shaped when the window is framed.
*/
void
RootlessSetShape(WindowPtr pWin)
RootlessSetShape(WindowPtr pWin, int kind)
{
ScreenPtr pScreen = pWin->drawable.pScreen;

SCREEN_UNWRAP(pScreen, SetShape);
pScreen->SetShape(pWin);
pScreen->SetShape(pWin, kind);
SCREEN_WRAP(pScreen, SetShape);

RootlessReshapeFrame(pWin);
Expand Down
2 changes: 1 addition & 1 deletion miext/rootless/rootlessWindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
Bool RootlessCreateWindow(WindowPtr pWin);
Bool RootlessDestroyWindow(WindowPtr pWin);

void RootlessSetShape(WindowPtr pWin);
void RootlessSetShape(WindowPtr pWin, int kind);

Bool RootlessChangeWindowAttributes(WindowPtr pWin, unsigned long vmask);
Bool RootlessPositionWindow(WindowPtr pWin, int x, int y);
Expand Down

0 comments on commit 1768e51

Please sign in to comment.