removed unnecessary debug info

This commit is contained in:
garbeam 2005-12-19 18:27:36 +02:00
parent 65a282c52d
commit a9142cdceb
4 changed files with 0 additions and 24 deletions

View File

@ -293,10 +293,8 @@ void attach_client(Client * c)
Area *a = 0;
Page *p = selpage;
fprintf(stderr, "%s", "before alloc_page\n");
if (!p)
p = alloc_page();
fprintf(stderr, "%s", "after alloc_page\n");
/* transient stuff */
a = p->sel;
if (c && c->trans) {
@ -304,7 +302,6 @@ void attach_client(Client * c)
if (t && t->frame)
a = p->floating;
}
fprintf(stderr, "%s", "before layout->attach\n");
a->layout->attach(a, c);
invoke_wm_event(def[WM_EVENT_PAGE_UPDATE]);
}

View File

@ -51,7 +51,6 @@ void init_event_hander()
void check_event(Connection * c)
{
XEvent ev;
fprintf(stderr, "%s", "check event\n");
while (XPending(dpy)) { /* main evet loop */
XNextEvent(dpy, &ev);
if (handler[ev.type])
@ -64,7 +63,6 @@ static void handle_buttonpress(XEvent * e)
Client *c;
XButtonPressedEvent *ev = &e->xbutton;
Frame *f = win_to_frame(ev->window);
fprintf(stderr, "%s\n", "handle_buttonpress");
if (f) {
handle_frame_buttonpress(ev, f);
@ -107,12 +105,10 @@ static void handle_configurerequest(XEvent * e)
Frame *f = 0;
fprintf(stderr, "%s\n", "handle_configurerequest");
c = win_to_client(ev->window);
ev->value_mask &= ~CWSibling;
if (c) {
fprintf(stderr, "%s", "configure request client\n");
f = c->frame;
if (f) {
@ -173,14 +169,12 @@ static void handle_configurerequest(XEvent * e)
XConfigureWindow(dpy, e->xconfigurerequest.window, ev->value_mask, &wc);
XSync(dpy, False);
fprintf(stderr, "%d,%d,%d,%d\n", wc.x, wc.y, wc.width, wc.height);
}
static void handle_destroynotify(XEvent * e)
{
XDestroyWindowEvent *ev = &e->xdestroywindow;
Client *c = win_to_client(ev->window);
fprintf(stderr, "%s\n", "handle_destroynotify");
if (c) {
c->destroyed = True;
detach_client(c, False);
@ -190,7 +184,6 @@ static void handle_destroynotify(XEvent * e)
static void handle_expose(XEvent * e)
{
static Frame *f;
fprintf(stderr, "%s\n", "handle_expose");
if (e->xexpose.count == 0) {
f = win_to_frame(e->xbutton.window);
if (f)
@ -204,7 +197,6 @@ static void handle_maprequest(XEvent * e)
static XWindowAttributes wa;
static Client *c;
fprintf(stderr, "%s\n", "handle_maprequest");
if (!XGetWindowAttributes(dpy, ev->window, &wa))
return;
if (wa.override_redirect) {
@ -226,7 +218,6 @@ static void handle_motionnotify(XEvent * e)
{
Frame *f = win_to_frame(e->xmotion.window);
Cursor cursor;
fprintf(stderr, "%s\n", "handle_motionnotify");
if (f) {
cursor = cursor_for_motion(f, e->xmotion.x, e->xmotion.y);
if (cursor != f->cursor) {
@ -252,7 +243,6 @@ static void handle_unmapnotify(XEvent * e)
{
XUnmapEvent *ev = &e->xunmap;
Client *c;
fprintf(stderr, "%s\n", "handle_unmapnotify");
handle_ignore_enternotify_crap(e);
if ((c = win_to_client(ev->window))) {
if (!c->ignore_unmap)
@ -270,7 +260,6 @@ static void handle_enternotify(XEvent * e)
if ((ev->mode != NotifyNormal) || (ev->detail == NotifyInferior) || (ev->serial == ignore_enternotify_crap))
return;
fprintf(stderr, "%s\n", "handle_enternotify");
c = win_to_client(ev->window);
if (c && c->frame) {
focus_area(c->frame->area);
@ -280,7 +269,6 @@ static void handle_enternotify(XEvent * e)
static void handle_ignore_enternotify_crap(XEvent *e)
{
fprintf(stderr, "%s\n", "handle_ignore_enternotify_crap");
ignore_enternotify_crap = e->xany.serial;
XSync(dpy, False);
}

View File

@ -39,7 +39,6 @@ Page *alloc_page()
new->file[P_CTL]->after_write = handle_after_write_page;
new->floating = alloc_area(new, "float");
new->sel = new->managed = alloc_area(new, def[WM_LAYOUT]->content);
fprintf(stderr, "%s", "after allocating areas\n");
for (p = pages; p && p->next; p = p->next);
if (!p)
pages = new;
@ -48,7 +47,6 @@ Page *alloc_page()
p->next = new;
}
selpage = new;
fprintf(stderr, "%s", "after attaching page\n");
def[WM_SEL_PAGE]->content = new->file[P_PREFIX]->content;
invoke_wm_event(def[WM_EVENT_PAGE_UPDATE]);
npages++;

View File

@ -479,11 +479,8 @@ void scan_wins()
if (wa.override_redirect || XGetTransientForHint(dpy, wins[i], &d1))
continue;
if (wa.map_state == IsViewable) {
fprintf(stderr, "%s", "before alloc_client\n");
c = alloc_client(wins[i]);
fprintf(stderr, "%s", "before init_client\n");
init_client(c, &wa);
fprintf(stderr, "%s", "before attach_client\n");
attach_client(c);
c->ignore_unmap++; /* was viewable already */
}
@ -811,13 +808,9 @@ int main(int argc, char *argv[])
init_default();
font = blitz_getfont(dpy, def[WM_FONT]->content);
wmii_init_lock_modifiers(dpy, &valid_mask, &num_lock_mask);
fprintf(stderr, "%s", "default stuff\n");
init_screen();
fprintf(stderr, "%s", "screen stuff\n");
init_layouts();
fprintf(stderr, "%s", "layout stuff\n");
scan_wins();
fprintf(stderr, "%s", "scan wins\n");
/* main event loop */
run_server_with_fd_support(ixps, ConnectionNumber(dpy), check_event, 0);