Clean EWMH desktop calls
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
0a6c6e017b
commit
b39529b44d
5
config.c
5
config.c
|
@ -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
6
tag.c
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue