26a416e016
Due to lots of cases which were added and added to tree_move(), the function was not really easy to understand. For this refactoring, I wrote tree_move() from scratch, thinking about (hopefully) all cases. The testsuite still passes. The move command also has different parameters now. Instead of the hard to understand 'before v' stuff, we use 'move [left|right|up|down]'.
60 lines
1.2 KiB
C
60 lines
1.2 KiB
C
/*
|
|
* This header file includes all relevant files of i3 and the most often used
|
|
* system header files. This reduces boilerplate (the amount of code duplicated
|
|
* at the beginning of each source file) and is not significantly slower at
|
|
* compile-time.
|
|
*
|
|
*/
|
|
#ifndef _ALL_H
|
|
#define _ALL_H
|
|
|
|
#include <assert.h>
|
|
#include <stdbool.h>
|
|
#include <stdlib.h>
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
#include <locale.h>
|
|
#include <getopt.h>
|
|
#include <unistd.h>
|
|
#include <sys/stat.h>
|
|
#include <sys/types.h>
|
|
#include <glob.h>
|
|
#include <errno.h>
|
|
#include <err.h>
|
|
#include <stdint.h>
|
|
#include <math.h>
|
|
|
|
#include <xcb/xcb.h>
|
|
#include <xcb/xcb_aux.h>
|
|
#include <xcb/xcb_event.h>
|
|
#include <xcb/xcb_keysyms.h>
|
|
#include <xcb/xcb_icccm.h>
|
|
|
|
#include "util.h"
|
|
#include "ipc.h"
|
|
#include "tree.h"
|
|
#include "log.h"
|
|
#include "xcb.h"
|
|
#include "manage.h"
|
|
#include "workspace.h"
|
|
#include "i3.h"
|
|
#include "x.h"
|
|
#include "click.h"
|
|
#include "floating.h"
|
|
#include "config.h"
|
|
#include "handlers.h"
|
|
#include "randr.h"
|
|
#include "xinerama.h"
|
|
#include "con.h"
|
|
#include "load_layout.h"
|
|
#include "render.h"
|
|
#include "window.h"
|
|
#include "match.h"
|
|
#include "cmdparse.h"
|
|
#include "xcursor.h"
|
|
#include "resize.h"
|
|
#include "sighandler.h"
|
|
#include "move.h"
|
|
|
|
#endif
|