When pressing the button, the selected window becomes a priority window; The priority can be removed by pressing the button again, closing the window, or assigning another window as priority: When you close a window, the priority does not transfer to another window. Other logic is identical ...