Clean EWMH desktop calls

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-03-21 10:57:50 +01:00
parent 0a6c6e017b
commit b39529b44d
3 changed files with 6 additions and 6 deletions

View File

@ -28,7 +28,6 @@
#include "rules.h"
#include "screen.h"
#include "widget.h"
#include "ewmh.h"
#include "defconfig.h"
#include "layouts/tile.h"
#include "common/configopts.h"
@ -456,10 +455,6 @@ config_parse_screen(cfg_t *cfg, int screen)
tag_push_to_screen(tag, screen);
}
ewmh_update_net_numbers_of_desktop(phys_screen);
ewmh_update_net_current_desktop(phys_screen);
ewmh_update_net_desktop_names(phys_screen);
/* select first tag by default */
virtscreen->tags[0].selected = True;
virtscreen->tags[0].was_selected = True;

6
tag.c
View File

@ -53,11 +53,15 @@ tag_new(const char *name, Layout *layout, double mwfact, int nmaster, int ncol)
return tag;
}
static void
void
tag_append_to_screen(Tag *tag, int screen)
{
int phys_screen = screen_virttophys(screen);
tag->screen = screen;
tag_list_append(&globalconf.screens[screen].tags, tag);
ewmh_update_net_numbers_of_desktop(phys_screen);
ewmh_update_net_desktop_names(phys_screen);
widget_invalidate_cache(screen, WIDGET_CACHE_TAGS);
}

1
tag.h
View File

@ -38,6 +38,7 @@ Bool is_client_tagged(Client *, Tag *);
void tag_client_with_rule(Client *, Rule *r);
void tag_client_with_current_selected(Client *);
void tag_view_only_byindex(int, int);
void tag_append_to_screen(Tag *, int);
Uicb uicb_client_tag;
Uicb uicb_client_toggletag;