Issue #12216: fix crash on switch to MWM
Since commit 4e499810
, GIMP could crash on switching to
multi-window mode on X11 Linux systems.
As suggested by Alx Sa it is enough to add a NULL check for
shell to avoid the crash.
This commit is contained in:
@ -336,7 +336,7 @@ gimp_displays_accept_focus_events (Gimp *gimp)
|
||||
{
|
||||
GimpDisplayShell *shell = gimp_image_window_get_active_shell (iter->data);
|
||||
|
||||
if (! gimp_display_shell_is_drawn (shell))
|
||||
if (shell && ! gimp_display_shell_is_drawn (shell))
|
||||
{
|
||||
accept = FALSE;
|
||||
break;
|
||||
|
Reference in New Issue
Block a user