More TODO
This commit is contained in:
parent
c3eefd20ab
commit
2bdcb322a3
6
TODO
6
TODO
|
@ -3,13 +3,15 @@ TODO list, in order of importance:
|
||||||
* freely resizable (e.g. using your mouse, for now) percentage of rows/cols
|
* freely resizable (e.g. using your mouse, for now) percentage of rows/cols
|
||||||
* fullscreen (handling of applications)
|
* fullscreen (handling of applications)
|
||||||
* fullscreen (implementing a mode, like default, stacked)
|
* fullscreen (implementing a mode, like default, stacked)
|
||||||
* tags+xinerama
|
* workspaces+xinerama
|
||||||
* clean up the source code
|
* clean up the source code
|
||||||
* document stuff!
|
* document stuff!
|
||||||
* more documentation!
|
* more documentation!
|
||||||
* think of some IPC mechanism, implement it
|
|
||||||
* debian package
|
* debian package
|
||||||
* initial release
|
* initial release
|
||||||
|
|
||||||
TODO for later™:
|
TODO for later™:
|
||||||
|
* think of some IPC mechanism, implement it
|
||||||
|
* a command for toggling layouts
|
||||||
|
* a command for toggling workspaces
|
||||||
* floating
|
* floating
|
||||||
|
|
7
mainx.c
7
mainx.c
|
@ -25,7 +25,7 @@
|
||||||
#include "table.h"
|
#include "table.h"
|
||||||
#include "font.h"
|
#include "font.h"
|
||||||
|
|
||||||
#define TERMINAL "/usr/pkg/bin/urxvt"
|
#define TERMINAL "/usr/bin/urxvt"
|
||||||
|
|
||||||
Display *xkbdpy;
|
Display *xkbdpy;
|
||||||
|
|
||||||
|
@ -723,6 +723,7 @@ static void move_current_window(xcb_connection_t *connection, direction_t direct
|
||||||
new = table[++current_col][current_row];
|
new = table[++current_col][current_row];
|
||||||
break;
|
break;
|
||||||
case D_UP:
|
case D_UP:
|
||||||
|
/* TODO: if we’re at the up-most position, move the rest of the table down */
|
||||||
if (move_current_window_in_container(connection, current_client, D_UP) ||
|
if (move_current_window_in_container(connection, current_client, D_UP) ||
|
||||||
current_row == 0)
|
current_row == 0)
|
||||||
return;
|
return;
|
||||||
|
@ -980,6 +981,7 @@ static int handle_key_press(void *ignored, xcb_connection_t *conn, xcb_key_press
|
||||||
printf("state %d\n", event->state);
|
printf("state %d\n", event->state);
|
||||||
|
|
||||||
/* Find the binding */
|
/* Find the binding */
|
||||||
|
/* TODO: event->state durch eine bitmask filtern und dann direkt vergleichen */
|
||||||
Binding *bind, *best_match = TAILQ_END(&bindings);
|
Binding *bind, *best_match = TAILQ_END(&bindings);
|
||||||
TAILQ_FOREACH(bind, &bindings, bindings) {
|
TAILQ_FOREACH(bind, &bindings, bindings) {
|
||||||
if (bind->keycode == event->detail &&
|
if (bind->keycode == event->detail &&
|
||||||
|
@ -1194,6 +1196,7 @@ int handle_unmap_notify_event(void *data, xcb_connection_t *c, xcb_unmap_notify_
|
||||||
|
|
||||||
int rows, cols;
|
int rows, cols;
|
||||||
Client *con_client;
|
Client *con_client;
|
||||||
|
/* TODO: clear this up */
|
||||||
for (cols = 0; cols < table_dims.x; cols++)
|
for (cols = 0; cols < table_dims.x; cols++)
|
||||||
for (rows = 0; rows < table_dims.y; rows++)
|
for (rows = 0; rows < table_dims.y; rows++)
|
||||||
CIRCLEQ_FOREACH(con_client, &(table[cols][rows]->clients), clients)
|
CIRCLEQ_FOREACH(con_client, &(table[cols][rows]->clients), clients)
|
||||||
|
@ -1381,7 +1384,7 @@ int main(int argc, char *argv[], char *env[]) {
|
||||||
/* 38 = 'a' */
|
/* 38 = 'a' */
|
||||||
BIND(38, BIND_MODE_SWITCH, "foo");
|
BIND(38, BIND_MODE_SWITCH, "foo");
|
||||||
|
|
||||||
BIND(30, 0, "exec /usr/pkg/bin/urxvt");
|
BIND(30, 0, "exec /usr/bin/urxvt");
|
||||||
|
|
||||||
BIND(44, BIND_MOD_1, "h");
|
BIND(44, BIND_MOD_1, "h");
|
||||||
BIND(45, BIND_MOD_1, "j");
|
BIND(45, BIND_MOD_1, "j");
|
||||||
|
|
Loading…
Reference in New Issue