New package: xob-0.1
This commit is contained in:
parent
83ec567b47
commit
efbf0d35fd
3 changed files with 76 additions and 0 deletions
21
srcpkgs/xob/patches/0001-fix-linking-order.patch
Normal file
21
srcpkgs/xob/patches/0001-fix-linking-order.patch
Normal file
|
@ -0,0 +1,21 @@
|
|||
From f9fc63952749b7bb9d03778dbe68666160a97e4b Mon Sep 17 00:00:00 2001
|
||||
From: Guillaume Babin <645219+gbabin@users.noreply.github.com>
|
||||
Date: Wed, 22 Aug 2018 21:00:49 +0200
|
||||
Subject: [PATCH] Fix #4: Change position of LDFLAGS in Makefile
|
||||
|
||||
---
|
||||
Makefile | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
--- Makefile
|
||||
+++ Makefile
|
||||
@@ -16,7 +16,7 @@ MANPREFIX ?= $(PREFIX)/share/man
|
||||
all: $(PROGRAM)
|
||||
|
||||
$(PROGRAM): $(OBJECTS)
|
||||
- $(CC) $(LDFLAGS) -o $@ $(OBJECTS)
|
||||
+ $(CC) -o $@ $(OBJECTS) $(LDFLAGS)
|
||||
|
||||
%.o: %.c %.h
|
||||
$(CC) $(CFLAGS) -c -o $@ $<
|
||||
|
|
@ -0,0 +1,40 @@
|
|||
From 1cadc7055718138f6ea31765970ca72b7414532e Mon Sep 17 00:00:00 2001
|
||||
From: Florent C <florentc@users.noreply.github.com>
|
||||
Date: Wed, 22 Aug 2018 17:02:05 +0200
|
||||
Subject: [PATCH] Fix #3: Set a WM_CLASS for the bar X window
|
||||
|
||||
---
|
||||
src/display.c | 12 ++++++++++++
|
||||
1 file changed, 12 insertions(+)
|
||||
|
||||
diff --git a/src/display.c b/src/display.c
|
||||
index db451e0..a229647 100644
|
||||
--- src/display.c
|
||||
+++ src/display.c
|
||||
@@ -17,6 +17,8 @@
|
||||
|
||||
#include "display.h"
|
||||
|
||||
+#include <X11/Xutil.h>
|
||||
+
|
||||
/* Keep value in range */
|
||||
static int fit_in(int value, int min, int max)
|
||||
{
|
||||
@@ -133,6 +135,16 @@ display_context_t init(style_t conf)
|
||||
DefaultVisual(dc.x.display, dc.x.screen_number), CWOverrideRedirect,
|
||||
&window_attributes);
|
||||
|
||||
+ /* Set a WM_CLASS for the window */
|
||||
+ XClassHint *class_hint = XAllocClassHint();
|
||||
+ if (class_hint != NULL)
|
||||
+ {
|
||||
+ class_hint->res_name = DEFAULT_CONFIG_APPNAME;
|
||||
+ class_hint->res_class = DEFAULT_CONFIG_APPNAME;
|
||||
+ XSetClassHint(dc.x.display, dc.x.window, class_hint);
|
||||
+ XFree(class_hint);
|
||||
+ }
|
||||
+
|
||||
/* The new window is not mapped yet */
|
||||
dc.x.mapped = False;
|
||||
|
||||
|
15
srcpkgs/xob/template
Normal file
15
srcpkgs/xob/template
Normal file
|
@ -0,0 +1,15 @@
|
|||
# Template file for 'xob'
|
||||
pkgname=xob
|
||||
version=0.1
|
||||
revision=1
|
||||
build_style=gnu-makefile
|
||||
hostmakedepends="pkg-config"
|
||||
makedepends="libX11-devel libconfig-devel"
|
||||
short_desc="Lightweight overlay bar for the X Window System"
|
||||
maintainer="maxice8 <thinkabit.ukim@gmail.com>"
|
||||
license="GPL-3.0-or-later"
|
||||
homepage="https://github.com/florentc/xob"
|
||||
distfiles="https://github.com/florentc/xob/archive/v${version}.tar.gz"
|
||||
checksum=751d148fdf2bfa4779f05afa22673653b3475ab0418d4803162d2e4a3097f896
|
||||
|
||||
LDFLAGS="-lX11 -lconfig"
|
Loading…
Reference in a new issue