aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorJohn Hawthorn <jhawthor@uvic.ca>2008-06-03 15:39:35 -0700
committerJohn Hawthorn <jhawthor@uvic.ca>2008-06-03 15:39:35 -0700
commitf916244ad24ce11c2e6927120956f2dcb9e18444 (patch)
treedf3cc7cff90c36e978818754e15227926d88228d /src/main.c
parentf1c95bdd11811020d27b7bf569a2ecae15dca49e (diff)
downloadmirror-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.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 51dea22..8a6abf3 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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)){