Fix spelling mistakes
Eric Engeström authored 8 years ago
Michael Stapelberg committed 8 years ago
186 | 186 |
function, which was moved into its own file because it is so long.
|
187 | 187 |
|
188 | 188 |
src/util.c::
|
189 | |
Contains useful functions which are not really dependant on anything.
|
|
189 |
Contains useful functions which are not really dependent on anything.
|
190 | 190 |
|
191 | 191 |
src/window.c::
|
192 | 192 |
Handlers to update X11 window properties like +WM_CLASS+, +_NET_WM_NAME+,
|
0 | 0 |
# This list can be used to convert X11 Keysyms to Unicode 2.1 character.
|
1 | 1 |
# The list is not checked for correctness by Unicode officials. Use it
|
2 | 2 |
# at your own risk and the creator is not responsable for any damage that
|
3 | |
# occured due to using this list.
|
|
3 |
# occurred due to using this list.
|
4 | 4 |
#
|
5 | 5 |
# The list is created by looking at the Keysym names and the Unicode data
|
6 | 6 |
# file. Other mapping tables were used as a reference where needed.
|
79 | 79 |
}
|
80 | 80 |
|
81 | 81 |
/*
|
82 | |
* Restores the X11 input focus to whereever it was before.
|
|
82 |
* Restores the X11 input focus to wherever it was before.
|
83 | 83 |
* This is necessary because i3-input’s window has override_redirect=1
|
84 | 84 |
* (→ unmanaged by the window manager) and thus i3-input changes focus itself.
|
85 | 85 |
* This function is called on exit().
|
118 | 118 |
|
119 | 119 |
state = yajl_parse(handle, (const unsigned char *)json, strlen(json));
|
120 | 120 |
|
121 | |
/* FIXME: Propper error handling for JSON parsing */
|
|
121 |
/* FIXME: Proper error handling for JSON parsing */
|
122 | 122 |
switch (state) {
|
123 | 123 |
case yajl_status_ok:
|
124 | 124 |
break;
|
270 | 270 |
|
271 | 271 |
state = yajl_parse(handle, (const unsigned char *)json, strlen(json));
|
272 | 272 |
|
273 | |
/* FIXME: Propper errorhandling for JSON-parsing */
|
|
273 |
/* FIXME: Proper errorhandling for JSON-parsing */
|
274 | 274 |
switch (state) {
|
275 | 275 |
case yajl_status_ok:
|
276 | 276 |
break;
|
232 | 232 |
|
233 | 233 |
state = yajl_parse(handle, (const unsigned char *)json, strlen(json));
|
234 | 234 |
|
235 | |
/* FIXME: Propper error handling for JSON parsing */
|
|
235 |
/* FIXME: Proper error handling for JSON parsing */
|
236 | 236 |
switch (state) {
|
237 | 237 |
case yajl_status_ok:
|
238 | 238 |
break;
|
444 | 444 |
|
445 | 445 |
/*
|
446 | 446 |
* Handle a button press event (i.e. a mouse click on one of our bars).
|
447 | |
* We determine, whether the click occured on a workspace button or if the scroll-
|
|
447 |
* We determine, whether the click occurred on a workspace button or if the scroll-
|
448 | 448 |
* wheel was used and change the workspace appropriately
|
449 | 449 |
*
|
450 | 450 |
*/
|
23 | 23 |
/* Byte offset where the next line will be written to. */
|
24 | 24 |
uint32_t offset_next_write;
|
25 | 25 |
|
26 | |
/* Byte offset where the last wrap occured. */
|
|
26 |
/* Byte offset where the last wrap occurred. */
|
27 | 27 |
uint32_t offset_last_wrap;
|
28 | 28 |
|
29 | 29 |
/* The size of the logfile in bytes. Since the size is limited to 25 MiB
|
45 | 45 |
} \
|
46 | 46 |
} while (0)
|
47 | 47 |
|
48 | |
/** If an error occured during parsing of the criteria, we want to exit instead
|
|
48 |
/** If an error occurred during parsing of the criteria, we want to exit instead
|
49 | 49 |
* of relying on fallback behavior. See #2091. */
|
50 | 50 |
#define HANDLE_INVALID_MATCH \
|
51 | 51 |
do { \
|
419 | 419 |
|
420 | 420 |
/* In case the workspace we just moved was visible but there was no
|
421 | 421 |
* other workspace to switch to, we need to initialize the source
|
422 | |
* output aswell */
|
|
422 |
* output as well */
|
423 | 423 |
if (visible && previous == NULL) {
|
424 | 424 |
LOG("There is no workspace left on \"%s\", re-initializing\n",
|
425 | 425 |
workspace_out->name);
|
166 | 166 |
/* By rendering the stacked container again, we handle the case
|
167 | 167 |
* that we have a non-leaf-container inside the stack. In that
|
168 | 168 |
* case, the children of the non-leaf-container need to be raised
|
169 | |
* aswell. */
|
|
169 |
* as well. */
|
170 | 170 |
render_con(child, false);
|
171 | 171 |
}
|
172 | 172 |
|
115 | 115 |
|
116 | 116 |
waitpid(pid_gdb, &status, 0);
|
117 | 117 |
|
118 | |
/* see if the backtrace was succesful or not */
|
|
118 |
/* see if the backtrace was successful or not */
|
119 | 119 |
if (!WIFEXITED(status) || WEXITSTATUS(status) != 0) {
|
120 | 120 |
DLOG("GDB did not run properly\n");
|
121 | 121 |
return -1;
|
|
175 | 175 |
static int sig_handle_key_press(void *ignored, xcb_connection_t *conn, xcb_key_press_event_t *event) {
|
176 | 176 |
uint16_t state = event->state;
|
177 | 177 |
|
178 | |
/* Apparantly, after activating numlock once, the numlock modifier
|
|
178 |
/* Apparently, after activating numlock once, the numlock modifier
|
179 | 179 |
* stays turned on (use xev(1) to verify). So, to resolve useful
|
180 | 180 |
* keysyms, we remove the numlock flag from the event state */
|
181 | 181 |
state &= ~xcb_numlock_mask;
|
476 | 476 |
TAILQ_FOREACH(current, &(con->nodes_head), nodes)
|
477 | 477 |
mark_unmapped(current);
|
478 | 478 |
if (con->type == CT_WORKSPACE) {
|
479 | |
/* We need to call mark_unmapped on floating nodes aswell since we can
|
|
479 |
/* We need to call mark_unmapped on floating nodes as well since we can
|
480 | 480 |
* make containers floating. */
|
481 | 481 |
TAILQ_FOREACH(current, &(con->floating_head), floating_windows)
|
482 | 482 |
mark_unmapped(current);
|
48 | 48 |
# subshell or situations like that.
|
49 | 49 |
AnyEvent::Util::close_all_fds_except(0, 1, 2);
|
50 | 50 |
|
51 | |
# convinience wrapper to write to the log file
|
|
51 |
# convenience wrapper to write to the log file
|
52 | 52 |
my $log;
|
53 | 53 |
sub Log { say $log "@_" }
|
54 | 54 |
|
|
207 | 207 |
|
208 | 208 |
$aggregator->stop();
|
209 | 209 |
|
210 | |
# print empty lines to seperate failed tests from statuslines
|
|
210 |
# print empty lines to separate failed tests from statuslines
|
211 | 211 |
print "\n\n";
|
212 | 212 |
|
213 | 213 |
for (@done) {
|
45 | 45 |
status_completed(0);
|
46 | 46 |
}
|
47 | 47 |
|
48 | |
# generates the status text, prints it in the appropiate line
|
49 | |
# and returns it, so it can be used in conjuction with C<Log()>
|
|
48 |
# generates the status text, prints it in the appropriate line
|
|
49 |
# and returns it, so it can be used in conjunction with C<Log()>
|
50 | 50 |
sub status {
|
51 | 51 |
my ($display, $msg) = @_;
|
52 | 52 |
my $status = "[$display] $msg";
|
32 | 32 |
|
33 | 33 |
my $i3 = i3;
|
34 | 34 |
|
35 | |
# Switch to the nineth workspace
|
|
35 |
# Switch to the ninth workspace
|
36 | 36 |
$i3->command('9')->recv;
|
37 | 37 |
|
38 | 38 |
#####################################################################
|
32 | 32 |
|
33 | 33 |
my $i3 = i3;
|
34 | 34 |
|
35 | |
# Switch to the nineth workspace
|
|
35 |
# Switch to the ninth workspace
|
36 | 36 |
$i3->command('9')->recv;
|
37 | 37 |
|
38 | 38 |
#####################################################################
|
13 | 13 |
# • http://onyxneon.com/books/modern_perl/modern_perl_a4.pdf
|
14 | 14 |
# (unless you are already familiar with Perl)
|
15 | 15 |
#
|
16 | |
# Check if stacking containers can be used independantly of
|
|
16 |
# Check if stacking containers can be used independently of
|
17 | 17 |
# the split mode (horizontal/vertical) of the underlying
|
18 | 18 |
# container.
|
19 | 19 |
#
|
64 | 64 |
exit_gracefully($pid);
|
65 | 65 |
|
66 | 66 |
#####################################################################
|
67 | |
# configuration file case: socket gets placed whereever we specify
|
|
67 |
# configuration file case: socket gets placed wherever we specify
|
68 | 68 |
#####################################################################
|
69 | 69 |
|
70 | 70 |
my $tmpdir = tempdir(CLEANUP => 1);
|