mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-14 00:52:04 +00:00
attempt to reduce freezing issues caused by model dialog on Linux
This commit is contained in:
@@ -240,7 +240,14 @@ wxString DeviceErrorDialog::show_error_code(int error_code)
|
|||||||
Show();
|
Show();
|
||||||
Raise();
|
Raise();
|
||||||
|
|
||||||
|
#ifndef __linux__
|
||||||
|
// On Linux (especially Wayland) RequestUserAttention(wxUSER_ATTENTION_ERROR) maps to
|
||||||
|
// gtk_window_set_urgency_hint(TRUE) which can leave the window in an urgent-but-unfocused
|
||||||
|
// state — clicks no longer reach any widget in the app and the user has to kill the
|
||||||
|
// process to recover. Same root cause as #9874, where SecondaryCheckDialog had its
|
||||||
|
// RequestUserAttention call removed for the identical reason.
|
||||||
this->RequestUserAttention(wxUSER_ATTENTION_ERROR);
|
this->RequestUserAttention(wxUSER_ATTENTION_ERROR);
|
||||||
|
#endif
|
||||||
|
|
||||||
return error_msg;
|
return error_msg;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user