summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2021-11-12 19:16:30 +0000
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2021-11-12 19:16:30 +0000
commitfc5ec2b00c102f8bd667346151b3206c5e140ebb (patch)
treeb34ceee6a498a54e0dcf903e4e9d431d5f9d186c
parent8edf2fc0a388090da74db683a690e0aed8a33eb6 (diff)
virtual desktop bgpreview - dont do min size so we loop forever
this fixes T8968 @fix
-rw-r--r--src/bin/e_widget_bgpreview.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/bin/e_widget_bgpreview.c b/src/bin/e_widget_bgpreview.c
index 678065b73..bcc19dbeb 100644
--- a/src/bin/e_widget_bgpreview.c
+++ b/src/bin/e_widget_bgpreview.c
@@ -254,12 +254,7 @@ _e_wid_reconfigure(E_Widget_Data *wd)
254 EINA_LIST_FOREACH_SAFE(wd->desks, l, ll, dw) 254 EINA_LIST_FOREACH_SAFE(wd->desks, l, ll, dw)
255 { 255 {
256 if (!(dd = evas_object_data_get(dw, "desk_data"))) continue; 256 if (!(dd = evas_object_data_get(dw, "desk_data"))) continue;
257 if ((dd->x < wd->dx) && (dd->y < wd->dy)) 257 if (!((dd->x < wd->dx) && (dd->y < wd->dy)))
258 {
259 evas_object_size_hint_min_set(dw, mw, mh);
260 evas_object_size_hint_max_set(dw, mw, mh);
261 }
262 else
263 { 258 {
264 evas_object_del(dd->live); 259 evas_object_del(dd->live);
265 evas_object_del(dw); 260 evas_object_del(dw);
@@ -292,9 +287,8 @@ _e_wid_reconfigure(E_Widget_Data *wd)
292 _e_wid_desk_cb_config, dd); 287 _e_wid_desk_cb_config, dd);
293 evas_object_show(dd->icon); 288 evas_object_show(dd->icon);
294 evas_object_data_set(dd->icon, "desk_data", dd); 289 evas_object_data_set(dd->icon, "desk_data", dd);
295 evas_object_size_hint_min_set(dp, mw, mh); 290 evas_object_size_hint_align_set(dp, -1, -1);
296 evas_object_size_hint_max_set(dp, mw, mh); 291 evas_object_size_hint_weight_set(dp, 1, 1);
297 evas_object_size_hint_aspect_set(dp, EVAS_ASPECT_CONTROL_BOTH, zone->w, zone->h);
298 evas_object_table_pack(wd->table, dp, x, y, 1, 1); 292 evas_object_table_pack(wd->table, dp, x, y, 1, 1);
299 wd->desks = eina_list_append(wd->desks, dp); 293 wd->desks = eina_list_append(wd->desks, dp);
300 } 294 }