summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS2
-rwxr-xr-xdraksnapshot-applet2
2 files changed, 4 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index f7aa8bc..77bdb42 100644
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,8 @@
o make notifications be more informative (#40360)
o keep running if configured once
o only popup if something is mounted
+ o try harder to show the icon before the bubble so that the later is
+ correctly placed (#40361)
- configurator:
o fix backup not done due to bad permissions (#39811)
diff --git a/draksnapshot-applet b/draksnapshot-applet
index 8df6714..7fabdbe 100755
--- a/draksnapshot-applet
+++ b/draksnapshot-applet
@@ -212,7 +212,9 @@ sub setState {
}
$icon->set_tooltip(formatAlaTeX(translate($state{$state_type}{tt}[0])));
$icon->set_visible($state_type ne 'okay');
+
gtkflush(); # so that bubbles are displayed on right icon
+ select(undef, undef, undef, 0.1); #- hackish :-(
if ($state{$state_type}{tt}[0] && $icon->isa('Gtk2::StatusIcon') && !$state{$state_type}{do_not_use_bubble}) {
my $bubble = Gtk2::Notify->new_with_status_icon(N("Info"), formatAlaTeX(translate($state{$state_type}{tt}[0])) . "\n",