On 02/18/11 13:15, Giovanni Bechis wrote:
> On 02/18/11 11:07, Edd Barrett wrote:
>> On Fri, Feb 18, 2011 at 09:36:40AM +0100, Giovanni Bechis wrote:
>>> On 02/18/11 00:25, Edd Barrett wrote:
>>>> Hi,
>>>>
>>>> Is x11/tilda broken. Upon first run, i get a preferences GUI, but upon
>>>> dismissing this dialog, tilda exits. Running tilda subsequently exits right
>>>> away.
>>>>
>>> same here @amd64 with gnome (snap feb 16th)
>>> by removing ~/.tilda the program restarts the second time too.
>>
>> That just causes the initial setup GUI to start again..
>>
> I am aware of that, anyway this diff fixes the problem.
>
Maybe this patch is better and more similar to the original code.
 Cheers
  Giovanni
Index: Makefile
===================================================================
RCS file: /cvs/ports/x11/tilda/Makefile,v
retrieving revision 1.14
diff -u -p -r1.14 Makefile
--- Makefile    22 Nov 2010 08:37:04 -0000      1.14
+++ Makefile    18 Feb 2011 13:45:55 -0000
@@ -3,7 +3,7 @@
 COMMENT=               drop-down terminal emulator
 
 DISTNAME=              tilda-0.9.6
-REVISION=              4
+REVISION=              5
 CATEGORIES=            x11
 
 HOMEPAGE=              http://tilda.sourceforge.net/
@@ -24,6 +24,7 @@ WANTLIB += fontconfig freetype gdk-x11-2
 WANTLIB += glib-2.0 gmodule-2.0 gobject-2.0 gthread-2.0
 WANTLIB += gtk-x11-2.0 m pango-1.0 pangocairo-1.0 pangoft2-1.0
 WANTLIB += pixman-1 png pthread xml2 z pthread-stubs xcb confuse vte
+WANTLIB += GL Xxf86vm drm xcb-render xcb-shm
 
 RUN_DEPENDS=           devel/desktop-file-utils
 LIB_DEPENDS=           devel/libconfuse \
Index: patches/patch-src_key_grabber_c
===================================================================
RCS file: patches/patch-src_key_grabber_c
diff -N patches/patch-src_key_grabber_c
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-src_key_grabber_c     18 Feb 2011 13:45:55 -0000
@@ -0,0 +1,12 @@
+$OpenBSD$
+--- src/key_grabber.c.orig     Fri Feb 18 14:42:08 2011
++++ src/key_grabber.c  Fri Feb 18 14:42:29 2011
+@@ -190,7 +190,7 @@ void pull (struct tilda_window_ *tw, enum pull_state s
+          * Overriding the user time here seems to work a lot better than 
calling
+          * gtk_window_present_with_time() here, or at the end of the 
function. I have
+          * no idea why, they should do the same thing. */
+-        gdk_x11_window_set_user_time (GTK_WIDGET(tw->window)->window,
++        gdk_x11_window_set_user_time (GTK_WIDGET(tw->window),
+                                       
tomboy_keybinder_get_current_event_time());
+         gtk_window_move (GTK_WINDOW(tw->window), config_getint ("x_pos"), 
config_getint ("y_pos"));
+         gtk_widget_show (GTK_WIDGET(tw->window));

Reply via email to