Skip to content

Commit ef8f9c3

Browse files
committed
GPU Wayland Display: Fix incorrect copy&paste when setting up the display, running state set too late.
1 parent c892c7f commit ef8f9c3

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎GPU/GPUTracking/display/frontend/GPUDisplayFrontendWayland.cxx‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,10 @@ int32_t GPUDisplayFrontendWayland::FrontendMain()
398398
return (1);
399399
}
400400

401+
pthread_mutex_lock(&mSemLockExit);
402+
mDisplayRunning = true;
403+
pthread_mutex_unlock(&mSemLockExit);
404+
401405
while (mDisplayControl != 2) {
402406
while (wl_display_prepare_read(mWayland) != 0) {
403407
wl_display_dispatch_pending(mWayland);
@@ -429,10 +433,6 @@ int32_t GPUDisplayFrontendWayland::FrontendMain()
429433
}
430434
xkb_context_unref(mXKBcontext);
431435

432-
pthread_mutex_lock(&mSemLockExit);
433-
mDisplayRunning = true;
434-
pthread_mutex_unlock(&mSemLockExit);
435-
436436
pthread_mutex_lock(&mSemLockExit);
437437
mDisplayRunning = false;
438438
pthread_mutex_unlock(&mSemLockExit);

0 commit comments

Comments
 (0)