winlist - add list window miniatures option you can turn off

devs/bu5hm4n/pointer-fix
Carsten Haitzler 2 years ago
parent a9890ce7b6
commit 0187eb5fe6
  1. 1
      data/config/default/e.src
  2. 1
      data/config/standard/e.src
  3. 1
      data/config/tiling/e.src
  4. 1
      src/bin/e_config.c
  5. 1
      src/bin/e_config.h
  6. 7
      src/modules/winlist/e_int_config_winlist.c
  7. 3
      src/modules/winlist/e_winlist.c

@ -58,6 +58,7 @@ group "E_Config" struct {
value "winlist_mode" int: 1;
value "winlist_large_size" double: 0.6666;
value "winlist_list_size" double: 0.3333;
value "winlist_list_no_miniatures" int: 0;
value "maximize_policy" int: 49;
value "allow_manip" int: 0;
value "border_fix_on_shelf_toggle" int: 0;

@ -54,6 +54,7 @@ group "E_Config" struct {
value "winlist_mode" int: 1;
value "winlist_large_size" double: 0.6666;
value "winlist_list_size" double: 0.3333;
value "winlist_list_no_miniatures" int: 0;
value "maximize_policy" int: 50;
value "allow_manip" int: 0;
value "border_fix_on_shelf_toggle" int: 0;

@ -54,6 +54,7 @@ group "E_Config" struct {
value "winlist_mode" int: 1;
value "winlist_large_size" double: 0.6666;
value "winlist_list_size" double: 0.3333;
value "winlist_list_no_miniatures" int: 0;
value "maximize_policy" int: 50;
value "allow_manip" int: 0;
value "border_fix_on_shelf_toggle" int: 0;

@ -730,6 +730,7 @@ _e_config_edd_init(Eina_Bool old)
E_CONFIG_VAL(D, T, winlist_mode, INT); /**/
E_CONFIG_VAL(D, T, winlist_list_size, DOUBLE); /**/
E_CONFIG_VAL(D, T, winlist_large_size, DOUBLE); /**/
E_CONFIG_VAL(D, T, winlist_list_no_miniatures, UCHAR); /**/
E_CONFIG_VAL(D, T, maximize_policy, INT); /**/
E_CONFIG_VAL(D, T, allow_manip, INT); /**/
E_CONFIG_VAL(D, T, border_fix_on_shelf_toggle, INT); /**/

@ -134,6 +134,7 @@ struct _E_Config
int winlist_mode; // GUI
double winlist_list_size; // GUI
double winlist_large_size; // GUI
Eina_Bool winlist_list_no_miniatures; // GUI
int maximize_policy; // GUI
int allow_manip; // GUI
int border_fix_on_shelf_toggle; // GUI

@ -22,6 +22,7 @@ struct _E_Config_Dialog_Data
int move_after_select;
int mode;
int list_miniatures;
double large_size;
double list_size;
@ -65,6 +66,7 @@ _fill_data(E_Config_Dialog_Data *cfdata)
cfdata->mode = e_config->winlist_mode;
cfdata->large_size = e_config->winlist_large_size;
cfdata->list_size = e_config->winlist_list_size;
cfdata->list_miniatures = !(!!e_config->winlist_list_no_miniatures);
cfdata->windows_other_desks =
e_config->winlist_list_show_other_desk_windows;
@ -119,6 +121,7 @@ _basic_apply(E_Config_Dialog *cfd EINA_UNUSED, E_Config_Dialog_Data *cfdata)
DO(mode, mode);
DO(large_size, large_size);
DO(list_size, list_size);
e_config->winlist_list_no_miniatures = !(!!cfdata->list_miniatures);
DO(warp_while_selecting, warp_while_selecting);
DO(warp_at_end, warp_at_end);
DO(no_warp_on_direction, no_warp_on_direction);
@ -152,6 +155,7 @@ _basic_check_changed(E_Config_Dialog *cfd EINA_UNUSED, E_Config_Dialog_Data *cfd
DO(mode, mode);
DO_DBL(large_size, large_size);
DO_DBL(list_size, list_size);
if (e_config->winlist_list_no_miniatures != !(!!cfdata->list_miniatures)) return 1;
DO(warp_while_selecting, warp_while_selecting);
DO(warp_at_end, warp_at_end);
DO(no_warp_on_direction, no_warp_on_direction);
@ -186,6 +190,9 @@ _basic_create(E_Config_Dialog *cfd EINA_UNUSED, Evas *evas, E_Config_Dialog_Data
ob = e_widget_slider_add(evas, 1, 0, _("%1.2f"), 0.0, 1.0, 0.01, 0,
&(cfdata->list_size), NULL, 100);
e_widget_list_object_append(ol, ob, 1, 0, 0.0);
ob = e_widget_check_add(evas, _("List Window Miniatures"),
&(cfdata->list_miniatures));
e_widget_list_object_append(ol, ob, 1, 0, 0.0);
ob = e_widget_check_add(evas, _("Windows from other desks"),
&(cfdata->windows_other_desks));
e_widget_list_object_append(ol, ob, 1, 0, 0.0);

@ -977,7 +977,8 @@ _e_winlist_client_add(E_Client *ec, E_Zone *zone, E_Desk *desk)
edje_object_part_swallow(ww->bg_object, "e.swallow.icon", o);
evas_object_show(o);
}
if (edje_object_part_exists(ww->bg_object, "e.swallow.win"))
if (edje_object_part_exists(ww->bg_object, "e.swallow.win") &&
(!e_config->winlist_list_no_miniatures))
{
o = e_comp_object_util_frame_mirror_add(ec->frame);
ww->win_object = o;

Loading…
Cancel
Save