Add todo
This commit is contained in:
parent
5b5e780680
commit
ddc7c581fe
25
wmfs2/TODO
Executable file
25
wmfs2/TODO
Executable file
@ -0,0 +1,25 @@
|
|||||||
|
WMFS's Infobar/Element low-level structure
|
||||||
|
|
||||||
|
[ ]
|
||||||
|
[ SCR33N ] => [ Infobar ]
|
||||||
|
[ ] [ (head) ] => [ Element ]
|
||||||
|
| [ (head) ] => [ SLIST_HEAD(Barwin) bars;
|
||||||
|
| | [ ElemTypes type; { ElemTag, ElemLayout, ElemSelbar, ElemStatus, (ElemSystray?) }
|
||||||
|
... | [ Geo geo;
|
||||||
|
... [ STAILQ_ENTRY(Elements) next;
|
||||||
|
|
|
||||||
|
...
|
||||||
|
|
||||||
|
This will be used with some functions, depending of element type :
|
||||||
|
|
||||||
|
Element* elem_tag_init(Infobar *i)
|
||||||
|
layout
|
||||||
|
selbar
|
||||||
|
statustext
|
||||||
|
systray?
|
||||||
|
|
||||||
|
void element_tag_update(Element *e)
|
||||||
|
layout
|
||||||
|
selbar
|
||||||
|
statustext
|
||||||
|
systray?
|
||||||
@ -1,4 +1,4 @@
|
|||||||
/*
|
/*
|
||||||
* wmfs2 by Martin Duquesnoy <xorg62@gmail.com> { for(i = 2011; i < 2111; ++i) ©(i); }
|
* wmfs2 by Martin Duquesnoy <xorg62@gmail.com> { for(i = 2011; i < 2111; ++i) ©(i); }
|
||||||
* For license, see COPYING.
|
* For license, see COPYING.
|
||||||
*/
|
*/
|
||||||
@ -7,6 +7,7 @@
|
|||||||
#include "util.h"
|
#include "util.h"
|
||||||
#include "wmfs.h"
|
#include "wmfs.h"
|
||||||
#include "client.h"
|
#include "client.h"
|
||||||
|
#include "barwin.h"
|
||||||
|
|
||||||
#define EVDPY(e) (e)->xany.display
|
#define EVDPY(e) (e)->xany.display
|
||||||
|
|
||||||
@ -35,6 +36,7 @@ static void
|
|||||||
event_clientmessageevent(XEvent *e)
|
event_clientmessageevent(XEvent *e)
|
||||||
{
|
{
|
||||||
XClientMessageEvent *ev = &e->xclient;
|
XClientMessageEvent *ev = &e->xclient;
|
||||||
|
Client *c;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@ -197,10 +199,15 @@ event_keypress(XEvent *e)
|
|||||||
static void
|
static void
|
||||||
event_expose(XEvent *e)
|
event_expose(XEvent *e)
|
||||||
{
|
{
|
||||||
/*
|
XExposeEvent *ev = &e->xexpose;
|
||||||
* XExposeEvent *ev = &e->xexpose;
|
Barwin *b;
|
||||||
*/
|
|
||||||
|
|
||||||
|
SLIST_FOREACH(b, &W->h.barwin, next)
|
||||||
|
if(b->win == ev->window)
|
||||||
|
{
|
||||||
|
barwin_refresh(b);
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|||||||
@ -203,9 +203,7 @@ wmfs_loop(void)
|
|||||||
{
|
{
|
||||||
XEvent ev;
|
XEvent ev;
|
||||||
|
|
||||||
W->running = true;
|
while(XPending(W->dpy))
|
||||||
|
|
||||||
while(W->running || XPending(W->dpy))
|
|
||||||
{
|
{
|
||||||
XNextEvent(W->dpy, &ev);
|
XNextEvent(W->dpy, &ev);
|
||||||
HANDLE_EVENT(&ev);
|
HANDLE_EVENT(&ev);
|
||||||
@ -232,8 +230,6 @@ wmfs_init(void)
|
|||||||
void
|
void
|
||||||
wmfs_quit(void)
|
wmfs_quit(void)
|
||||||
{
|
{
|
||||||
W->running = false;
|
|
||||||
|
|
||||||
/* X stuffs */
|
/* X stuffs */
|
||||||
XFreeGC(W->dpy, W->gc);
|
XFreeGC(W->dpy, W->gc);
|
||||||
XFreeFontSet(W->dpy, W->font.fontset);
|
XFreeFontSet(W->dpy, W->font.fontset);
|
||||||
@ -267,7 +263,5 @@ main(int argc, char **argv)
|
|||||||
|
|
||||||
wmfs_loop();
|
wmfs_loop();
|
||||||
|
|
||||||
wmfs_quit();
|
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -58,6 +58,12 @@ struct Barwin
|
|||||||
SLIST_ENTRY(Barwin) next;
|
SLIST_ENTRY(Barwin) next;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* Infobar */
|
||||||
|
struct Infobar
|
||||||
|
{
|
||||||
|
Barwin *bar;
|
||||||
|
};
|
||||||
|
|
||||||
/* Screen */
|
/* Screen */
|
||||||
struct Scr33n
|
struct Scr33n
|
||||||
{
|
{
|
||||||
@ -125,7 +131,6 @@ struct Config
|
|||||||
struct Wmfs
|
struct Wmfs
|
||||||
{
|
{
|
||||||
/* X11 stuffs */
|
/* X11 stuffs */
|
||||||
bool running;
|
|
||||||
Display *dpy;
|
Display *dpy;
|
||||||
Window root;
|
Window root;
|
||||||
int xscreen, xdepth;
|
int xscreen, xdepth;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user