Merge pull request #312 from sietschie/master

set fullscreen background to black for gtk frontend
This commit is contained in:
zeromus 2019-12-11 10:54:15 -05:00 committed by GitHub
commit ce2c1a6774
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -899,6 +899,9 @@ static void ToggleFullscreen(GtkToggleAction *action)
config.window_fullscreen = gtk_toggle_action_get_active(action);
if (config.window_fullscreen)
{
GdkColor black = {0, 0, 0, 0};
gtk_widget_modify_bg(pDrawingArea, GTK_STATE_NORMAL, &black);
gtk_widget_hide(pMenuBar);
gtk_widget_hide(pToolBar);
gtk_widget_hide(pStatusBar);
@ -909,6 +912,8 @@ static void ToggleFullscreen(GtkToggleAction *action)
}
else
{
gtk_widget_modify_bg(pDrawingArea, GTK_STATE_NORMAL, NULL);
if (config.view_menu) {
gtk_widget_show(pMenuBar);
}