core/close-dialog: Don't pass DISPLAY
We set it via setenv(), and might not have the MetaX11Display at hand. This fixes a crash when the stuck-client dialog (using zenity) appears without any X1 client having appeared. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2081>
This commit is contained in:
parent
b28a6e50a0
commit
734ae26ff7
@ -160,8 +160,7 @@ meta_close_dialog_default_show (MetaCloseDialog *dialog)
|
|||||||
|
|
||||||
dialog_pid =
|
dialog_pid =
|
||||||
meta_show_dialog ("--question",
|
meta_show_dialog ("--question",
|
||||||
window_content, NULL,
|
window_content, NULL, NULL,
|
||||||
window->display->x11_display->screen_name,
|
|
||||||
_("_Force Quit"), _("_Wait"),
|
_("_Force Quit"), _("_Wait"),
|
||||||
"face-sad-symbolic", window->xwindow,
|
"face-sad-symbolic", window->xwindow,
|
||||||
NULL, NULL);
|
NULL, NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user