diff options
author | John Hawthorn <jhawthor@uvic.ca> | 2008-06-03 15:39:35 -0700 |
---|---|---|
committer | John Hawthorn <jhawthor@uvic.ca> | 2008-06-03 15:39:35 -0700 |
commit | f916244ad24ce11c2e6927120956f2dcb9e18444 (patch) | |
tree | df3cc7cff90c36e978818754e15227926d88228d /src/main.c | |
parent | f1c95bdd11811020d27b7bf569a2ecae15dca49e (diff) | |
download | mirror-meh-f916244ad24ce11c2e6927120956f2dcb9e18444.tar.gz mirror-meh-f916244ad24ce11c2e6927120956f2dcb9e18444.tar.bz2 mirror-meh-f916244ad24ce11c2e6927120956f2dcb9e18444.zip |
tmp
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -27,8 +27,8 @@ static int popcount(unsigned long mask){ #else int y; - y = (mask >> 1) &033333333333; - y = mask - y - ((y >>1) & 033333333333); + y = (mask >> 1) & 033333333333; + y = mask - y - ((y >> 1) & 033333333333); return (((y + (y >> 3)) & 030707070707) % 077); #endif } @@ -193,6 +193,7 @@ void run(struct imagenode *image){ XNextEvent(display, &event); switch(event.type){ case MapNotify: + printf("map\n"); break; case ConfigureNotify: if(width != event.xconfigure.width || height != event.xconfigure.height){ @@ -202,9 +203,11 @@ void run(struct imagenode *image){ width = event.xconfigure.width; height = event.xconfigure.height; } + printf("%i, %i\n", width, height); break; case Expose: redraw = 1; + printf("expose\n"); break; case KeyPress: switch(XLookupKeysym(&event.xkey, 0)){ |