Ewmh: Remove ewmh_get_curent_layout: Set it in ewmh_update_current_tag_prop().

This commit is contained in:
Martin Duquesnoy 2009-04-25 11:16:18 +02:00
parent 06270b371a
commit 8ff0264736
3 changed files with 6 additions and 16 deletions

View File

@ -137,14 +137,7 @@ ewmh_update_current_tag_prop(void)
XChangeProperty(dpy, ROOT, net_atom[wmfs_nmaster], XA_CARDINAL, 32,
PropModeReplace, (uchar*)&tags[selscreen][t + 1].nmaster, 1);
return;
}
/** Manage _WMFS_CURRENT_LAYOUT
*/
void
ewmh_get_current_layout(void)
{
/* Current layout */
XChangeProperty(dpy, ROOT, net_atom[wmfs_current_layout], XA_STRING, 8,
PropModeReplace, (uchar*)tags[selscreen][seltag[selscreen]].layout.symbol,
strlen(tags[selscreen][seltag[selscreen]].layout.symbol));
@ -152,7 +145,6 @@ ewmh_get_current_layout(void)
return;
}
/** Get _NET_CLIENT_LIST
*/
void

View File

@ -71,7 +71,7 @@ freelayout(int screen)
c->tile = c->lmax = False;
}
ewmh_get_current_layout();
ewmh_update_current_tag_prop();
return;
}
@ -103,7 +103,8 @@ layoutswitch(Bool b)
break;
}
}
ewmh_get_current_layout();
ewmh_update_current_tag_prop();
tags[selscreen][seltag[selscreen]].layout.func(selscreen);
infobar_draw(selscreen);
@ -146,7 +147,7 @@ maxlayout(int screen)
client_maximize(c);
}
ewmh_get_current_layout();
ewmh_update_current_tag_prop();
return;
}
@ -268,7 +269,7 @@ grid(int screen)
}
}
ewmh_get_current_layout();
ewmh_update_current_tag_prop();
return;
}
@ -397,7 +398,6 @@ multi_tile(int screen, Position type)
cgeo.y = c->geo.y + c->geo.height + BORDH + TBARH;
}
ewmh_get_current_layout();
ewmh_update_current_tag_prop();
return;
@ -576,7 +576,6 @@ mirror(int screen, Bool horizontal)
}
ewmh_get_current_layout();
ewmh_update_current_tag_prop();
return;

View File

@ -160,7 +160,6 @@ void uicb_client_kill(uicb_t);
void ewmh_init_hints(void);
void ewmh_get_number_of_desktop(void);
void ewmh_update_current_tag_prop(void);
void ewmh_get_current_layout(void);
void ewmh_get_client_list(void);
void ewmh_get_desktop_names(void);
void ewmh_set_desktop_geometry(void);