Fixed app windows destroy will do close(0) (#8073)

shmid was not initailized on creation of app window, that will be close fd = 0. everytimes in app windows destroy (Call xf_DestroyWindow ).
This commit is contained in:
zengguang 2022-07-15 15:18:45 +08:00 committed by GitHub
parent 54bbe33123
commit e3cfe7300c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -799,6 +799,7 @@ int xf_AppWindowCreate(xfContext* xfc, xfAppWindow* appWindow)
xf_FixWindowCoordinates(xfc, &appWindow->x, &appWindow->y, &appWindow->width,
&appWindow->height);
appWindow->shmid = -1;
appWindow->decorations = FALSE;
appWindow->fullscreen = FALSE;
appWindow->local_move.state = LMS_NOT_ACTIVE;