winex11: Don't put window manager decorations on shaped windows.
diff --git a/dlls/winex11.drv/window.c b/dlls/winex11.drv/window.c
index 0f84ae2..ad56a704 100644
--- a/dlls/winex11.drv/window.c
+++ b/dlls/winex11.drv/window.c
@@ -163,6 +163,7 @@
     if (!decorated_mode) return 0;
 
     if (IsRectEmpty( &data->window_rect )) return 0;
+    if (data->shaped) return 0;
 
     if (ex_style & WS_EX_TOOLWINDOW) return 0;
 
@@ -321,6 +322,7 @@
 {
 #ifdef HAVE_LIBXSHAPE
     if (!data->whole_window) return;
+    data->shaped = FALSE;
 
     if (!hrgn)
     {
@@ -341,6 +343,7 @@
                                      pRegionData->rdh.nCount, ShapeSet, YXBanded );
             wine_tsx11_unlock();
             HeapFree(GetProcessHeap(), 0, pRegionData);
+            data->shaped = TRUE;
         }
     }
 #endif  /* HAVE_LIBXSHAPE */