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.
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.
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
* 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
* 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);
* 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);
*/
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)
# 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
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/;
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;
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 {
/* 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) {
}
/*
- * 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.
*/
}
void
-desktop_update_top_layer_visiblity(struct server *server)
+desktop_update_top_layer_visibility(struct server *server)
{
struct view *view;
struct output *output;
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 */
*
* 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)
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
*/
}
/*
- * 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) {
*
* 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;
*
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);
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
*/
double xn = (double)(x + inset) / (double)total_size;
- /* Gausian dropoff */
+ /* Gaussian dropoff */
double alpha = exp(-(xn * xn) / variance);
/* RGBA values are all pre-multiplied */
* 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"),
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;
}
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);
}
}
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);
}
}
/* 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);
}
}
/* Show fullscreen views above top-layer */
if (view->output) {
- desktop_update_top_layer_visiblity(view->server);
+ desktop_update_top_layer_visibility(view->server);
}
}
}
cursor_update_focus(view->server);
- desktop_update_top_layer_visiblity(view->server);
+ desktop_update_top_layer_visibility(view->server);
}
void
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 *
*/
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);
}
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);