rename tag_view to tag_view_byindex
This commit is contained in:
parent
17a8c4a4c4
commit
45ac9d24f4
2
ewmh.c
2
ewmh.c
|
@ -310,7 +310,7 @@ ewmh_process_client_message(XClientMessageEvent *ev)
|
||||||
if(ev->message_type == net_current_desktop)
|
if(ev->message_type == net_current_desktop)
|
||||||
for(screen = 0; screen < ScreenCount(globalconf.display); screen++)
|
for(screen = 0; screen < ScreenCount(globalconf.display); screen++)
|
||||||
if(ev->window == RootWindow(globalconf.display, screen))
|
if(ev->window == RootWindow(globalconf.display, screen))
|
||||||
tag_view(screen, ev->data.l[0]);
|
tag_view_byindex(screen, ev->data.l[0]);
|
||||||
|
|
||||||
if(ev->message_type == net_close_window)
|
if(ev->message_type == net_close_window)
|
||||||
{
|
{
|
||||||
|
|
4
tag.c
4
tag.c
|
@ -273,7 +273,7 @@ uicb_tag_toggleview(int screen, char *arg)
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
tag_view(int screen, int dindex)
|
tag_view_byindex(int screen, int dindex)
|
||||||
{
|
{
|
||||||
Tag *target_tag, *tag;
|
Tag *target_tag, *tag;
|
||||||
|
|
||||||
|
@ -305,7 +305,7 @@ uicb_tag_view(int screen, char *arg)
|
||||||
Tag *tag;
|
Tag *tag;
|
||||||
|
|
||||||
if(arg)
|
if(arg)
|
||||||
tag_view(screen, atoi(arg) - 1);
|
tag_view_byindex(screen, atoi(arg) - 1);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
for(tag = globalconf.screens[screen].tags; tag; tag = tag->next)
|
for(tag = globalconf.screens[screen].tags; tag; tag = tag->next)
|
||||||
|
|
2
tag.h
2
tag.h
|
@ -33,7 +33,7 @@ void untag_client(Client *, Tag *);
|
||||||
Bool is_client_tagged(Client *, Tag *);
|
Bool is_client_tagged(Client *, Tag *);
|
||||||
void tag_client_with_current_selected(Client *);
|
void tag_client_with_current_selected(Client *);
|
||||||
void tag_client_with_rules(Client *);
|
void tag_client_with_rules(Client *);
|
||||||
void tag_view(int, int);
|
void tag_view_byindex(int, int);
|
||||||
|
|
||||||
Uicb uicb_client_tag;
|
Uicb uicb_client_tag;
|
||||||
Uicb uicb_client_toggletag;
|
Uicb uicb_client_toggletag;
|
||||||
|
|
|
@ -190,7 +190,7 @@ tasklist_button_press(Widget *widget, XButtonPressedEvent *ev)
|
||||||
if(!client_isvisible(c, widget->statusbar->screen))
|
if(!client_isvisible(c, widget->statusbar->screen))
|
||||||
for(i = 0, tag = globalconf.screens[c->screen].tags; tag; tag = tag->next, i++)
|
for(i = 0, tag = globalconf.screens[c->screen].tags; tag; tag = tag->next, i++)
|
||||||
if(is_client_tagged(c, tag))
|
if(is_client_tagged(c, tag))
|
||||||
tag_view(c->screen, i);
|
tag_view_byindex(c->screen, i);
|
||||||
focus(c, True, widget->statusbar->screen);
|
focus(c, True, widget->statusbar->screen);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue