[hackers] [swk] fix mouseup invalid click issue || pancake

From: <hg_AT_suckless.org>
Date: Thu, 6 May 2010 23:36:08 +0000 (UTC)

changeset: 36:040fd95e2e0e
tag: tip
user: pancake <pancake_AT_nopcode.org>
date: Fri May 07 01:29:55 2010 +0200
files: README gi_sdl.c
description:
fix mouseup invalid click issue
describe build instructions in README

diff -r 5e6ee70ffcd5 -r 040fd95e2e0e README
--- a/README Fri May 07 01:10:33 2010 +0200
+++ b/README Fri May 07 01:29:55 2010 +0200
@@ -1,14 +1,16 @@
 SWK - simple widget kit
 =======================
-On ArchLinunx:
- pacman -S sdl sdl_ttf sdl_image
+swk is a minimalist widget kit with support for SDL and X11
 
-On Debian/Ubuntu:
- apt-get install libsdl-dev libsdl-ttf libsdl-image
 
-Usability guideline
-===================
-Default keybindings are defined in config.h
+Requirements
+============
+In order to build swk you need SDL, SDL-ttf and SDL-image
+
+ArchLinux: pacman -S sdl sdl_ttf sdl_image
+Debian/Ubuntu: apt-get install libsdl-dev libsdl-ttf libsdl-image
+Maemo n900: apt-get install libsdl1.3-dev libsdl-image1.2-dev libsdl-ttf2.0-0
+ -> cp config.n900.h config.h
 
 TODO
 ====
diff -r 5e6ee70ffcd5 -r 040fd95e2e0e gi_sdl.c
--- a/gi_sdl.c Fri May 07 01:10:33 2010 +0200
+++ b/gi_sdl.c Fri May 07 01:29:55 2010 +0200
@@ -136,6 +136,7 @@
                 if(mousedown) {
                         if(mousedowny==-1) // touchscreen trick
                                 mousedowny = event.motion.y;
+ else mousemoved = 1;
                         if(event.motion.y>mousedowny+fs) {
                                 mousedowny = event.motion.y;
                                 swk_scroll_up(w);
Received on Thu May 06 2010 - 23:36:08 UTC

This archive was generated by hypermail 2.2.0 : Thu May 06 2010 - 23:48:04 UTC