This commit is contained in:
dvermd 2021-10-04 23:46:38 +02:00 committed by GitHub
parent 40ae9b210b
commit a2968127d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 14 additions and 14 deletions

View File

@ -82,7 +82,7 @@ class bar : public xpp::event::sink<evt::button_press, evt::expose, evt::propert
protected:
void restack_window();
void reconfigue_window();
void reconfigure_window();
void reconfigure_geom();
void reconfigure_pos();
void reconfigure_struts();

View File

@ -80,7 +80,7 @@ namespace tags {
action_t action_open(mousebtn btn, const string&& cmd, alignment align, double x);
std::pair<action_t, mousebtn> action_close(mousebtn btn, alignment align, double x);
void set_alignmnent_start(const alignment a, const double x);
void set_alignment_start(const alignment a, const double x);
std::map<mousebtn, tags::action_t> get_actions(int x) const;
action_t has_action(mousebtn btn, int x) const;

View File

@ -36,7 +36,7 @@ namespace alsa {
snd_ctl_elem_info_set_id(m_info, m_id);
if ((err = snd_ctl_elem_info(m_ctl, m_info)) == -1) {
throw_exception<control_error>("Could not get control datal", err);
throw_exception<control_error>("Could not get control data", err);
}
snd_ctl_elem_info_get_id(m_info, m_id);

View File

@ -112,13 +112,13 @@ namespace net {
return;
}
// Check if the link quality has been uodated
// Check if the link quality has been updated
if (stats.qual.updated & IW_QUAL_QUAL_UPDATED) {
m_linkquality.val = stats.qual.qual;
m_linkquality.max = range.max_qual.qual;
}
// Check if the signal strength has been uodated
// Check if the signal strength has been updated
if (stats.qual.updated & IW_QUAL_LEVEL_UPDATED) {
m_signalstrength.val = stats.qual.level;
m_signalstrength.max = range.max_qual.level;

View File

@ -413,7 +413,7 @@ void bar::show() {
* First reconfigures the window so that WMs that discard some information
* when unmapping have the correct window properties (geometry etc).
*/
reconfigue_window();
reconfigure_window();
m_connection.map_window_checked(m_opts.window);
m_connection.flush();
m_visible = true;
@ -482,7 +482,7 @@ void bar::restack_window() {
}
}
void bar::reconfigue_window() {
void bar::reconfigure_window() {
m_log.trace("bar: Reconfigure window");
restack_window();
reconfigure_geom();
@ -820,7 +820,7 @@ void bar::start() {
m_connection.ensure_event_mask(m_opts.window, XCB_EVENT_MASK_STRUCTURE_NOTIFY);
m_log.info("Bar window: %s", m_connection.id(m_opts.window));
reconfigue_window();
reconfigure_window();
m_log.trace("bar: Map window");
m_connection.map_window_checked(m_opts.window);

View File

@ -134,7 +134,7 @@ renderer::renderer(connection& conn, signal_emitter& sig, const config& conf, co
}
}
// dpi to be comptued
// dpi to be computed
if (dpi_x <= 0 || dpi_y <= 0) {
auto screen = m_connection.screen();
if (dpi_x <= 0) {

View File

@ -40,7 +40,7 @@ namespace tags {
m_action_blocks[id].end_x = x;
}
void action_context::set_alignmnent_start(const alignment a, const double x) {
void action_context::set_alignment_start(const alignment a, const double x) {
m_align_start[a] = x;
}

View File

@ -104,7 +104,7 @@ namespace tags {
* of the alignment blocks so that it can do intersection tests.
*/
for (auto a : {alignment::LEFT, alignment::CENTER, alignment::RIGHT}) {
m_action_ctxt.set_alignmnent_start(a, renderer.get_alignment_start(a));
m_action_ctxt.set_alignment_start(a, renderer.get_alignment_start(a));
}
auto num_unclosed = m_action_ctxt.num_unclosed();

View File

@ -59,7 +59,7 @@ bool command<output_policy::IGNORED>::is_running() {
}
/**
* Wait for the child processs to finish
* Wait for the child process to finish
*/
int command<output_policy::IGNORED>::wait() {
do {

View File

@ -45,7 +45,7 @@ namespace string_util {
}
/**
* Replace first occurence of needle in haystack
* Replace first occurrence of needle in haystack
*/
string replace(const string& haystack, const string& needle, const string& replacement, size_t start, size_t end) {
string str(haystack);
@ -61,7 +61,7 @@ namespace string_util {
}
/**
* Replace all occurences of needle in haystack
* Replace all occurrences of needle in haystack
*/
string replace_all(
const string& haystack, const string& needle, const string& replacement, size_t start, size_t end) {