Codebase list i3-gaps / 66d9c98
Fix spelling mistakes Eric Engeström authored 8 years ago Michael Stapelberg committed 8 years ago
19 changed file(s) with 22 addition(s) and 22 deletion(s). Raw diff Collapse all Expand all
186186 function, which was moved into its own file because it is so long.
187187
188188 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.
190190
191191 src/window.c::
192192 Handlers to update X11 window properties like +WM_CLASS+, +_NET_WM_NAME+,
00 # This list can be used to convert X11 Keysyms to Unicode 2.1 character.
11 # The list is not checked for correctness by Unicode officials. Use it
22 # 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.
44 #
55 # The list is created by looking at the Keysym names and the Unicode data
66 # file. Other mapping tables were used as a reference where needed.
7979 }
8080
8181 /*
82 * Restores the X11 input focus to whereever it was before.
82 * Restores the X11 input focus to wherever it was before.
8383 * This is necessary because i3-input’s window has override_redirect=1
8484 * (→ unmanaged by the window manager) and thus i3-input changes focus itself.
8585 * This function is called on exit().
118118
119119 state = yajl_parse(handle, (const unsigned char *)json, strlen(json));
120120
121 /* FIXME: Propper error handling for JSON parsing */
121 /* FIXME: Proper error handling for JSON parsing */
122122 switch (state) {
123123 case yajl_status_ok:
124124 break;
270270
271271 state = yajl_parse(handle, (const unsigned char *)json, strlen(json));
272272
273 /* FIXME: Propper errorhandling for JSON-parsing */
273 /* FIXME: Proper errorhandling for JSON-parsing */
274274 switch (state) {
275275 case yajl_status_ok:
276276 break;
232232
233233 state = yajl_parse(handle, (const unsigned char *)json, strlen(json));
234234
235 /* FIXME: Propper error handling for JSON parsing */
235 /* FIXME: Proper error handling for JSON parsing */
236236 switch (state) {
237237 case yajl_status_ok:
238238 break;
444444
445445 /*
446446 * 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-
448448 * wheel was used and change the workspace appropriately
449449 *
450450 */
2323 /* Byte offset where the next line will be written to. */
2424 uint32_t offset_next_write;
2525
26 /* Byte offset where the last wrap occured. */
26 /* Byte offset where the last wrap occurred. */
2727 uint32_t offset_last_wrap;
2828
2929 /* The size of the logfile in bytes. Since the size is limited to 25 MiB
4545 } \
4646 } while (0)
4747
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
4949 * of relying on fallback behavior. See #2091. */
5050 #define HANDLE_INVALID_MATCH \
5151 do { \
419419
420420 /* In case the workspace we just moved was visible but there was no
421421 * other workspace to switch to, we need to initialize the source
422 * output aswell */
422 * output as well */
423423 if (visible && previous == NULL) {
424424 LOG("There is no workspace left on \"%s\", re-initializing\n",
425425 workspace_out->name);
166166 /* By rendering the stacked container again, we handle the case
167167 * that we have a non-leaf-container inside the stack. In that
168168 * case, the children of the non-leaf-container need to be raised
169 * aswell. */
169 * as well. */
170170 render_con(child, false);
171171 }
172172
115115
116116 waitpid(pid_gdb, &status, 0);
117117
118 /* see if the backtrace was succesful or not */
118 /* see if the backtrace was successful or not */
119119 if (!WIFEXITED(status) || WEXITSTATUS(status) != 0) {
120120 DLOG("GDB did not run properly\n");
121121 return -1;
175175 static int sig_handle_key_press(void *ignored, xcb_connection_t *conn, xcb_key_press_event_t *event) {
176176 uint16_t state = event->state;
177177
178 /* Apparantly, after activating numlock once, the numlock modifier
178 /* Apparently, after activating numlock once, the numlock modifier
179179 * stays turned on (use xev(1) to verify). So, to resolve useful
180180 * keysyms, we remove the numlock flag from the event state */
181181 state &= ~xcb_numlock_mask;
476476 TAILQ_FOREACH(current, &(con->nodes_head), nodes)
477477 mark_unmapped(current);
478478 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
480480 * make containers floating. */
481481 TAILQ_FOREACH(current, &(con->floating_head), floating_windows)
482482 mark_unmapped(current);
4848 # subshell or situations like that.
4949 AnyEvent::Util::close_all_fds_except(0, 1, 2);
5050
51 # convinience wrapper to write to the log file
51 # convenience wrapper to write to the log file
5252 my $log;
5353 sub Log { say $log "@_" }
5454
207207
208208 $aggregator->stop();
209209
210 # print empty lines to seperate failed tests from statuslines
210 # print empty lines to separate failed tests from statuslines
211211 print "\n\n";
212212
213213 for (@done) {
4545 status_completed(0);
4646 }
4747
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()>
5050 sub status {
5151 my ($display, $msg) = @_;
5252 my $status = "[$display] $msg";
3232
3333 my $i3 = i3;
3434
35 # Switch to the nineth workspace
35 # Switch to the ninth workspace
3636 $i3->command('9')->recv;
3737
3838 #####################################################################
3232
3333 my $i3 = i3;
3434
35 # Switch to the nineth workspace
35 # Switch to the ninth workspace
3636 $i3->command('9')->recv;
3737
3838 #####################################################################
1313 # • http://onyxneon.com/books/modern_perl/modern_perl_a4.pdf
1414 # (unless you are already familiar with Perl)
1515 #
16 # Check if stacking containers can be used independantly of
16 # Check if stacking containers can be used independently of
1717 # the split mode (horizontal/vertical) of the underlying
1818 # container.
1919 #
6464 exit_gracefully($pid);
6565
6666 #####################################################################
67 # configuration file case: socket gets placed whereever we specify
67 # configuration file case: socket gets placed wherever we specify
6868 #####################################################################
6969
7070 my $tmpdir = tempdir(CLEANUP => 1);