Skip to content

Commit

Permalink
Merge pull request shutter-project#696 from shutter-project/debug-659
Browse files Browse the repository at this point in the history
Fixes crash that has been reported in shutter-project#659 by disabling the window list
  • Loading branch information
Photon89 authored Sep 2, 2024
2 parents 27c0b3f + 3b7328c commit cdbb6ea
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions bin/shutter
Original file line number Diff line number Diff line change
Expand Up @@ -8453,7 +8453,15 @@ sub STARTUP {
$menu_windows->append($active_window_item);
$menu_windows->append(Gtk3::SeparatorMenuItem->new);

# Check if we can retrieve the list of stacked windows first, otherwise we will run into a crash, see issue 659

unless ($wnck_screen->get_windows_stacked) {
print "ERROR: The window list could not be retrieved and has been disabled, see https://github.com/shutter-project/shutter/issues/659";
return $menu_windows;
}

#add all windows to menu to capture it directly

foreach my $win (@{$wnck_screen->get_windows_stacked}) {
if ($active_workspace && $win->is_on_workspace($active_workspace)) {
my $win_name = $win->get_name;
Expand Down

0 comments on commit cdbb6ea

Please sign in to comment.