style: fix spacing issues

This commit is contained in:
Raphael Robatsch 2021-10-29 23:23:35 +02:00
parent 0f81338bb6
commit 6da4df255c
3 changed files with 8 additions and 7 deletions

View File

@ -231,7 +231,8 @@ void Bar::setColorScheme(const ColorScheme& scheme, bool invert)
} }
static void setColor(cairo_t* painter, const Color& color) static void setColor(cairo_t* painter, const Color& color)
{ {
cairo_set_source_rgba(painter, color.r/255.0, color.g/255.0, color.b/255.0, color.a/255.0); cairo_set_source_rgba(painter,
color.r/255.0, color.g/255.0, color.b/255.0, color.a/255.0);
} }
void Bar::beginFg() { setColor(_painter, _colorScheme.fg); } void Bar::beginFg() { setColor(_painter, _colorScheme.fg); }
void Bar::beginBg() { setColor(_painter, _colorScheme.bg); } void Bar::beginBg() { setColor(_painter, _colorScheme.bg); }

View File

@ -97,7 +97,7 @@ void tag(Monitor& m, const Arg& arg)
} }
void toggletag(Monitor& m, const Arg& arg) void toggletag(Monitor& m, const Arg& arg)
{ {
znet_tapesoftware_dwl_wm_monitor_v1_set_client_tags(m.dwlMonitor.get(), 0xffffff, arg.ui); znet_tapesoftware_dwl_wm_monitor_v1_set_client_tags(m.dwlMonitor.get(), ~0, arg.ui);
} }
void spawn(Monitor&, const Arg& arg) void spawn(Monitor&, const Arg& arg)
{ {