Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix some typos #1975

Merged
merged 1 commit into from
Oct 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion metadata/command.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
</entry>
</option>
<option name="release_bindings" type="dynamic-list" type-hint="dict">
<_short>Realease bindings</_short>
<_short>Release bindings</_short>
<_long>Sets the bindings which activate on release</_long>
<entry prefix="command_" type="string" name="command">
<_short>Command</_short>
Expand Down
2 changes: 1 addition & 1 deletion metadata/resize.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<option name="activate_preserve_aspect" type="button">
<_short>Activate resize while preserving aspect</_short>
<_long>When the specified button is held down, you can drag a window to resize it while perserving its orignal aspect.</_long>
<_long>When the specified button is held down, you can drag a window to resize it while preserving its original aspect.</_long>
<default>disabled</default>
</option>
</plugin>
Expand Down
2 changes: 1 addition & 1 deletion plugins/common/wayfire/plugins/common/workspace-wall.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ class workspace_wall_t : public wf::signal::provider_t

our_target.subbuffer = target.framebuffer_box_from_geometry_box(relative_to_viewport);

// Take the damage for the workspace in workspace-local coordindates, as the workspace
// Take the damage for the workspace in workspace-local coordinates, as the workspace
// stream node expects.
wf::region_t our_damage = workspaces_damage & workspace_rect;
workspaces_damage ^= our_damage;
Expand Down
2 changes: 1 addition & 1 deletion plugins/single_plugins/move.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class wayfire_move : public wf::per_output_plugin_instance_t,
// not by moving the view, but by translating it with a transformer. Therefore, the view geometry
// is still the geometry before the drag.
wf::get_core().default_wm->update_last_windowed_geometry(ev->main_view);
// Artifically continue the grab for a little bit more, so that the last windowed geometry does
// Artificially continue the grab for a little bit more, so that the last windowed geometry does
// not get overwritten.
wf::get_core().default_wm->set_view_grabbed(ev->main_view, true);

Expand Down
4 changes: 2 additions & 2 deletions plugins/single_plugins/switcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -818,7 +818,7 @@ class WayfireSwitcher : public wf::per_output_plugin_instance_t, public wf::keyb
if (bool(count_left) ^ bool(count_right))
{
const int empty_slot = 1 - dir;
fill_emtpy_slot(empty_slot);
fill_empty_slot(empty_slot);
}

rebuild_view_list();
Expand Down Expand Up @@ -868,7 +868,7 @@ class WayfireSwitcher : public wf::per_output_plugin_instance_t, public wf::keyb
return nullptr;
}

void fill_emtpy_slot(const int empty_slot)
void fill_empty_slot(const int empty_slot)
{
const int full_slot = 2 - empty_slot;

Expand Down
2 changes: 1 addition & 1 deletion src/api/wayfire/opengl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ struct render_target_t : public framebuffer_t
wl_output_transform wl_transform = WL_OUTPUT_TRANSFORM_NORMAL;
// The scale of a framebuffer is a hint at how bigger the actual framebuffer
// is compared to the logical geometry. It is useful for plugins utilizing
// auxilliary buffers in logical coordinates, so that they know they should
// auxiliary buffers in logical coordinates, so that they know they should
// render with higher resolution and still get a crisp image on the screen.
float scale = 1.0;

Expand Down
2 changes: 1 addition & 1 deletion src/api/wayfire/scene-input.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ using node_ptr = std::shared_ptr<node_t>;
* When refocusing on a particular output, there may be multiple nodes
* which can receive keyboard focus. While usually the most recently focused
* node is chosen, there are cases where this is not the desired behavior, for ex.
* nodes which have keyboard grabs. In order to accomodate for these cases,
* nodes which have keyboard grabs. In order to accommodate for these cases,
* the focus_importance enum provides a way for nodes to indicate in what cases
* they should receive keyboard focus.
*/
Expand Down
2 changes: 1 addition & 1 deletion src/api/wayfire/scene-render.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class render_instance_t
* regions, or expand it for certain special effects like blur.
* @param fb The target framebuffer to render the node and its children.
* Note that some nodes may cause their children to be rendered to
* auxilliary buffers.
* auxiliary buffers.
*/
virtual void schedule_instructions(
std::vector<render_instruction_t>& instructions,
Expand Down
2 changes: 1 addition & 1 deletion src/api/wayfire/util.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class wl_idle_call
* if already waiting for idleness, or if the callback hasn't been set. */
void run_once();

/* Same as calling set_callbck + run_once */
/* Same as calling set_callback + run_once */
void run_once(callback_t call);

/** Stop waiting for idle, no-op if not connected */
Expand Down
6 changes: 3 additions & 3 deletions src/api/wayfire/view-transform.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class transformer_render_instance_t : public render_instance_t
protected:
// A pointer to the transformer node this render instance belongs to.
NodeType *self;
// A list of render instances of the next trasformer or the view itself.
// A list of render instances of the next transformer or the view itself.
std::vector<render_instance_uptr> children;
// A temporary buffer to render children to.
wf::render_target_t inner_content;
Expand All @@ -78,7 +78,7 @@ class transformer_render_instance_t : public render_instance_t
* If the node has a single child which supports zero-copy texture generation
* via @to_texture, that method is preferred to avoid unnecessary copies.
*
* Otherwise, the children are rendered to an auxilliary buffer (@inner_content),
* Otherwise, the children are rendered to an auxiliary buffer (@inner_content),
* whose texture is returned.
*
* @param scale The scale to use when generating the texture. The scale
Expand All @@ -100,7 +100,7 @@ class transformer_render_instance_t : public render_instance_t
if (inner_content.fb != (uint) - 1)
{
// Release the inner_content buffer, because we are on
// the zero-copy path and we do not need an auxilliary
// the zero-copy path and we do not need an auxiliary
// buffer to render to.
OpenGL::render_begin();
inner_content.release();
Expand Down
2 changes: 1 addition & 1 deletion src/core/gldebug.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ void errorHandler(GLenum src, GLenum type, GLuint id, GLenum severity,
"_______________________________________________\n");
}

void enable_gl_synchronuous_debug()
void enable_gl_synchronous_debug()
{
glEnable(GL_DEBUG_OUTPUT);
glEnable(GL_DEBUG_OUTPUT_SYNCHRONOUS);
Expand Down
4 changes: 2 additions & 2 deletions src/core/opengl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ GLuint compile_program(std::string vertex_source, std::string frag_source)
void init()
{
render_begin();
// enable_gl_synchronuous_debug()
// enable_gl_synchronous_debug()
program.compile(default_vertex_shader_source,
default_fragment_shader_source);

Expand Down Expand Up @@ -516,7 +516,7 @@ wf::render_target_t wf::render_target_t::translated(wf::point_t offset) const
}

/* look up the actual values of wl_output_transform enum
* All _flipped transforms have values (regular_transfrom + 4) */
* All _flipped transforms have values (regular_transform + 4) */
glm::mat4 get_output_matrix_from_transform(wl_output_transform transform)
{
glm::mat4 scale = glm::mat4(1.0);
Expand Down
2 changes: 1 addition & 1 deletion src/core/wm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ void wayfire_focus::init()
return;
}

/* focuse_btns->get_value() does not compile */
/* focus_btns->get_value() does not compile */
wf::option_sptr_t<wf::activatorbinding_t> tmp = focus_btns;
if ((!focus_modifiers && wf::get_core().seat->get_keyboard_modifiers()) ||
!tmp->get_value().has_match(wf::buttonbinding_t(0, ev->event->button)))
Expand Down
8 changes: 4 additions & 4 deletions src/output/workspace-stream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class workspace_stream_node_t::workspace_stream_instance_t : public scene::

std::vector<scene::render_instance_uptr> instances;
// True for each instance generated from a desktop environment view.
std::vector<bool> is_dekstop_environment;
std::vector<bool> is_desktop_environment;

wf::point_t get_offset()
{
Expand Down Expand Up @@ -62,12 +62,12 @@ class workspace_stream_node_t::workspace_stream_instance_t : public scene::
num_generated = this->instances.size() - num_generated;
for (size_t i = 0; i < num_generated; i++)
{
is_dekstop_environment.push_back(is_de);
is_desktop_environment.push_back(is_de);
}
}
}

wf::dassert(instances.size() == is_dekstop_environment.size(), "Setting de flag is wrong!");
wf::dassert(instances.size() == is_desktop_environment.size(), "Setting de flag is wrong!");
}
}

Expand All @@ -85,7 +85,7 @@ class workspace_stream_node_t::workspace_stream_instance_t : public scene::
our_damage += offset;
for (size_t i = 0; i < instances.size(); i++)
{
if (is_dekstop_environment[i])
if (is_desktop_environment[i])
{
// Special handling: move everything to 'current workspace' so that panels and backgrounds
// render at the correct position.
Expand Down
Loading