linuxmint/Cinnamon — Issue #340: Very short-lived windows cause stuck "dead window"
Author: TJC
Created: 2012-02-17 05:44:44+00:00
State: open

If a window is created and then destroyed very quickly, this often leaves behind a kind of "dead window" -- a bit of screen with an empty window that is in the foreground, but cannot be interacted with at all.

Examples of windows like this are dialogs that pop up to say "Saving, please wait" and the like, which automatically close once the file has saved.

I attach a Perl example that triggers the bug:

```perl
#!/usr/bin/env perl
use strict;
use warnings;
use Glib;
use Gtk2 '-init';

my $window = Gtk2::Window->new;
my $label = Gtk2::Label->new ('Hello World!');
$window->add ($label);
$window->show_all;
Glib::Timeout->add(100, sub { Gtk2->main_quit });
Gtk2->main;
```