mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
Fix typos
Signed-off-by: tinyboxvk <13696594+tinyboxvk@users.noreply.github.com>
This commit is contained in:
parent
4ecedcdb3b
commit
1a6dd845a2
23 changed files with 33 additions and 33 deletions
|
|
@ -358,7 +358,7 @@ tests do not contribute a great deal. However, they have a role to play in
|
|||
providing some verification that stand-alone functions behave as expected.
|
||||
|
||||
On this project, writing unit-tests is not compulsory nor do we measure
|
||||
coverage. The inclusion of the t/ directory does not signifiy a move towards
|
||||
coverage. The inclusion of the t/ directory does not signify a move towards
|
||||
test-driven development. We intend to use unit tests sparingly and only when
|
||||
devs find them useful.
|
||||
|
||||
|
|
|
|||
|
|
@ -374,7 +374,7 @@ this is for compatibility with Openbox.
|
|||
window to be moved with an interactive move. Default is 20.
|
||||
|
||||
*<resistance><unMaximizeThreshold>*
|
||||
Sets the one-dimentional movement of cursor in pixel required for a
|
||||
Sets the one-dimensional movement of cursor in pixel required for a
|
||||
*vertically or horizontally* maximized window to be moved with an
|
||||
interactive move. Default is 150.
|
||||
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ pid_t spawn_primary_client(const char *command);
|
|||
void spawn_async_no_shell(char const *command);
|
||||
|
||||
/**
|
||||
* spawn_piped - execute asyncronously
|
||||
* spawn_piped - execute asynchronously
|
||||
* @command: command to be executed
|
||||
* @pipe_fd: set to the read end of a pipe
|
||||
* connected to stdout of the command
|
||||
|
|
|
|||
|
|
@ -477,7 +477,7 @@ struct view *desktop_topmost_focusable_view(struct server *server);
|
|||
* Toggles the (output local) visibility of the layershell top layer
|
||||
* based on the existence of a fullscreen window on the current workspace.
|
||||
*/
|
||||
void desktop_update_top_layer_visiblity(struct server *server);
|
||||
void desktop_update_top_layer_visibility(struct server *server);
|
||||
|
||||
/**
|
||||
* desktop_focus_topmost_view() - focus the topmost view on the current
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@ struct menu *menu_get_by_id(struct server *server, const char *id);
|
|||
* This function will close server->menu_current, open the
|
||||
* new menu and assign @menu to server->menu_current.
|
||||
*
|
||||
* Additionally, server->input_mode wil be set to LAB_INPUT_STATE_MENU.
|
||||
* Additionally, server->input_mode will be set to LAB_INPUT_STATE_MENU.
|
||||
*/
|
||||
void menu_open_root(struct menu *menu, int x, int y);
|
||||
|
||||
|
|
@ -117,7 +117,7 @@ bool menu_call_actions(struct wlr_scene_node *node);
|
|||
* This function will close server->menu_current and set it to NULL.
|
||||
* Asserts that server->input_mode is set to LAB_INPUT_STATE_MENU.
|
||||
*
|
||||
* Additionally, server->input_mode wil be set to LAB_INPUT_STATE_PASSTHROUGH.
|
||||
* Additionally, server->input_mode will be set to LAB_INPUT_STATE_PASSTHROUGH.
|
||||
*/
|
||||
void menu_close_root(struct server *server);
|
||||
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ void lab_transaction_op_destroy(struct lab_transaction_op *transaction_op);
|
|||
*/
|
||||
void lab_resource_addon_destroy(struct lab_wl_resource_addon *addon);
|
||||
|
||||
/* Convinience wrappers for looping through the pending transaction ops of a ctx */
|
||||
/* Convenience wrappers for looping through the pending transaction ops of a ctx */
|
||||
#define lab_transaction_for_each(transaction_op, ctx) \
|
||||
wl_list_for_each(transaction_op, &(ctx)->transaction_ops, link)
|
||||
|
||||
|
|
|
|||
4
scripts/checkpatch.pl
vendored
4
scripts/checkpatch.pl
vendored
|
|
@ -3183,7 +3183,7 @@ sub process {
|
|||
# A correctly formed commit description is:
|
||||
# commit <SHA-1 hash length 12+ chars> ("Complete commit subject")
|
||||
# with the commit subject '("' prefix and '")' suffix
|
||||
# This is a fairly compilicated block as it tests for what appears to be
|
||||
# This is a fairly complicated block as it tests for what appears to be
|
||||
# bare SHA-1 hash with minimum length of 5. It also avoids several types of
|
||||
# possible SHA-1 matches.
|
||||
# A commit match can span multiple lines so this block attempts to find a
|
||||
|
|
@ -3790,7 +3790,7 @@ sub process {
|
|||
if (CHK("LOGICAL_CONTINUATIONS",
|
||||
"Logical continuations should be on the previous line\n" . $hereprev) &&
|
||||
$fix && $prevrawline =~ /^\+/) {
|
||||
# insert logical operator at last non-comment, non-whitepsace char on previous line
|
||||
# insert logical operator at last non-comment, non-whitespace char on previous line
|
||||
$prevline =~ /[\s$;]*$/;
|
||||
my $line_end = substr($prevrawline, $-[0]);
|
||||
$fixed[$fixlinenr - 1] =~ s/\Q$line_end\E$/ $operator$line_end/;
|
||||
|
|
|
|||
|
|
@ -120,8 +120,8 @@ lab_wlr_scene_output_commit(struct wlr_scene_output *scene_output,
|
|||
|
||||
bool committed = wlr_output_commit_state(wlr_output, state);
|
||||
/*
|
||||
* Handle case where the ouput state test for tearing succeeded,
|
||||
* but actual commit failed. Retry wihout tearing.
|
||||
* Handle case where the output state test for tearing succeeded,
|
||||
* but actual commit failed. Retry without tearing.
|
||||
*/
|
||||
if (!committed && state->tearing_page_flip) {
|
||||
state->tearing_page_flip = false;
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ static struct window_rule *current_window_rule;
|
|||
static struct action *current_window_rule_action;
|
||||
static struct view_query *current_view_query;
|
||||
static struct action *current_child_action;
|
||||
/* for backword compatibility of <mouse><scrollFactor> */
|
||||
/* for backward compatibility of <mouse><scrollFactor> */
|
||||
static double mouse_scroll_factor = -1;
|
||||
|
||||
enum font_place {
|
||||
|
|
|
|||
|
|
@ -277,7 +277,7 @@ session_environment_init(void)
|
|||
/* Process an environment file itself */
|
||||
bool success = read_environment_file(path->string);
|
||||
|
||||
/* Process a correponding environment.d directory */
|
||||
/* Process a corresponding environment.d directory */
|
||||
success |= read_environment_dir(path->string);
|
||||
|
||||
if (success && !should_merge_config) {
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ xdg_deco_request_mode(struct wl_listener *listener, void *data)
|
|||
}
|
||||
|
||||
/*
|
||||
* We may get multiple request_mode calls in an unitialized state.
|
||||
* We may get multiple request_mode calls in an uninitialized state.
|
||||
* Just update the last requested mode and only add the commit
|
||||
* handler on the first uninitialized state call.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -184,7 +184,7 @@ desktop_focus_output(struct output *output)
|
|||
}
|
||||
|
||||
void
|
||||
desktop_update_top_layer_visiblity(struct server *server)
|
||||
desktop_update_top_layer_visibility(struct server *server)
|
||||
{
|
||||
struct view *view;
|
||||
struct output *output;
|
||||
|
|
|
|||
|
|
@ -89,7 +89,7 @@ struct idle_ctx {
|
|||
static void
|
||||
idle_callback(void *data)
|
||||
{
|
||||
/* Idle callbacks destroy automatically once triggerd */
|
||||
/* Idle callbacks destroy automatically once triggered */
|
||||
struct idle_ctx *ctx = data;
|
||||
|
||||
/* Start session-manager if one is specified by -S|--session */
|
||||
|
|
|
|||
|
|
@ -1014,7 +1014,7 @@ init_client_list_combined_menu(struct server *server)
|
|||
*
|
||||
* This will look at workspaces and produce a menu with the workspace name as a
|
||||
* separator label and the titles of the view, if any, below each workspace
|
||||
* name. Active view is indicated by "*" preceeding title.
|
||||
* name. Active view is indicated by "*" preceding title.
|
||||
*/
|
||||
void
|
||||
update_client_list_combined_menu(struct server *server)
|
||||
|
|
|
|||
|
|
@ -624,7 +624,7 @@ output_config_apply(struct server *server,
|
|||
if (!output_state_commit(output)) {
|
||||
/*
|
||||
* FIXME: This is only part of the story, we should revert
|
||||
* all previously commited outputs as well here.
|
||||
* all previously committed outputs as well here.
|
||||
*
|
||||
* See https://github.com/labwc/labwc/pull/1528
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -379,7 +379,7 @@ compute_overlap(struct overlap_bitmap *bmp, int i, int j,
|
|||
}
|
||||
|
||||
/*
|
||||
* If there is height left ot consider after walking rows, the region
|
||||
* If there is height left to consider after walking rows, the region
|
||||
* extends out of bounds and placement is invalid.
|
||||
*/
|
||||
if (height > 0) {
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@
|
|||
*
|
||||
* In subsequent snapped resize actions, if:
|
||||
*
|
||||
* 1. The view is the same as in the last attemped snapped resize;
|
||||
* 1. The view is the same as in the last attempted snapped resize;
|
||||
* 2. The direction of resizing is the same as in the last attempt; and
|
||||
* 3. The geometry of the view matches that expected from the last attempt;
|
||||
*
|
||||
|
|
|
|||
|
|
@ -267,7 +267,7 @@ snap_shrink_to_next_edge(struct view *view,
|
|||
edges_find_outputs(&next_edges, view,
|
||||
origin, *geo, view->output, check_edge);
|
||||
|
||||
/* Limit motion to any intervening edge of ther views on this output */
|
||||
/* Limit motion to any intervening edge of other views on this output */
|
||||
edges_find_neighbors(&next_edges, view, origin, *geo,
|
||||
view->output, check_edge, /* ignore_hidden */ false);
|
||||
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ set_shadow_part_geometry(struct ssd_part *part, int width, int height,
|
|||
wlr_scene_buffer_from_node(part->node);
|
||||
/*
|
||||
* If the shadow inset is greater than half the overall window height
|
||||
* or width (eg. becaused the window is shaded or because we have a
|
||||
* or width (eg. because the window is shaded or because we have a
|
||||
* small window with massive shadows) then the corners would overlap
|
||||
* which looks horrible. To avoid this, when the window is too narrow
|
||||
* or short we hide the edges on that axis and clip off the portion of
|
||||
|
|
|
|||
|
|
@ -1234,7 +1234,7 @@ shadow_edge_gradient(struct lab_data_buffer *buffer,
|
|||
*/
|
||||
double xn = (double)(x + inset) / (double)total_size;
|
||||
|
||||
/* Gausian dropoff */
|
||||
/* Gaussian dropoff */
|
||||
double alpha = exp(-(xn * xn) / variance);
|
||||
|
||||
/* RGBA values are all pre-multiplied */
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ view_impl_map(struct view *view)
|
|||
* Some clients (e.g. Steam's Big Picture Mode window) request
|
||||
* fullscreen before mapping.
|
||||
*/
|
||||
desktop_update_top_layer_visiblity(view->server);
|
||||
desktop_update_top_layer_visibility(view->server);
|
||||
|
||||
wlr_log(WLR_DEBUG, "[map] identifier=%s, title=%s",
|
||||
view_get_string_prop(view, "app_id"),
|
||||
|
|
|
|||
16
src/view.c
16
src/view.c
|
|
@ -471,7 +471,7 @@ view_discover_output(struct view *view, struct wlr_box *geometry)
|
|||
view->output = output;
|
||||
/* Show fullscreen views above top-layer */
|
||||
if (view->fullscreen) {
|
||||
desktop_update_top_layer_visiblity(view->server);
|
||||
desktop_update_top_layer_visibility(view->server);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
@ -528,7 +528,7 @@ view_set_output(struct view *view, struct output *output)
|
|||
view->output = output;
|
||||
/* Show fullscreen views above top-layer */
|
||||
if (view->fullscreen) {
|
||||
desktop_update_top_layer_visiblity(view->server);
|
||||
desktop_update_top_layer_visibility(view->server);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -558,7 +558,7 @@ view_update_outputs(struct view *view)
|
|||
if (new_outputs != view->outputs) {
|
||||
view->outputs = new_outputs;
|
||||
wl_signal_emit_mutable(&view->events.new_outputs, NULL);
|
||||
desktop_update_top_layer_visiblity(view->server);
|
||||
desktop_update_top_layer_visibility(view->server);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -814,7 +814,7 @@ view_minimize(struct view *view, bool minimized)
|
|||
|
||||
/* Enable top-layer when full-screen views are minimized */
|
||||
if (view->fullscreen && view->output) {
|
||||
desktop_update_top_layer_visiblity(view->server);
|
||||
desktop_update_top_layer_visibility(view->server);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1705,7 +1705,7 @@ set_fullscreen(struct view *view, bool fullscreen)
|
|||
|
||||
/* Show fullscreen views above top-layer */
|
||||
if (view->output) {
|
||||
desktop_update_top_layer_visiblity(view->server);
|
||||
desktop_update_top_layer_visibility(view->server);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -2291,7 +2291,7 @@ view_move_to_front(struct view *view)
|
|||
}
|
||||
|
||||
cursor_update_focus(view->server);
|
||||
desktop_update_top_layer_visiblity(view->server);
|
||||
desktop_update_top_layer_visibility(view->server);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
@ -2305,7 +2305,7 @@ view_move_to_back(struct view *view)
|
|||
move_to_back(root);
|
||||
|
||||
cursor_update_focus(view->server);
|
||||
desktop_update_top_layer_visiblity(view->server);
|
||||
desktop_update_top_layer_visibility(view->server);
|
||||
}
|
||||
|
||||
struct view *
|
||||
|
|
@ -2560,7 +2560,7 @@ view_destroy(struct view *view)
|
|||
*/
|
||||
if (view->fullscreen && view->output) {
|
||||
view->fullscreen = false;
|
||||
desktop_update_top_layer_visiblity(server);
|
||||
desktop_update_top_layer_visibility(server);
|
||||
if (rc.adaptive_sync == LAB_ADAPTIVE_SYNC_FULLSCREEN) {
|
||||
set_adaptive_sync_fullscreen(view);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -402,7 +402,7 @@ workspaces_switch_to(struct workspace *target, bool update_focus)
|
|||
cursor_update_focus(server);
|
||||
|
||||
/* Ensure that only currently visible fullscreen windows hide the top layer */
|
||||
desktop_update_top_layer_visiblity(server);
|
||||
desktop_update_top_layer_visibility(server);
|
||||
|
||||
lab_cosmic_workspace_set_active(target->cosmic_workspace, true);
|
||||
lab_ext_workspace_set_active(target->ext_workspace, true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue