From 5a35c6f42b7528e80b071787a3d0568eb498cd55 Mon Sep 17 00:00:00 2001 From: Pablo Barciela Date: Sat, 17 Aug 2024 01:55:53 +0200 Subject: [PATCH] lapiz-commands-search: don't move search dialog if it is visible --- lapiz/lapiz-commands-search.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lapiz/lapiz-commands-search.c b/lapiz/lapiz-commands-search.c index 690de129..3f8ec0c0 100644 --- a/lapiz/lapiz-commands-search.c +++ b/lapiz/lapiz-commands-search.c @@ -70,7 +70,7 @@ last_search_data_restore_position (LapizSearchDialog *dlg) data = g_object_get_data (G_OBJECT (dlg), LAPIZ_LAST_SEARCH_DATA_KEY); - if (data != NULL) + if ((data != NULL) && (ctk_widget_get_visible (CTK_WIDGET (dlg)) == FALSE)) { ctk_window_move (CTK_WINDOW (dlg), data->x,