Skip to content

Commit 8949432

Browse files
committed
main-window: Always allow toggling controls
Fixes #1112.
1 parent 670ef22 commit 8949432

1 file changed

Lines changed: 4 additions & 9 deletions

File tree

src/celluloid-main-window.c

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -859,17 +859,12 @@ celluloid_main_window_set_controls_visible( CelluloidMainWindow *wnd,
859859
{
860860
GSettings *settings = g_settings_new(CONFIG_WIN_STATE);
861861
CelluloidMainWindowPrivate *priv = get_private(wnd);
862-
const gboolean floating = priv->use_floating_controls;
863-
const gboolean fullscreen = gtk_window_is_fullscreen(GTK_WINDOW(wnd));
864862

865-
if(!(fullscreen || floating))
866-
{
867-
celluloid_video_area_set_control_box_visible
868-
( CELLULOID_VIDEO_AREA(priv->video_area),
869-
visible || fullscreen || floating );
863+
celluloid_video_area_set_control_box_visible
864+
( CELLULOID_VIDEO_AREA(priv->video_area),
865+
visible );
870866

871-
g_settings_set_boolean (settings, "show-controls", visible);
872-
}
867+
g_settings_set_boolean (settings, "show-controls", visible);
873868

874869
g_clear_object(&settings);
875870
}

0 commit comments

Comments
 (0)