Add the keybind client_set_master in the default wmfsrc

This commit is contained in:
Raphael Khaiat 2011-03-23 13:55:54 +01:00
parent 4064cbdfd9
commit 703974cb00
2 changed files with 7 additions and 4 deletions

View File

@ -1637,17 +1637,17 @@ uicb_client_set_master(uicb_t cmd)
{
Client *c;
(void)cmd;
/* get the first client */
screen_get_sel();
if(!sel || ishide(sel, selscreen))
return;
for(c = clients; c && ishide(c, selscreen); c = c->next);
if (c && c != sel)
{
client_swap(c, sel);
client_swap(c, sel);
client_focus(c);
}
return;

3
wmfsrc
View File

@ -334,6 +334,9 @@
# Swap current client with the previous.
[key] mod = {"Alt", "Shift"} key = "t" func = "client_swap_prev" [/key]
# Set the selected client as Master
[key] mod = {"Control"} key = "m" func = "client_set_master" [/key]
# Toggle maximum the selected client
[key] mod = {"Alt"} key = "m" func = "toggle_max" [/key]