Gtk2: skip taskbarhint after call to gtk_window_present() for modal forms. issue #18323

git-svn-id: trunk@34060 -
This commit is contained in:
zeljko 2011-12-09 07:06:54 +00:00
parent 59c140bec2
commit 8efdf7144d

View File

@ -824,10 +824,12 @@ begin
gtk_window_set_modal(GtkWindow, true);
{$ENDIF}
gtk_window_present(GtkWindow);
if (AForm <> nil) and (AForm.ShowInTaskBar <> stAlways) and
(gtk_window_get_type_hint(GtkWindow) <> GDK_WINDOW_TYPE_HINT_DIALOG) then
gtk_window_set_skip_taskbar_hint(GtkWindow, True);
gtk_window_present(GtkWindow);
{$IFDEF VerboseTransient}
DebugLn('TGtkWidgetSet.ShowModal ',Sender.ClassName);
{$ENDIF}