Skip to content

Commit

Permalink
Windows: Do not manually realize the main window prematurely
Browse files Browse the repository at this point in the history
This has been added in 9431eea but seems no longer necessary and
actually causes problems with setting the message window height. After
each start of Geany, the message window will be set a bit lower until it
is not visible anymore at all.
The manual realize step was maybe necessary with older GTK2 versions
but actually works contrarily on recent GTK3 builds.

Fixes #2591.
  • Loading branch information
eht16 committed Oct 3, 2021
1 parent bc8be1f commit 8d22d75
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/libmain.c
Expand Up @@ -1209,11 +1209,6 @@ gint main_lib(gint argc, gchar **argv)
build_menu_update(doc);
sidebar_update_tag_list(doc, FALSE);

#ifdef G_OS_WIN32
/* Manually realise the main window to be able to set the position but don't show it.
* We don't set the position after showing the window to avoid flickering. */
gtk_widget_realize(main_widgets.window);
#endif
setup_window_position();

/* finally show the window */
Expand Down

0 comments on commit 8d22d75

Please sign in to comment.