From 2b81f59d45671b7808ec10cce4df2c338e7fbe4f Mon Sep 17 00:00:00 2001 From: Sanel Zukan Date: Tue, 15 May 2012 09:47:05 +0000 Subject: [PATCH] Center window before it was shown --- ede-tip/ede-tip.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ede-tip/ede-tip.cpp b/ede-tip/ede-tip.cpp index 1bf4bac..5ec38d0 100644 --- a/ede-tip/ede-tip.cpp +++ b/ede-tip/ede-tip.cpp @@ -33,6 +33,7 @@ #include #include #include +#include #include #include "icons/hint.xpm" @@ -44,6 +45,7 @@ EDELIB_NS_USING(Resource) EDELIB_NS_USING(dir_create_with_parents) EDELIB_NS_USING(user_config_dir) EDELIB_NS_USING(alert) +EDELIB_NS_USING(window_center_on_screen) EDELIB_NS_USING(DESK_FILE_TYPE_APPLICATION) static Fl_Pixmap image_hint((const char**)hint_xpm); @@ -217,6 +219,7 @@ int main(int argc, char **argv) { close_button->take_focus(); win->end(); + window_center_on_screen(win); win->show(argc, argv); Fl::run();