Little fix for openbox:

https://bugs.launchpad.net/ubuntu/+source/openbox/+bug/997212

Based on this:

https://launchpadlibrarian.net/104666437/50_gtk43bugfix.patch

Reported by Nicolas Pence. Thanks!

Ok benoit@ (maintainer)
This commit is contained in:
gonzalo 2012-10-23 14:30:56 +00:00
parent 4b7b968a5b
commit af799131a6
3 changed files with 26 additions and 8 deletions

View File

@ -1,10 +1,10 @@
# $OpenBSD: Makefile,v 1.66 2012/06/20 21:34:04 naddy Exp $
# $OpenBSD: Makefile,v 1.67 2012/10/23 14:30:56 gonzalo Exp $
COMMENT = small, fast & usable window manager
V = 3.5.0
DISTNAME = openbox-${V}
REVISION = 1
REVISION = 2
SHARED_LIBS += obt 0.0 # 0.1
SHARED_LIBS += obrender 10.0 # 27.1
@ -22,9 +22,10 @@ PERMIT_DISTFILES_FTP = Yes
WANTLIB += ICE Imlib2 SM X11 X11-xcb Xau Xcursor Xext Xfixes Xft
WANTLIB += Xinerama Xrandr Xrender c expat ffi fontconfig freetype
WANTLIB += glib-2.0 gmodule-2.0 gobject-2.0 gthread-2.0 m pango-1.0
WANTLIB += pangoft2-1.0 pangoxft-1.0 pcre pthread startup-notification-1
WANTLIB += xcb xcb-aux xml2 z
WANTLIB += glib-2.0 gmodule-2.0 gobject-2.0 gthread-2.0 harfbuzz
WANTLIB += icudata icule icuuc m pango-1.0 pangoft2-1.0 pangoxft-1.0
WANTLIB += pcre pthread startup-notification-1 xcb xcb-aux xml2
WANTLIB += z
MASTER_SITES = ${HOMEPAGE}dist/openbox/

View File

@ -1,5 +1,2 @@
MD5 (openbox-3.5.0.tar.gz) = AEQbU88UwDVmyOgmQ1RP+Q==
RMD160 (openbox-3.5.0.tar.gz) = r3ml6LEfNgWp05Bu1iVs5BAu/9U=
SHA1 (openbox-3.5.0.tar.gz) = PDuNK8T04imHElTpLWsYY5vgAwI=
SHA256 (openbox-3.5.0.tar.gz) = b6kAFlMLOqYQLiVAeUYZd0OTmFMfsj5+wHb/LBQP6go=
SIZE (openbox-3.5.0.tar.gz) = 911834

View File

@ -0,0 +1,20 @@
$OpenBSD: patch-openbox_moveresize_c,v 1.1 2012/10/23 14:30:56 gonzalo Exp $
--- openbox/moveresize.c.orig Wed Oct 10 17:27:34 2012
+++ openbox/moveresize.c Wed Oct 10 17:29:12 2012
@@ -326,6 +326,16 @@ void moveresize_end(gboolean cancel)
#endif
}
+ if (!moveresize_client) {
+ ob_debug("moveresize_end: moveresize_client is NULL!");
+ return;
+ }
+
+ if (!moveresize_in_progress) {
+ ob_debug("moveresize_end: moveresize_in_progress is FALSE!");
+ return;
+ }
+
/* don't use client_move() here, use the same width/height as
we've been using during the move, otherwise we get different results
when moving maximized windows between monitors of different sizes !