Johan Malm
fd8d9a395d
mv xbm/ ..
2020-08-31 20:01:08 +01:00
Johan Malm
a042aad9f6
xwl.c: only add surfaces to view-list on first map
...
X11 apps produce surfaces which are never mapped. Excluding these from
the view-list simplifices the code.
2020-08-31 08:33:23 +01:00
Johan Malm
7afc189c06
common/dir.c: do not include openbox/ dirs
...
It is better to be explicit with config files and only using those
specifically intended for labwc. Whilst compatibility with openbox is
intended, there are areas where it just doesn't make sense to include
settings intended for openbox, for example in the case of
$HOME/.config/openbox/autostart
With built-in icons and theme/config settings, it should be easy for new
users to get started without spending time on config files anyway.
2020-08-31 08:17:34 +01:00
Johan Malm
127eddfd96
Handle commit signal
...
wlr_surface can change during xwayland map/unmap, so let's only update
view width and height after commit signal has been received.
2020-08-31 08:12:44 +01:00
Johan Malm
83331e57ed
Support inactive unpressed icons
2020-08-21 20:35:06 +01:00
Johan Malm
e62c251a74
common/dir.c: fix double free
2020-08-21 20:01:08 +01:00
Johan Malm
cda27da33e
theme: set sane values if no theme found
2020-08-21 19:54:28 +01:00
Johan Malm
e25118d8ec
rcxml: set empty variables in post_processing()
...
Avoid crash if no config file can be found
2020-08-21 19:47:50 +01:00
Johan Malm
5122a9be69
Support icon colors
...
xbm/parse: support specifiying color when loading icon
theme.c: parse window.active.button.unpressed.image.color
2020-08-21 19:43:34 +01:00
Johan Malm
4f96230ebf
view: add defence
2020-08-20 21:13:37 +01:00
Johan Malm
a72c40a6b4
Move xwl_nr_parents()
2020-08-20 21:13:04 +01:00
Johan Malm
814ea5cb11
deco: add missing return type
2020-08-19 21:06:27 +01:00
Johan Malm
eabeb70081
xwl: tidy up linked lists on destroy
2020-08-19 20:52:27 +01:00
Johan Malm
41b60e1cae
src/deco.c: add some defence
2020-08-19 20:51:26 +01:00
Johan Malm
44d8245cfc
src/view.c: focus_view() handle xwayland children
2020-08-19 20:47:49 +01:00
Johan Malm
40c606a78d
src/view.c: refactor is_toplevel()
2020-08-19 20:27:28 +01:00
Johan Malm
fd20570861
common/dir.c: add strfreev()
2020-08-18 20:15:14 +01:00
Johan Malm
66b490d853
main.c: release default font map on exit
2020-08-18 20:07:14 +01:00
Johan Malm
759b8e2757
common/font.c: add cairo_destroy()
2020-08-14 17:57:18 +01:00
Johan Malm
68fb8a3af5
rcxml: add rcxml_finish()
2020-08-13 20:20:44 +01:00
Johan Malm
c6c73366d2
view: is_toplevel() deal with !view
2020-08-12 19:44:54 +01:00
Johan Malm
fc2754ac89
xbm/parse: use uint32 instead of int for << 24
2020-08-12 19:42:59 +01:00
Johan Malm
2a17df0f8b
Add log.c with info() and warn()
2020-08-12 19:37:44 +01:00
Johan Malm
5ea1527558
xbm: parse_xbm_builtin() remove hard-coded values
2020-08-11 21:45:52 +01:00
Johan Malm
5dbc87a1f9
xbm: remove "loading" message
2020-08-11 21:28:59 +01:00
Johan Malm
f1b4aaa89f
xbm/parse: covert rgba to uint32 correctly
2020-08-11 21:20:38 +01:00
Johan Malm
f635d834ee
rcxml: remove "[bind]" message
2020-08-11 21:12:02 +01:00
Johan Malm
ce2dc46855
server: fix wlr_xcursor_manager_load() ret val
...
Return value changed in wlroots 0.11.0
2020-08-11 21:07:23 +01:00
Johan Malm
f003abf608
Simplify and merge {config,theme}-dir.c
2020-08-10 17:24:17 +01:00
Johan Malm
fc6fca6945
src/theme/theme-dir.c: support colon separated XDG_* env vars
2020-08-07 20:40:46 +01:00
Johan Malm
ff03f1d6aa
src/view.c: refactor
2020-08-07 20:39:11 +01:00
Johan Malm
f199fc4779
tokenize.c, parse.c: rename functions
2020-08-06 15:09:13 +01:00
Johan Malm
6627a47305
s/xbm_read_file()/grab_file/()
2020-08-06 15:01:08 +01:00
Johan Malm
042c157378
Track server-side-decoration per view
2020-08-06 14:51:45 +01:00
Johan Malm
44df6c896d
view.c: tweak view_want_deco()
2020-08-05 20:54:15 +01:00
Johan Malm
2297e43cc0
Base rc.title_height on font vertical extents
2020-08-05 20:14:17 +01:00
Johan Malm
4d1363dcae
include/: refactor header files more
2020-08-03 20:56:38 +01:00
Johan Malm
53266a0d5a
include/: refactor header files
2020-07-31 21:31:03 +01:00
Johan Malm
82dc192217
rcxml.c: parse font name+size for ActiveWindow
...
For example:
<theme>
<font place="ActiveWindow">
<name>sans</name>
<size>8</size>
</font>
</theme>
2020-07-31 11:11:50 +01:00
Johan Malm
ff8b5e9c74
theme.c: support wildcard (*) match
2020-07-27 20:54:00 +01:00
Johan Malm
d7d838d682
src/main.c: read themerc specified by rc.xml
2020-07-20 19:53:03 +01:00
Johan Malm
ccc818fda5
Add src/config/config-dir.c
2020-07-18 11:28:39 +01:00
Johan Malm
7fc643fdb9
src/main.c: add usage()
2020-07-16 20:16:43 +01:00
Johan Malm
8a42bc9184
xbm.c: refactor and load builtin icons as fallback
2020-07-13 20:09:34 +01:00
Johan Malm
1330071e0c
Load close.xbm based on rc.xml theme name
2020-07-09 22:41:54 +01:00
Johan Malm
f7fa28ab42
Render close, iconify and maximize buttons
2020-07-06 21:58:51 +01:00
Johan Malm
e1b86555f4
src/theme/xbm/parse.c: refactor
2020-07-03 22:03:44 +01:00
Johan Malm
baca410560
Render window close button
2020-06-29 19:27:59 +01:00
Johan Malm
40e862f3ac
src/theme/xbm/parse.c: generate cairo_surface
2020-06-26 21:52:38 +01:00
Johan Malm
f86394a997
Add src/theme/xbm/parse.c
2020-06-23 07:17:07 +01:00