diff options
author | Patrick Li <pat@FreeBSD.org> | 2002-06-21 05:46:46 +0000 |
---|---|---|
committer | Patrick Li <pat@FreeBSD.org> | 2002-06-21 05:46:46 +0000 |
commit | c5c4353d31251f103d6e6994d1e428072687dd25 (patch) | |
tree | 85f40fd1f0bfa4af1950534f518ffd8ed8e3fa13 /x11-wm | |
parent | Correct my coordinates based on http://geocode.com/eagle.html (diff) |
- Update to 0.3.3
- Add patches to use gettimeofday(2) so it will not have to link with libcompat
PR: 39568
Submitted by: maintainer
Notes
Notes:
svn path=/head/; revision=61665
Diffstat (limited to 'x11-wm')
-rw-r--r-- | x11-wm/waimea/Makefile | 3 | ||||
-rw-r--r-- | x11-wm/waimea/distinfo | 2 | ||||
-rw-r--r-- | x11-wm/waimea/files/patch-src::EventHandler.cc | 61 | ||||
-rw-r--r-- | x11-wm/waimea/files/patch-src::EventHandler.hh | 20 |
4 files changed, 83 insertions, 3 deletions
diff --git a/x11-wm/waimea/Makefile b/x11-wm/waimea/Makefile index 578d8bc8c920..76bbe2adc58a 100644 --- a/x11-wm/waimea/Makefile +++ b/x11-wm/waimea/Makefile @@ -6,7 +6,7 @@ # PORTNAME= waimea -PORTVERSION= 0.3.2 +PORTVERSION= 0.3.3 CATEGORIES= x11-wm MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= waimea @@ -18,7 +18,6 @@ USE_IMLIB= yes USE_X_PREFIX= yes GNU_CONFIGURE= yes -CONFIGURE_ENV+= LIBS="-lcompat" MAN1= waimea.1 diff --git a/x11-wm/waimea/distinfo b/x11-wm/waimea/distinfo index cc1f95e3947b..7c9c6acfb494 100644 --- a/x11-wm/waimea/distinfo +++ b/x11-wm/waimea/distinfo @@ -1 +1 @@ -MD5 (waimea-0.3.2.tar.gz) = 97ab7c52590aac56a3acebdf2f8bf1fa +MD5 (waimea-0.3.3.tar.gz) = 64c2b9009ead3b95f78a2365bad94cec diff --git a/x11-wm/waimea/files/patch-src::EventHandler.cc b/x11-wm/waimea/files/patch-src::EventHandler.cc new file mode 100644 index 000000000000..726d4ec99d81 --- /dev/null +++ b/x11-wm/waimea/files/patch-src::EventHandler.cc @@ -0,0 +1,61 @@ +--- src/EventHandler.cc.orig Mon Jun 17 19:14:12 2002 ++++ src/EventHandler.cc Mon Jun 17 19:38:20 2002 +@@ -94,7 +94,7 @@ + void EventHandler::HandleEvent(XEvent *event) { + Window w; + int i, rx, ry; +- struct timeb click_time; ++ struct timeval click_time; + + EventDetail *ed = new EventDetail; + +@@ -136,36 +136,36 @@ + case ButtonPress: + ed->type = ButtonPress; + if (last_click_win == event->xbutton.window) { +- ftime(&click_time); +- if (click_time.time <= last_click.time + 1) { +- if (click_time.time == last_click.time && ++ gettimeofday(&click_time, NULL); ++ if (click_time.tv_sec <= last_click.tv_sec + 1) { ++ if (click_time.tv_sec == last_click.tv_sec && + (unsigned int) +- (click_time.millitm - last_click.millitm) < +- waimea->rh->double_click) { ++ (click_time.tv_usec - last_click.tv_usec) ++ / 1000 < waimea->rh->double_click) { + ed->type = DoubleClick; + last_click_win = (Window) 0; + } +- else if ((1000 - last_click.millitm) + +- (unsigned int) click_time.millitm < +- waimea->rh->double_click) { ++ else if (((1000000 - last_click.tv_usec) + ++ (unsigned int) click_time.tv_usec) ++ / 1000 < waimea->rh->double_click) { + ed->type = DoubleClick; + last_click_win = (Window) 0; + } + else { + last_click_win = event->xbutton.window; +- last_click.time = click_time.time; +- last_click.millitm = click_time.millitm; ++ last_click.tv_sec = click_time.tv_sec; ++ last_click.tv_usec = click_time.tv_usec; + } + } + else { + last_click_win = event->xbutton.window; +- last_click.time = click_time.time; +- last_click.millitm = click_time.millitm; ++ last_click.tv_sec = click_time.tv_sec; ++ last_click.tv_usec = click_time.tv_usec; + } + } + else { + last_click_win = event->xbutton.window; +- ftime(&last_click); ++ gettimeofday(&last_click, NULL); + } + case ButtonRelease: + if (event->type == ButtonRelease) ed->type = ButtonRelease; diff --git a/x11-wm/waimea/files/patch-src::EventHandler.hh b/x11-wm/waimea/files/patch-src::EventHandler.hh new file mode 100644 index 000000000000..a46d0f2aa7a8 --- /dev/null +++ b/x11-wm/waimea/files/patch-src::EventHandler.hh @@ -0,0 +1,20 @@ +--- src/EventHandler.hh.orig Mon Jun 17 19:17:21 2002 ++++ src/EventHandler.hh Mon Jun 17 19:21:08 2002 +@@ -15,7 +15,7 @@ + #define __EventHandler_hh + + #include <sys/types.h> +-#include <sys/timeb.h> ++#include <sys/time.h> + #include <X11/Xlib.h> + #include <hash_set.h> + +@@ -64,7 +64,7 @@ + Waimea *waimea; + ResourceHandler *rh; + Window last_click_win; +- struct timeb last_click; ++ struct timeval last_click; + }; + + Bool eventmatch(WaAction *, EventDetail *); |