Commit graph

801 commits

Author SHA1 Message Date
Daniel Eklöf
fe7128030f cmake: make sure we check for *all* xcb libs we need 2019-01-20 15:16:14 +01:00
Daniel Eklöf
7f320353b5 ci: build both debug and release 2019-01-20 14:37:25 +01:00
Daniel Eklöf
9e2ebf3cab module/network: thrd_t isn't an integer in musl 2019-01-20 14:30:39 +01:00
Daniel Eklöf
6c9f8777b3 ci: more deps 2019-01-20 14:26:03 +01:00
Daniel Eklöf
d0bd6bf864 ci: more deps 2019-01-20 14:24:07 +01:00
Daniel Eklöf
5364d4dbda ci: more deps 2019-01-20 14:20:36 +01:00
Daniel Eklöf
467aac8522 ci: do we need musl-dev? 2019-01-20 14:18:33 +01:00
Daniel Eklöf
413bffe55c ci: ubuntu sucks 2019-01-20 14:16:50 +01:00
Daniel Eklöf
fbb283cc34 ci: ubuntu 18.10 has outdated libs. Try 19.04 (devel) 2019-01-20 14:04:25 +01:00
Daniel Eklöf
8c07a50c5b ci: pull in i3-wm 2019-01-20 13:59:04 +01:00
Daniel Eklöf
378151c225 ci: pull in libxcb-ewmh-dev 2019-01-20 13:54:58 +01:00
Daniel Eklöf
50ef9fceb2 ci: gcc image's glibc is too old, try with ubuntu 18.10 2019-01-20 13:51:50 +01:00
Daniel Eklöf
10709da832 ci: way too much overhead to create a job
Just run configure and make in the same job
2019-01-20 13:44:13 +01:00
Daniel Eklöf
2ffedb9c48 ci: don't run configure and build jobs in the same stage 2019-01-20 13:39:55 +01:00
Daniel Eklöf
ccfb318212 decorations: cmake: we don't *really* need 3.13 2019-01-20 13:36:06 +01:00
Daniel Eklöf
20f44814cb ci: last dependency? 2019-01-20 13:34:26 +01:00
Daniel Eklöf
62134e628a ci: even more dependencies 2019-01-20 13:32:03 +01:00
Daniel Eklöf
cc049f0686 ci: more and better dependencies 2019-01-20 13:25:15 +01:00
Daniel Eklöf
8da8adc4c4 ci: install more dependencies 2019-01-20 13:10:03 +01:00
Daniel Eklöf
2b3d432164 cmake: we don't *really* need 3.13 2019-01-20 13:07:38 +01:00
Daniel Eklöf
b92134dd0d ci: install cmake in before_script, don't use ninja 2019-01-20 13:01:20 +01:00
Daniel Eklöf
b173f36e7e gitlab-ci: initial commit 2019-01-20 12:52:15 +01:00
Daniel Eklöf
4f5e22e231 module/xwindow: de-registering events from active window may fail
De-registering events from the previous active window may fail (when
the previous window has been destroyed).

Catch this early, and only log a debug message. This avoids having a
normal occurrence polluting the output with error messages.
2019-01-20 12:04:29 +01:00
Daniel Eklöf
d86c9914e5 module/mpd: silence overflow warning 2019-01-20 11:35:20 +01:00
Daniel Eklöf
fa7a2f90a5 PKGBUILD: add dependencies
For now, we *require* everything.

We _could_ modify the build system to exclude modules whose
dependencies haven't been met. That would allow us to make some of the
dependencies optional.
2019-01-20 11:17:22 +01:00
Daniel Eklöf
383e03127a PKGBUILD: new 2019-01-20 10:33:28 +01:00
Daniel Eklöf
498a3e3d78 particle/string: free glyphs and clusters in destroy() 2019-01-20 10:06:17 +01:00
Daniel Eklöf
5a0d192ec1 particle/string: re-use glyphs calculated in begin_expose()
In begin_expose(), we call cairo_scaled_font_text_to_glyphs()
with (x,y) = (0,0), in order to calculate the glyph extents (needed
for width calculation).

Then, in expose(), we called it again, but with correct (x,y) offsets.

Simplify this, by caching the glyphs from begin_expose(). Then, in
expose(), simply adjust the glyph offsets before calling
cairo_show_text_glyphs().
2019-01-20 10:02:13 +01:00
Daniel Eklöf
b1453fd65e font: simplify configuration format; it's just a string now 2019-01-20 09:51:44 +01:00
Daniel Eklöf
314b43b4f0 main: initialize locale
This affects e.g. the clock module, which (by default) formats the
date according to the locale's preferred format.
2019-01-19 20:50:02 +01:00
Daniel Eklöf
bfa9ce9970 particle/ramp: value is *also* offsetted by the minimum value 2019-01-19 20:17:26 +01:00
Daniel Eklöf
cffb007009 module/alsa: handle failure(s) to attach to card or find mixer 2019-01-19 19:58:02 +01:00
Daniel Eklöf
fbb6cd47c4 module/xkb: log all available layouts at startup 2019-01-19 18:54:31 +01:00
Daniel Eklöf
dff3104c85 misc: make use of the xcb-aux library 2019-01-19 18:47:34 +01:00
Daniel Eklöf
9d5bbe0566 misc: xcb_connect() always returns a non-NULL pointer
Instead, we need to check if xcb_connection_has_error() says something
went wrong. We also need to call xcb_disconnect() on the disfunctional
XCB connection object.
2019-01-19 18:45:15 +01:00
Daniel Eklöf
406d6b3b83 module/backlight: fix logging name 2019-01-19 17:06:23 +01:00
Daniel Eklöf
174b1f05e0 module/xkb: log initial state 2019-01-19 17:05:34 +01:00
Daniel Eklöf
502c2bd746 module/network: remove debug logging 2019-01-19 17:01:38 +01:00
Daniel Eklöf
e6745f55dd module/mpd: socket may already exist, but not be connectable 2019-01-19 17:00:08 +01:00
Daniel Eklöf
cecd5d3e6f module/mpd: use inotify, when possible, to watch for MPD socket creation
When we're connecting to a unix domain socket, use inotify to watch
for it's creation, instead of trying to re-connect over and over
again.
2019-01-19 13:49:58 +01:00
Daniel Eklöf
4ff9af1ebd module/xkb: add define for debug logging, but don't enable it 2019-01-19 13:49:44 +01:00
Daniel Eklöf
01be29d660 module/xkb: update scroll lock state on indicator state notify event 2019-01-19 13:22:40 +01:00
Daniel Eklöf
925dfb736a module/xkb: implement indicator state
For now, we only expose caps-, num- and scroll-lock, as booleans.
2019-01-19 12:30:07 +01:00
Daniel Eklöf
7bb849bdf4 xcb: use strncpy() to extract atom name 2019-01-19 12:18:54 +01:00
Daniel Eklöf
04f7f3485f particle/string: don't cut in the middle of an utf-8 multibyte
When limiting a string (due to it exceeding it's max length), make
sure not to cut it in the middle of an utf-8 multibyte, as this
results in an invalid utf-8 string.
2019-01-17 20:44:51 +01:00
Daniel Eklöf
09270c4670 particle/string: handle conversion failures in cairo_scaled_font_text_to_glyphs()
In particular, use cairo_scaled_font_text_to_glyphs() to calculate the
extents, since the cairo_scaled_font_text_extents() will leave the
scaled font in an error state, which is impossible to recuperate from.
2019-01-17 20:18:46 +01:00
Daniel Eklöf
1bbdaf145f module/xwindow: add missing break to switch case 2019-01-17 20:17:04 +01:00
Daniel Eklöf
64c366c051 xcb: cleanup err message generated by xcb_error() 2019-01-16 19:02:32 +01:00
Daniel Eklöf
85d1971ac3 module/i3: read socket path from root window's I3_SOCKET_PATH property
This way, we don't have to execute another process just to get the
path.
2019-01-16 17:22:13 +01:00
Daniel Eklöf
dc7fde335e main: refactor 2019-01-16 17:22:08 +01:00