mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-19 02:32:44 +03:00
When we unlock a public screen, don't attempt to unlock it again.
We lock the screen to stop it closing before we open our window, and unlock it when the window is open (the window is a sufficient lock). However we were not resetting the flag indicating the screen was still locked, so it was getting unlocked twice.
This commit is contained in:
parent
71cdc461a6
commit
0c55edfcb9
@ -4377,7 +4377,10 @@ gui_window_create(struct browser_window *bw,
|
|||||||
|
|
||||||
glob = &browserglob;
|
glob = &browserglob;
|
||||||
|
|
||||||
if(locked_screen) UnlockPubScreen(NULL,scrn);
|
if(locked_screen) {
|
||||||
|
UnlockPubScreen(NULL,scrn);
|
||||||
|
locked_screen = FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
ami_schedule(0, ami_gui_search_ico_refresh, NULL);
|
ami_schedule(0, ami_gui_search_ico_refresh, NULL);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user