Frogging-Family / wine-tkg-git

The wine-tkg build systems, to create custom Wine and Proton builds
893 stars 163 forks source link

Proton childwindow patch for mainline needs updating #1040

Closed csutcliff closed 1 year ago

csutcliff commented 1 year ago
index 4d6a6f40..f6d69bc6 100644
--- a/wine-tkg-git/wine-tkg-patches/misc/childwindow/childwindow-proton-mainline.patch
+++ b/wine-tkg-git/wine-tkg-patches/misc/childwindow/childwindow-proton-mainline.patch
@@ -1511,7 +1511,7 @@ index 8438fdb7225..b6087eac24c 100644
 @@ -1370,6 +1370,7 @@ static void sync_client_position( struct x11drv_win_data *data,
          TRACE( "setting client win %lx pos %d,%d,%dx%d changes=%x\n",
                 data->client_window, changes.x, changes.y, changes.width, changes.height, mask );
-         XConfigureWindow( data->display, data->client_window, mask, &changes );
+         XConfigureWindow( gdi_display, data->client_window, mask, &changes );
 +        resize_vk_surfaces( data->hwnd, data->client_window, mask, &changes );
      }
  }

this fixes the patch for builds post a6bc5f34b87393e04ff46659f518f2e7094cc7e4

I'm not sure how to achieve this properly hence the issue rather than a PR

Tk-Glitch commented 1 year ago

Fixed with https://github.com/Frogging-Family/wine-tkg-git/commit/1ab152883c944736ca405cbc5238e0365ed17edb