Commit Graph

375 Commits

Author SHA1 Message Date
Jari Vetoniemi
e7d6562046 cairo: useless memsets 2020-02-07 18:15:24 +02:00
Jari Vetoniemi
2f370033f3 make: clean the xdg-shell.c 2020-02-07 17:29:35 +02:00
Jari Vetoniemi
2a6134cd68 make: quote the wayland-protocols path 2020-02-07 17:28:36 +02:00
Jari Vetoniemi
f0af8bdd9c Fix missing dependencies from renderers 2020-02-07 17:27:40 +02:00
Jari Vetoniemi
f04c5c458a cairo: use inline instead of attributes 2020-02-07 17:05:10 +02:00
Jari Vetoniemi
a53189314f cairo: remove whitespace 2020-02-07 17:03:33 +02:00
Jari Vetoniemi
4cf09996ac README: document dependencies 2020-02-07 16:51:42 +02:00
Jari Vetoniemi
33e0d18aab GNUmakefile: remove whitespace 2020-02-07 16:50:02 +02:00
Jari Vetoniemi
c195617f6e Install needs gnu install 2020-02-07 23:43:38 +09:00
Jari Vetoniemi
ac9790b059 Fixes and docs from osx 2020-02-07 23:35:01 +09:00
Jari Vetoniemi
acb24be411 ignore_ret warns on clang *sigh* 2020-02-07 16:23:52 +02:00
Jari Vetoniemi
46ad1d7cdb .gitignore: Ignore everything
If you want to add files, add them with `-f` option.
2020-02-07 16:04:01 +02:00
Jari Vetoniemi
5a4d364d50 Nuke CMake from existance
Welcome glorious GNU Makefile
2020-02-07 16:03:08 +02:00
Jari Vetoniemi
9ff670f349 Fix gcc warnings 2020-02-07 13:05:15 +02:00
Jari Vetoniemi
543b6c4473
Merge pull request #86 from khardix/pr/extern-wayland-globals
Mark global wayland constant extern
2020-02-07 17:10:25 +09:00
Jan Staněk
2f45c191bc
Mark global wayland constant extern
Without `extern`, the changed lines are not declarations,
but "tentative definitions"
(according to GCC man page, option `-fcommon`).
When specified in a header file
that is included in more than one `.c` file,
these result in linking failure unless `-fcommon` is specified.

GCC 10 changed the default from `-fcommon` to `-fno-common`,
and as such the previous code no longer links properly.

With `extern`, these lines are considered declarations,
and the linking proceeds successfully.
2020-02-06 17:35:20 +01:00
Jari Vetoniemi
7170c93f3a menu: reset cursor at end on set_filter 2020-02-03 17:43:46 +09:00
Jari Vetoniemi
1607215d70 Extra whitespace 2020-02-03 17:26:17 +09:00
Jari Vetoniemi
88bd960718 CMake: Compile renderers after exports 2020-02-03 17:21:19 +09:00
Jari Vetoniemi
e925a6aef7
Merge pull request #84 from escondida/readme-wlroots
Document that bemenu is works only with wlroots-based compositors
2020-01-31 04:07:48 +09:00
Ivy Foster
fc1eba9229 Document that bemenu is currently for use only with wlroots-based compositors
See https://github.com/Cloudef/bemenu/issues/79#issuecomment-572867783
2020-01-29 16:43:43 -06:00
Jari Vetoniemi
b1a3f54b07
Add donation option 2020-01-29 18:43:17 +09:00
Jari Vetoniemi
98f7c806d9
Merge pull request #78 from sleich/master
Add Ctrl-[ shortcut to x11 and wayland
2020-01-08 20:11:14 +09:00
sleich
9ac860b817 Add Ctrl-[ shortcut to x11 and wayland
Ctrl-[ shortcut is used to quit bemenu. It already works with ncurses backend
2020-01-08 04:47:57 +03:00
Jari Vetoniemi
ed31d9d559
Merge pull request #77 from jubalh/err
Rename stdscr to stdscreen to prevent collision
2020-01-04 18:42:39 +09:00
Michael Vetter
0f6e1625b5 Rename stdscr to stdscreen to prevent collision
On my system I get:
```
[    3s] cd /home/abuild/rpmbuild/BUILD/bemenu-0.3.0/build/lib/renderers/x11 && /usr/bin/cc -DPANGO_DISABLE_DEPRECATED -D_GNU_SOURCE -Dbemenu_renderer_x11_EXPORTS -I/home/abuild/rpmbuild/BUI
LD/bemenu-0.3.0/build/lib -I/home/abuild/rpmbuild/BUILD/bemenu-0.3.0/lib/renderers/.. -I/home/abuild/rpmbuild/BUILD/bemenu-0.3.0/build/lib/renderers/x11 -I/usr/include/cairo -I/usr/include/g
lib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/uuid -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/inc
lude/fribidi  -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -g -DNDEBUG   -Wall
-Wextra -Wno-variadic-macros -Wno-long-long -O2 -g -DNDEBUG -fPIC   -std=c99 -o CMakeFiles/bemenu-renderer-x11.dir/xkb_unicode.c.o   -c /home/abuild/rpmbuild/BUILD/bemenu-0.3.0/lib/renderers
/x11/xkb_unicode.c
[    3s] [ 55%] Building C object lib/CMakeFiles/bemenu.dir/3rdparty/cdl.c.o
[    3s] cd /home/abuild/rpmbuild/BUILD/bemenu-0.3.0/build/lib && /usr/bin/cc -D_GNU_SOURCE -Dbemenu_EXPORTS -I/home/abuild/rpmbuild/BUILD/bemenu-0.3.0/build/lib  -O2 -Wall -D_FORTIFY_SOURCE
=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -g -DNDEBUG   -Wall -Wextra -Wno-variadic-macros -Wno-long-lo
ng -O2 -g -DNDEBUG -fPIC   -std=c99 -o CMakeFiles/bemenu.dir/3rdparty/cdl.c.o   -c /home/abuild/rpmbuild/BUILD/bemenu-0.3.0/lib/3rdparty/cdl.c
[    3s] In file included from /usr/include/ncurses.h:60,
[    3s]                  from /home/abuild/rpmbuild/BUILD/bemenu-0.3.0/lib/renderers/curses/curses.c:14:
[    3s] /home/abuild/rpmbuild/BUILD/bemenu-0.3.0/lib/renderers/curses/curses.c:27:13: error: field '_nc_stdscr' declared as a function
[    3s]    27 |     WINDOW *stdscr;
[    3s]       |             ^~~~~~
[    3s] /home/abuild/rpmbuild/BUILD/bemenu-0.3.0/lib/renderers/curses/curses.c: In function 'terminate':
[    3s] /home/abuild/rpmbuild/BUILD/bemenu-0.3.0/lib/renderers/curses/curses.c:97:19: error: lvalue required as left operand of assignment
[    3s]    97 |     curses.stdscr = NULL;
[    3s]       |                   ^
[    3s] /home/abuild/rpmbuild/BUILD/bemenu-0.3.0/lib/renderers/curses/curses.c: In function 'render':
[    3s] /home/abuild/rpmbuild/BUILD/bemenu-0.3.0/lib/renderers/curses/curses.c:190:28: error: lvalue required as left operand of assignment
[    3s]   190 |         if ((curses.stdscr = initscr()) == NULL)
[    3s]       |                            ^
```

`man stdscr` sais: "Upon  initializing curses, a default window called stdscr, which is the size of the terminal screen, is created.".

So it seems for some reason there happens a collision here.

Let's rename the window so this doesn't happen.
2019-12-27 14:47:06 +01:00
Jari Vetoniemi
bed158e6ce
Merge pull request #75 from t6/patch-version
Bump version to 0.3.0
2019-12-20 21:26:04 +09:00
Tobias Kortkamp
0c1e34cf81
Bump version to 0.3.0 2019-12-20 09:45:10 +01:00
Jari Vetoniemi
fedb1b0ab0 Use monospace 10 instead of fixed 9 by default
Matches the dmenu default, monospace instead of font name is more
robust.
2019-12-19 16:58:59 +02:00
Jari Vetoniemi
c9d9bcdaf5
Merge pull request #70 from lheckemann/hidpi
Handle HiDPI scaling on Wayland
2019-11-05 21:04:22 +09:00
Linus Heckemann
03c54c1d4b scaling: require scale > 0 2019-11-05 12:59:37 +01:00
Adrian Müller
1f1aebf26a Handle HiDPI scaling on Wayland 2019-11-05 10:13:34 +01:00
Jari Vetoniemi
14f7f02a7c Bump version to 0.2.0 2019-10-25 20:24:55 +09:00
Jari Vetoniemi
442d2833f4
Merge pull request #64 from khardix/man-page
Add man pages for bemenu binaries
2019-08-08 13:45:44 +09:00
Jan “Khardix” Staněk
40114d3cf6
Correct documentation of execution process 2019-08-07 19:18:02 +02:00
Jan Staněk
11b9187a68
Install man pages to expected location 2019-08-07 14:50:18 +02:00
Jan Staněk
29692e5fd0
Write man page for bemenu 2019-08-07 14:33:28 +02:00
Jari Vetoniemi
c6eda7f42b
Merge pull request #61 from sauyon/master
Add C-g shortcut to x11 and wayland
2019-07-15 09:52:44 +03:00
Sauyon Lee
c081cf7609
Add C-g shortcut to x11 and wayland 2019-07-13 00:46:18 +01:00
Jari Vetoniemi
f464f0e30a
Merge pull request #60 from toke/bugfix/upstream-59
Prevent a deadloop in PATH handling
2019-06-05 18:15:42 +03:00
Thomas Kerpe
5d787629a5 Prevent a deadloop in PATH handling
Empty PATH segments should no longer cause
a deadloop.

Fixes #59
2019-06-05 15:59:16 +02:00
Jari Vetoniemi
572470ef8c
Merge pull request #57 from alyssais/line-height
bemenu: add --line-height / -H option
2019-06-01 22:09:52 +03:00
Jari Vetoniemi
dac040f659
Merge pull request #58 from alyssais/gitignore
gitignore: add missing generated files
2019-06-01 22:07:48 +03:00
Alyssa Ross
93cde4831b
bemenu: add --line-height / -H option
Text is displayed vertically centered in a line. If unspecified, or 0,
the previous behaviour of making the height the size of the text, plus
two pixels on either side, is used, so there will be no change in
behaviour if this option is not used.

Fixes https://github.com/Cloudef/bemenu/issues/44.
2019-05-31 23:20:54 +00:00
Alyssa Ross
b2cad5685e
gitignore: add missing generated files 2019-05-31 20:38:09 +00:00
Jari Vetoniemi
121367b940
Merge pull request #56 from samihda/master
Fix typo
2019-05-05 15:50:15 +03:00
samihda
5f01531482 Fix typo 2019-05-03 17:36:21 +02:00
Jari Vetoniemi
f27e35eabc Revert "Use x_LINK_LIBRARIES instead of x_LIBRARIES"
This reverts commit 620ae69020.
2019-04-24 22:39:23 +03:00
Jari Vetoniemi
6cc18e381c
Merge pull request #52 from t6/patch-freebsd
FreeBSD support
2019-04-24 02:44:38 +03:00
Tobias Kortkamp
620ae69020
Use x_LINK_LIBRARIES instead of x_LIBRARIES
The libraries might not be in the linkers default search path, so
use absolute paths for them instead when using TARGET_LINK_LIBRARIES.

Note that XKBCOMMON_LIBRARIES is an alias for XKBCOMMON_LIBRARY and
already contains an absolute path.

Signed-off-by: Tobias Kortkamp <t@tobik.me>
2019-04-23 12:17:16 +02:00