*/
if (fs->same_region)
{
-#ifdef HIDE_WINDOW_IN_FULLSCREEN
- gtk_widget_hide(fs->normal_window);
-#endif
+ if (options->hide_window_in_fullscreen)
+ {
+ gtk_widget_hide(fs->normal_window);
+ }
image_change_fd(fs->normal_imd, NULL, image_zoom_get(fs->normal_imd));
}
if (fs->same_region)
{
image_move_from_image(fs->normal_imd, fs->imd);
-#ifdef HIDE_WINDOW_IN_FULLSCREEN
- gtk_widget_show(fs->normal_window);
-#endif
+ if (options->hide_window_in_fullscreen)
+ {
+ gtk_widget_show(fs->normal_window);
+ }
if (options->stereo.enable_fsmode)
{
image_stereo_set(fs->normal_imd, options->stereo.mode);
#define FULL_SCREEN_HIDE_MOUSE_DELAY 3000
#define FULL_SCREEN_BUSY_MOUSE_DELAY 200
-#define HIDE_WINDOW_IN_FULLSCREEN
FullScreenData *fullscreen_start(GtkWidget *window, ImageWindow *imd,
void (*stop_func)(FullScreenData *, gpointer), gpointer stop_data);
options->marks_save = TRUE;
options->with_rename = FALSE;
options->collections_on_top = FALSE;
+ options->hide_window_in_fullscreen = TRUE;
memset(&options->image.border_color, 0, sizeof(options->image.border_color));
memset(&options->image.alpha_color_1, 0, sizeof(options->image.alpha_color_1));
gboolean with_rename;
gboolean collections_on_top;
+ gboolean hide_window_in_fullscreen;
gchar *help_search_engine;
options->marks_save = c_options->marks_save;
options->with_rename = c_options->with_rename;
options->collections_on_top = c_options->collections_on_top;
+ options->hide_window_in_fullscreen = c_options->hide_window_in_fullscreen;
config_entry_to_option(help_search_engine_entry, &options->help_search_engine, NULL);
options->read_metadata_in_idle = c_options->read_metadata_in_idle;
GtkWidget *marks;
GtkWidget *with_rename;
GtkWidget *collections_on_top;
+ GtkWidget *hide_window_in_fullscreen;
GtkWidget *checkbox;
vbox = scrolled_notebook_page(notebook, _("Behavior"));
options->collections_on_top, &c_options->collections_on_top);
gtk_widget_set_tooltip_text(collections_on_top,"Open collections window on top");
+ hide_window_in_fullscreen = pref_checkbox_new_int(group, _("Hide window in fullscreen"),
+ options->hide_window_in_fullscreen, &c_options->hide_window_in_fullscreen);
+ gtk_widget_set_tooltip_text(hide_window_in_fullscreen,"When alt-tabbing, prevent Geeqie window showing twice");
+
pref_spin_new_int(group, _("Recent folder list maximum size"), NULL,
1, 50, 1, options->open_recent_list_maxsize, &c_options->open_recent_list_maxsize);
WRITE_NL(); WRITE_BOOL(*options, with_rename);
WRITE_NL(); WRITE_BOOL(*options, collections_on_top);
+ WRITE_NL(); WRITE_BOOL(*options, hide_window_in_fullscreen);
/* File operations Options */
WRITE_NL(); WRITE_BOOL(*options, file_ops.enable_in_place_rename);
if (READ_CHAR(*options, help_search_engine)) continue;
if (READ_BOOL(*options, collections_on_top)) continue;
+ if (READ_BOOL(*options, hide_window_in_fullscreen)) continue;
/* Properties dialog options */
if (READ_CHAR(*options, properties.tabs_order)) continue;