Fixed hide_search=true for surfaces that don't use percent sizing
This commit is contained in:
parent
192ec0e13a
commit
31640832d7
@ -1754,6 +1754,11 @@ static gboolean do_percent_size(gpointer data) {
|
|||||||
static gboolean do_percent_size_first(gpointer data){
|
static gboolean do_percent_size_first(gpointer data){
|
||||||
gdk_threads_add_timeout(50, do_percent_size, data);
|
gdk_threads_add_timeout(50, do_percent_size, data);
|
||||||
do_percent_size(data);
|
do_percent_size(data);
|
||||||
|
return G_SOURCE_REMOVE;
|
||||||
|
}
|
||||||
|
|
||||||
|
static gboolean hide_search_first(gpointer data) {
|
||||||
|
(void) data;
|
||||||
gtk_widget_set_visible(entry, !hide_search);
|
gtk_widget_set_visible(entry, !hide_search);
|
||||||
return G_SOURCE_REMOVE;
|
return G_SOURCE_REMOVE;
|
||||||
}
|
}
|
||||||
@ -2073,6 +2078,8 @@ void wofi_init(struct map* _config) {
|
|||||||
gdk_threads_add_timeout(25, do_percent_size_first, geo_str);
|
gdk_threads_add_timeout(25, do_percent_size_first, geo_str);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
gdk_threads_add_timeout(5, hide_search_first, NULL);
|
||||||
|
|
||||||
wl_list_init(&mode_list);
|
wl_list_init(&mode_list);
|
||||||
|
|
||||||
pthread_create(&mode_thread, NULL, start_mode_thread, mode);
|
pthread_create(&mode_thread, NULL, start_mode_thread, mode);
|
||||||
|
Loading…
Reference in New Issue
Block a user