Commit graph

2441 commits

Author SHA1 Message Date
Johan Malm
afaf78aa72 view: refactor view_next() 2020-09-07 19:47:11 +01:00
Johan Malm
b8fd4fed53 xwayland.c: add view to list in new/destroy 2020-09-07 19:34:11 +01:00
Johan Malm
8846998b75 mv xwl.c xwayland.c 2020-09-04 20:32:41 +01:00
Johan Malm
8e7f2e78cd Add xwayland-unmanaged.c
Handle xwayland override_direct surfaces separately from the view
struct - in order to simplify code, particularly in view.c
2020-09-04 20:25:20 +01:00
Johan Malm
d831743b25 xdg,xwl: rename functions 2020-09-03 21:40:27 +01:00
Johan Malm
bf3e4aa8d5 Add view_impl .map and .unmap
Hook up iconify button to view->impl->unmap
2020-09-03 21:05:00 +01:00
Johan Malm
b2504bdf9a keybind: s/add/create/ 2020-09-02 21:05:28 +01:00
Johan Malm
97c29987e2 deco.c: add enum end-marker 2020-09-02 21:04:31 +01:00
Johan Malm
625722cb66 Add view_impl .close 2020-09-02 21:00:28 +01:00
Johan Malm
b99977368d view.c: simplify view_at() 2020-09-02 20:26:18 +01:00
Johan Malm
c56fe23b2e Add struct view_impl
Support .configure
2020-09-02 20:20:52 +01:00
Johan Malm
d9b1d24919 mv dbg.c .. 2020-08-31 20:04:47 +01:00
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