awesome wm needs to properly support vte-based terminal moving
This commit is contained in:
parent
88903badb1
commit
b6c336a574
2 changed files with 78 additions and 0 deletions
49
awesome/PKGBUILD
Normal file
49
awesome/PKGBUILD
Normal file
|
@ -0,0 +1,49 @@
|
|||
# $Id: PKGBUILD 133580 2015-05-16 16:23:32Z anatolik $
|
||||
# Maintainer: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
|
||||
# Maintainer: Andrea Scarpino <andrea@archlinux.org>
|
||||
# Contributor: Sébastien Luttringer
|
||||
# Contributor: xduugu
|
||||
# Contributor: Ronald van Haren <ronald.archlinux.org>
|
||||
# Contributor: Vesa Kaihlavirta
|
||||
|
||||
pkgname=awesome
|
||||
pkgver=3.5.6
|
||||
pkgrel=2
|
||||
pkgdesc='Highly configurable framework window manager'
|
||||
arch=('i686' 'x86_64')
|
||||
url='http://awesome.naquadah.org/'
|
||||
license=('GPL2')
|
||||
depends=('cairo' 'dbus' 'gdk-pixbuf2' 'imlib2' 'libxdg-basedir' 'lua' 'lua-lgi'
|
||||
'pango' 'startup-notification' 'xcb-util-cursor' 'xcb-util-keysyms'
|
||||
'xcb-util-wm' 'xorg-xmessage')
|
||||
makedepends=('asciidoc' 'cmake' 'docbook-xsl' 'doxygen' 'imagemagick' 'ldoc' 'xmlto')
|
||||
optdepends=('rlwrap: readline support for awesome-client'
|
||||
'dex: autostart your desktop files'
|
||||
'vicious: widgets for the Awesome window manager')
|
||||
provides=('notification-daemon')
|
||||
backup=('etc/xdg/awesome/rc.lua')
|
||||
source=($url/download/$pkgname-$pkgver.tar.xz)
|
||||
md5sums=('db1c31de752ab8e5f7aaa338718202af')
|
||||
|
||||
prepare() {
|
||||
mkdir -p build
|
||||
patch -p0 < ../vte-hints-fix.diff
|
||||
}
|
||||
|
||||
build() {
|
||||
cd build
|
||||
cmake ../$pkgname-$pkgver \
|
||||
-DCMAKE_BUILD_TYPE=RELEASE \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DSYSCONFDIR=/etc \
|
||||
-DLUA_LIBRARY=/usr/lib/liblua.so.5.3
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd build
|
||||
make DESTDIR="$pkgdir" install
|
||||
|
||||
install -Dm644 "$srcdir"/$pkgname-$pkgver/awesome.desktop \
|
||||
"$pkgdir/usr/share/xsessions/awesome.desktop"
|
||||
}
|
29
awesome/vte-hints-fix.diff
Normal file
29
awesome/vte-hints-fix.diff
Normal file
|
@ -0,0 +1,29 @@
|
|||
--- awesome-3.5.6/objects/client.c.orig 2015-11-06 13:31:38.767875330 +0300
|
||||
+++ awesome-3.5.6/objects/client.c 2015-11-06 13:32:34.933876384 +0300
|
||||
@@ -623,7 +623,7 @@
|
||||
/* Size hints are applied to the window without any decoration */
|
||||
client_remove_titlebar_geometry(c, &geometry);
|
||||
|
||||
- if(c->size_hints.flags & XCB_ICCCM_SIZE_HINT_P_SIZE)
|
||||
+ if(c->size_hints.flags & XCB_ICCCM_SIZE_HINT_BASE_SIZE)
|
||||
{
|
||||
basew = c->size_hints.base_width;
|
||||
baseh = c->size_hints.base_height;
|
||||
@@ -642,7 +642,7 @@
|
||||
minw = c->size_hints.min_width;
|
||||
minh = c->size_hints.min_height;
|
||||
}
|
||||
- else if(c->size_hints.flags & XCB_ICCCM_SIZE_HINT_P_SIZE)
|
||||
+ else if(c->size_hints.flags & XCB_ICCCM_SIZE_HINT_BASE_SIZE)
|
||||
{
|
||||
/* min size is substituted with base size if not specified */
|
||||
minw = c->size_hints.base_width;
|
||||
@@ -2017,7 +2017,7 @@
|
||||
|
||||
if(c->size_hints.flags & XCB_ICCCM_SIZE_HINT_US_SIZE)
|
||||
u_or_p = "user_size";
|
||||
- else if(c->size_hints.flags & XCB_ICCCM_SIZE_HINT_P_SIZE)
|
||||
+ else if(c->size_hints.flags & XCB_ICCCM_SIZE_HINT_BASE_SIZE)
|
||||
u_or_p = "program_size";
|
||||
|
||||
if(u_or_p)
|
Loading…
Reference in a new issue