You can no longer close a minimized program by pressing left click on a minimized close button lol
This commit is contained in:
parent
52b9337d06
commit
aac26f012e
@ -241,12 +241,12 @@ int Shell::handle_window_click(CLICK_EVENT event) {
|
|||||||
int x = window->x + it->x_offset;
|
int x = window->x + it->x_offset;
|
||||||
int y = window->y + it->y_offset;
|
int y = window->y + it->y_offset;
|
||||||
|
|
||||||
if (event.x >= x && event.x <= (x + it->width) && event.y >= y && event.y <= (y + it->height) && it->action == WindowAction::CLOSE) {
|
if (event.x >= x && event.x <= (x + it->width) && event.y >= y && event.y <= (y + it->height) && it->action == WindowAction::CLOSE && !window->minimized) {
|
||||||
close_window(window->id);
|
close_window(window->id);
|
||||||
return window->id;
|
return window->id;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (event.x >= x && event.x <= (x + it->width) && event.y >= y && event.y <= (y + it->height) && it->action == WindowAction::MINIMIZE) {
|
if (event.x >= x && event.x <= (x + it->width) && event.y >= y && event.y <= (y + it->height) && it->action == WindowAction::MINIMIZE && !window->minimized) {
|
||||||
minimize_window(window->id);
|
minimize_window(window->id);
|
||||||
return window->id;
|
return window->id;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user