]> git.mdlowis.com Git - proto/labwc.git/log
proto/labwc.git
4 years agocairo: Replace <cairo/cairo.h> by <cairo.h>
Johan Malm [Sat, 26 Jun 2021 17:28:27 +0000 (18:28 +0100)]
cairo: Replace <cairo/cairo.h> by <cairo.h>

See sway@d45623c2

4 years agomeson.build: fix style
Johan Malm [Sat, 26 Jun 2021 17:23:46 +0000 (18:23 +0100)]
meson.build: fix style

4 years agomeson: Use wrap files to manage dependencies
Ezequiel Garcia [Sat, 26 Jun 2021 09:41:03 +0000 (06:41 -0300)]
meson: Use wrap files to manage dependencies

This simplifies building as there's no need to manually
git clone subprojects anymore.

Building is now as simple as:

    meson build
    ninja -C build

In order to update the subprojects, meson provides:

    meson subprojects update

4 years agobuild: bump wlroots dependency to 0.15.0
Johan Malm [Sat, 26 Jun 2021 09:12:52 +0000 (10:12 +0100)]
build: bump wlroots dependency to 0.15.0

4 years agoxdg: chase swaywm/wlroots@9e58301df7f0
Jan Beich [Thu, 3 Jun 2021 18:06:49 +0000 (18:06 +0000)]
xdg: chase swaywm/wlroots@9e58301df7f0

src/xdg.c:269:48: error: no member named 'subsurfaces' in 'struct wlr_surface'
                wl_list_for_each(subsurface, &view->surface->subsurfaces,
                                              ~~~~~~~~~~~~~  ^
/usr/include/wayland-util.h:443:30: note: expanded from macro 'wl_list_for_each'
        for (pos = wl_container_of((head)->next, pos, member);  \
                                    ^~~~
/usr/include/wayland-util.h:409:32: note: expanded from macro 'wl_container_of'
        (__typeof__(sample))((char *)(ptr) -                            \
                                      ^~~

Based on https://github.com/swaywm/sway/commit/3162766eef14

4 years agolabwc-config(5): add followMouse and raiseOnFocus
Johan Malm [Fri, 28 May 2021 20:50:27 +0000 (21:50 +0100)]
labwc-config(5): add followMouse and raiseOnFocus

4 years agorcxml: fix typo
Johan Malm [Fri, 28 May 2021 20:31:02 +0000 (21:31 +0100)]
rcxml: fix typo

4 years agofocus: add basic follow mouse support
Mikhail Kshevetskiy [Wed, 26 May 2021 23:11:11 +0000 (02:11 +0300)]
focus: add basic follow mouse support

4 years agooutput: access texture width/height directly
Johan Malm [Mon, 17 May 2021 18:55:57 +0000 (19:55 +0100)]
output: access texture width/height directly

wlr_texture_get_size() is removed in wlroots@6369f709 so we have to
access width and height directly.

4 years agoREADME: update wlroots dependency + minor tweak to intro
Johan Malm [Sat, 17 Apr 2021 13:34:29 +0000 (14:34 +0100)]
README: update wlroots dependency + minor tweak to intro

4 years agomeson.build: require wlroots ['>=0.14.0', '<0.15.0']
Johan Malm [Sat, 17 Apr 2021 13:26:25 +0000 (14:26 +0100)]
meson.build: require wlroots ['>=0.14.0', '<0.15.0']

Also specify required version when using wlroots as subproject

4 years agomeson.build: require wayland-server >=1.19.0
Johan Malm [Sat, 17 Apr 2021 13:21:42 +0000 (14:21 +0100)]
meson.build: require wayland-server >=1.19.0

Fix typo - it previously said 0.19.0

4 years agomeson.build: update version
Johan Malm [Sat, 17 Apr 2021 13:18:52 +0000 (14:18 +0100)]
meson.build: update version

4 years agoUpdate NEWS.md
Johan Malm [Fri, 16 Apr 2021 19:52:26 +0000 (20:52 +0100)]
Update NEWS.md

4 years agomeson: unbreak with system wlroots after fd4ea3542fdc
Jan Beich [Thu, 15 Apr 2021 20:49:24 +0000 (20:49 +0000)]
meson: unbreak with system wlroots after fd4ea3542fdc

meson.build:50:2: ERROR: All keyword arguments must be after positional arguments.

4 years agoNEWS.md: fix typo
Johan Malm [Thu, 15 Apr 2021 20:49:52 +0000 (21:49 +0100)]
NEWS.md: fix typo

4 years agolabwc 0.2.0
Johan Malm [Thu, 15 Apr 2021 20:35:47 +0000 (21:35 +0100)]
labwc 0.2.0

4 years agoREADME: remove old scrot
Johan Malm [Thu, 15 Apr 2021 20:32:14 +0000 (21:32 +0100)]
README: remove old scrot

4 years agoNEWS.md: update for v0.2.0
Johan Malm [Thu, 15 Apr 2021 20:31:09 +0000 (21:31 +0100)]
NEWS.md: update for v0.2.0

4 years agoxdg: fix subsurface damage bug
Johan Malm [Thu, 15 Apr 2021 19:37:57 +0000 (20:37 +0100)]
xdg: fix subsurface damage bug

Create struct view_child for each wlr_surface subsurface on first view
map. Firefox doesn't damage properly without this.

4 years agotheme: move title_height to theme struct
Johan Malm [Thu, 15 Apr 2021 19:13:49 +0000 (20:13 +0100)]
theme: move title_height to theme struct

title_height is a derived variable which needs both config and theme
variables (font height and title padding). The code is tidier calling
post_processing() for this from theme_init()

4 years agotheme: update built-in theme colors
Johan Malm [Sat, 10 Apr 2021 18:30:39 +0000 (19:30 +0100)]
theme: update built-in theme colors

Use #dddad6 for active title/border and #f6f5f4 for inactive.
It matches default GTK colors reasonably well.

4 years agotheme: fix pattern match bug
Johan Malm [Sat, 10 Apr 2021 18:17:39 +0000 (19:17 +0100)]
theme: fix pattern match bug

Remove 'else' from if-statements in order for the pattern match to apply
to more than just the first instance of each match.

4 years agotheme: add window.inactive.border.color
Johan Malm [Sat, 10 Apr 2021 18:11:29 +0000 (19:11 +0100)]
theme: add window.inactive.border.color

4 years agotheme: add window.active.border.color
Johan Malm [Sat, 10 Apr 2021 17:40:43 +0000 (18:40 +0100)]
theme: add window.active.border.color

This replaces window.active.handle.bg.color which will no longer be
supported.

4 years agoREADME: fix typo and refactor links
Johan Malm [Sat, 10 Apr 2021 08:30:48 +0000 (09:30 +0100)]
README: fix typo and refactor links

4 years agoREADME: turn configure section into a table
Johan Malm [Sat, 10 Apr 2021 08:20:10 +0000 (09:20 +0100)]
README: turn configure section into a table

4 years agolabwc(1): minor re-wording
Johan Malm [Sat, 10 Apr 2021 08:19:35 +0000 (09:19 +0100)]
labwc(1): minor re-wording

4 years agoAdd example autostart and environment files
Johan Malm [Sat, 10 Apr 2021 08:18:30 +0000 (09:18 +0100)]
Add example autostart and environment files

4 years agoAdd labwc-environment(5)
Johan Malm [Sat, 10 Apr 2021 08:17:41 +0000 (09:17 +0100)]
Add labwc-environment(5)

4 years agoREADME/meson.build: update dependencies
Johan Malm [Sat, 10 Apr 2021 07:30:56 +0000 (08:30 +0100)]
README/meson.build: update dependencies

4 years agoREADME: update "what" section
Johan Malm [Sat, 10 Apr 2021 07:27:47 +0000 (08:27 +0100)]
README: update "what" section

4 years agoREADME: fix typo
Johan Malm [Sat, 10 Apr 2021 07:14:33 +0000 (08:14 +0100)]
README: fix typo

4 years agoseat: remove warning for libinput finger count
Johan Malm [Thu, 8 Apr 2021 16:09:06 +0000 (17:09 +0100)]
seat: remove warning for libinput finger count

4 years agoREADME: update acceptance criteria section
Johan Malm [Tue, 30 Mar 2021 21:43:05 +0000 (22:43 +0100)]
README: update acceptance criteria section

4 years agos/LAB_ADAPTIVE_SYNC/LABWC_ADAPTIVE_SYNC/
Johan Malm [Tue, 30 Mar 2021 21:41:17 +0000 (22:41 +0100)]
s/LAB_ADAPTIVE_SYNC/LABWC_ADAPTIVE_SYNC/

Use the the prefix LABWC_ for environment variable to increase
consistency.

4 years agorcxml: simplify debugging nodenames
Johan Malm [Tue, 30 Mar 2021 21:40:41 +0000 (22:40 +0100)]
rcxml: simplify debugging nodenames

4 years agoconfig: add <theme><cornerRadius>
Johan Malm [Tue, 30 Mar 2021 21:39:52 +0000 (22:39 +0100)]
config: add <theme><cornerRadius>

4 years agoREADME: update progress summary
Johan Malm [Mon, 29 Mar 2021 18:36:46 +0000 (19:36 +0100)]
README: update progress summary

4 years agoseat: add missing damage_all_outputs()
Johan Malm [Mon, 29 Mar 2021 18:35:25 +0000 (19:35 +0100)]
seat: add missing damage_all_outputs()

4 years agotheme: support border.width
Johan Malm [Sat, 27 Mar 2021 21:09:45 +0000 (21:09 +0000)]
theme: support border.width

4 years agoAdded support for rounded corners
Johan Malm [Sat, 27 Mar 2021 21:04:12 +0000 (21:04 +0000)]
Added support for rounded corners

4 years agocursor: damage output on pressing view
Johan Malm [Fri, 26 Mar 2021 20:12:01 +0000 (20:12 +0000)]
cursor: damage output on pressing view

4 years agooutput: optionally call wlr_output_enable_adaptive_sync()
Johan Malm [Mon, 22 Mar 2021 21:25:51 +0000 (21:25 +0000)]
output: optionally call wlr_output_enable_adaptive_sync()

Set environment variable LAB_ADAPTIVE_SYNC to enable adaptive sync.

4 years agoCreate a linked list of SSD for each view
Johan Malm [Sun, 21 Mar 2021 21:46:16 +0000 (21:46 +0000)]
Create a linked list of SSD for each view

4 years agoview: scale maximize geometry correctly
Johan Malm [Sun, 21 Mar 2021 21:06:45 +0000 (21:06 +0000)]
view: scale maximize geometry correctly

4 years agoAdd ssd.h
Johan Malm [Sun, 21 Mar 2021 20:54:55 +0000 (20:54 +0000)]
Add ssd.h

4 years agoREADME: add link to labwc-menu(5)
Johan Malm [Sat, 20 Mar 2021 14:42:23 +0000 (14:42 +0000)]
README: add link to labwc-menu(5)

4 years agoRename deco.c ssd.c
Johan Malm [Sat, 20 Mar 2021 14:41:39 +0000 (14:41 +0000)]
Rename deco.c ssd.c

4 years agoview: refactor view_maximize()
Johan Malm [Sat, 20 Mar 2021 14:36:40 +0000 (14:36 +0000)]
view: refactor view_maximize()

4 years agoxdg: improve positioning of new xdg-toplevel views
Johan Malm [Sat, 20 Mar 2021 14:30:45 +0000 (14:30 +0000)]
xdg: improve positioning of new xdg-toplevel views

Top/left align topmost parent.
Center-align children relative to parent.

4 years agoview: scale view_maximize()
Johan Malm [Sat, 20 Mar 2021 14:26:32 +0000 (14:26 +0000)]
view: scale view_maximize()

4 years agooutput: scale sdd and menu
Johan Malm [Sat, 20 Mar 2021 14:24:31 +0000 (14:24 +0000)]
output: scale sdd and menu

4 years agoAdd labwc-menu(5)
Johan Malm [Fri, 19 Mar 2021 21:20:54 +0000 (21:20 +0000)]
Add labwc-menu(5)

4 years agoREADME: link to man pages in raw format to improve readability
Johan Malm [Thu, 18 Mar 2021 21:43:13 +0000 (21:43 +0000)]
README: link to man pages in raw format to improve readability

4 years agoREADME: minor appearance tweaks
Johan Malm [Thu, 18 Mar 2021 21:42:37 +0000 (21:42 +0000)]
README: minor appearance tweaks

4 years agoREADME: update aims
Johan Malm [Thu, 18 Mar 2021 21:41:54 +0000 (21:41 +0000)]
README: update aims

4 years agosession.h: update session_environment_init() comment
Johan Malm [Thu, 18 Mar 2021 19:39:08 +0000 (19:39 +0000)]
session.h: update session_environment_init() comment

4 years agomeson.build: add rev-parse to version number
Johan Malm [Wed, 17 Mar 2021 21:21:49 +0000 (21:21 +0000)]
meson.build: add rev-parse to version number

4 years agoxdg: start unmaximized
Johan Malm [Wed, 17 Mar 2021 20:56:03 +0000 (20:56 +0000)]
xdg: start unmaximized

Some xdg-shell applications remember the (un)maximized states when last
closed. We could honour this state, but it makes the code cumbersome
regarding padding and position. Prefer to keep it simple.

4 years agoREADME: update table-of-contents
Johan Malm [Tue, 16 Mar 2021 21:27:10 +0000 (21:27 +0000)]
README: update table-of-contents

4 years agoREADME: add link to acceptance criteria
Johan Malm [Tue, 16 Mar 2021 21:25:01 +0000 (21:25 +0000)]
README: add link to acceptance criteria

4 years agomeson.build: remove -Wno-enum-compare
Johan Malm [Mon, 15 Mar 2021 18:11:44 +0000 (18:11 +0000)]
meson.build: remove -Wno-enum-compare

4 years agoREADME.md: update dependecy versions
Johan Malm [Mon, 15 Mar 2021 18:09:36 +0000 (18:09 +0000)]
README.md: update dependecy versions

4 years agomeson.build: add drm dependency for drm_fourcc.h
Johan Malm [Sat, 13 Mar 2021 23:33:32 +0000 (23:33 +0000)]
meson.build: add drm dependency for drm_fourcc.h

4 years agomeson: require wlroots 0.13.0 after 15ebd2529477
Jan Beich [Sat, 13 Mar 2021 21:09:54 +0000 (21:09 +0000)]
meson: require wlroots 0.13.0 after 15ebd2529477

src/server.c:93:61: error: too few arguments to function call, expected 2, have 1
        server->backend = wlr_backend_autocreate(server->wl_display);
                          ~~~~~~~~~~~~~~~~~~~~~~                   ^
subprojects/wlroots/include/wlr/backend.h:43:21: note: 'wlr_backend_autocreate' declared here
struct wlr_backend *wlr_backend_autocreate(struct wl_display *display,
                    ^
src/xdg.c:180:2: warning: implicit declaration of function 'wlr_xdg_surface_for_each_popup_surface' is invalid in C99 [-Wimplicit-function-declaration]
        wlr_xdg_surface_for_each_popup_surface(view->xdg_surface, iterator, data);
        ^
ld: error: undefined symbol: wlr_xdg_surface_for_each_popup_surface
>>> referenced by xdg.c:180 (src/xdg.c:180)
>>>               labwc.p/src_xdg.c.o:(xdg_toplevel_view_for_each_popup_surface)

4 years agomenu,xbm: chase swaywm/wlroots@27fba3df4347
Jan Beich [Sat, 13 Mar 2021 21:08:14 +0000 (21:08 +0000)]
menu,xbm: chase swaywm/wlroots@27fba3df4347

$ labwc
[...]
00:00:00.063 [render/gles2/texture.c:162] Unsupported pixel format 0x0
00:00:00.063 [render/gles2/texture.c:162] Unsupported pixel format 0x0
00:00:00.063 [render/gles2/texture.c:162] Unsupported pixel format 0x0
00:00:00.063 [render/gles2/texture.c:162] Unsupported pixel format 0x0
00:00:00.063 [render/gles2/texture.c:162] Unsupported pixel format 0x0
00:00:00.063 [render/gles2/texture.c:162] Unsupported pixel format 0x0
00:00:00.064 [render/gles2/texture.c:162] Unsupported pixel format 0x0
00:00:00.064 [render/gles2/texture.c:162] Unsupported pixel format 0x0
00:00:00.064 [render/gles2/texture.c:162] Unsupported pixel format 0x0
00:00:00.064 [render/gles2/texture.c:162] Unsupported pixel format 0x0

Based on https://github.com/swaywm/sway/commit/66343839b146

4 years agoxdg: chase swaywm/wlroots@f574ca934c80
Jan Beich [Sat, 13 Mar 2021 21:07:11 +0000 (21:07 +0000)]
xdg: chase swaywm/wlroots@f574ca934c80

src/xdg.c:180:2: warning: implicit declaration of function 'wlr_xdg_surface_for_each_popup' is invalid in C99 [-Wimplicit-function-declaration]
        wlr_xdg_surface_for_each_popup(view->xdg_surface, iterator, data);
        ^
ld: error: undefined symbol: wlr_xdg_surface_for_each_popup
>>> referenced by xdg.c:180 (src/xdg.c:180)
>>>               labwc.p/src_xdg.c.o:(xdg_toplevel_view_for_each_popup)

Based on https://github.com/swaywm/sway/commit/5438cc158a1b

4 years agoserver: chase swaywm/wlroots@4b03bdc3ab0c
Jan Beich [Sat, 13 Mar 2021 21:03:33 +0000 (21:03 +0000)]
server: chase swaywm/wlroots@4b03bdc3ab0c

src/server.c:93:63: error: too many arguments to function call, expected single argument 'display', have 2 arguments
        server->backend = wlr_backend_autocreate(server->wl_display, NULL);
                          ~~~~~~~~~~~~~~~~~~~~~~                     ^~~~
/usr/include/sys/_null.h:34:14: note: expanded from macro 'NULL'
 #define NULL    ((void *)0)
                 ^~~~~~~~~~~
/usr/local/include/wlr/backend.h:35:21: note: 'wlr_backend_autocreate' declared here
struct wlr_backend *wlr_backend_autocreate(struct wl_display *display);
                    ^

Based on https://github.com/swaywm/sway/commit/53f5197c26f1

4 years agooutput: simplify render_cycle_box()
Johan Malm [Sat, 13 Mar 2021 11:20:47 +0000 (11:20 +0000)]
output: simplify render_cycle_box()

4 years agoview: only (un)maximize when required
Johan Malm [Fri, 12 Mar 2021 21:27:17 +0000 (21:27 +0000)]
view: only (un)maximize when required

4 years agoxdg: update padding on commit
Johan Malm [Fri, 12 Mar 2021 21:23:46 +0000 (21:23 +0000)]
xdg: update padding on commit

Maximize/unmaximize changes padding on XDG-shell views with CSD, so we
need to update padding to render cycle-view decoration correctly.

5 years agoxdg: on init, set maximize according to wlr_xdg_surface status
Johan Malm [Mon, 8 Mar 2021 21:56:57 +0000 (21:56 +0000)]
xdg: on init, set maximize according to wlr_xdg_surface status

5 years agoREADME: fix formatting
Johan Malm [Mon, 8 Mar 2021 21:54:23 +0000 (21:54 +0000)]
README: fix formatting

5 years agoREADME: add kanshi and wlr-randr to suggested apps
Johan Malm [Mon, 8 Mar 2021 21:33:30 +0000 (21:33 +0000)]
README: add kanshi and wlr-randr to suggested apps

5 years agoREADME: set scrot sizes
Johan Malm [Mon, 8 Mar 2021 21:24:44 +0000 (21:24 +0000)]
README: set scrot sizes

5 years agoREADME: move install notes to wiki
Johan Malm [Mon, 8 Mar 2021 21:21:21 +0000 (21:21 +0000)]
README: move install notes to wiki

5 years agoMerge branch 'master' of https://github.com/johanmalm/labwc
Johan Malm [Mon, 8 Mar 2021 07:06:17 +0000 (07:06 +0000)]
Merge branch 'master' of https://github.com/johanmalm/labwc

5 years agooutput: set layout-coords coorectly for cycle box
Johan Malm [Mon, 8 Mar 2021 07:05:47 +0000 (07:05 +0000)]
output: set layout-coords coorectly for cycle box

5 years agodocs: Add Fedora installation instructions
Artem Polishchuk [Sun, 7 Mar 2021 19:25:04 +0000 (21:25 +0200)]
docs: Add Fedora installation instructions

5 years agointeractive.c: do not allow move/resize when maximized
Johan Malm [Sat, 6 Mar 2021 18:34:52 +0000 (18:34 +0000)]
interactive.c: do not allow move/resize when maximized

5 years agooutput.c: fix formatting
Johan Malm [Sat, 6 Mar 2021 18:30:53 +0000 (18:30 +0000)]
output.c: fix formatting

5 years agoMerge pull request #21 from apbryan/output-management
Johan Malm [Sat, 6 Mar 2021 18:15:48 +0000 (18:15 +0000)]
Merge pull request #21 from apbryan/output-management

Output management

5 years agoAdd NEWS.md and update README.md
Johan Malm [Sat, 6 Mar 2021 11:45:45 +0000 (11:45 +0000)]
Add NEWS.md and update README.md

5 years agomain.c: add -v, -V, -d command line options
Johan Malm [Sat, 6 Mar 2021 11:38:17 +0000 (11:38 +0000)]
main.c: add -v, -V, -d command line options

5 years agoConvert man pages from md to scd
Johan Malm [Fri, 5 Mar 2021 22:14:02 +0000 (22:14 +0000)]
Convert man pages from md to scd

5 years agothemerc: fix syntax inconsistency
Johan Malm [Thu, 4 Mar 2021 20:30:23 +0000 (20:30 +0000)]
themerc: fix syntax inconsistency

5 years agorc.xml: add A-F3 for bemenu-run to reflect defaults
Johan Malm [Thu, 4 Mar 2021 20:29:28 +0000 (20:29 +0000)]
rc.xml: add A-F3 for bemenu-run to reflect defaults

5 years agomenu.xml: format XML better
Johan Malm [Thu, 4 Mar 2021 20:28:38 +0000 (20:28 +0000)]
menu.xml: format XML better

5 years agodocs: move manpages to proper section directories
Jan Beich [Thu, 4 Mar 2021 06:21:45 +0000 (06:21 +0000)]
docs: move manpages to proper section directories

Arbitrary sections may not be supported by all man(1) implementations.
labwc manpages have numeric sections but installed in the wrong place:

$ meson setup --prefix=/usr _build && meson install -C _build
[...]
Installing docs/labwc.1 to /usr/share/man/man.1
Installing docs/labwc-config.5 to /usr/share/man/man-config.5
Installing docs/labwc-theme.5 to /usr/share/man/man-theme.5
Installing docs/labwc-actions.5 to /usr/share/man/man-actions.5
[...]

5 years agoAdd man-pages option like swaywm/sway@ba16f16e4d5a
Jan Beich [Thu, 4 Mar 2021 00:56:37 +0000 (00:56 +0000)]
Add man-pages option like swaywm/sway@ba16f16e4d5a

5 years agocursor: cursor_name fix
Johan Malm [Wed, 3 Mar 2021 21:19:52 +0000 (21:19 +0000)]
cursor: cursor_name fix

The current implementation detects resize edges over the wlr_surface,
sometimes preventing the correct cursor_name to be set.

5 years agoview-child: extend damage
Johan Malm [Wed, 3 Mar 2021 20:54:44 +0000 (20:54 +0000)]
view-child: extend damage

5 years agoxdg-popup: extend damage
Johan Malm [Wed, 3 Mar 2021 20:51:19 +0000 (20:51 +0000)]
xdg-popup: extend damage

5 years agoview-child: do not damage on finish
Johan Malm [Wed, 3 Mar 2021 20:42:34 +0000 (20:42 +0000)]
view-child: do not damage on finish

5 years agoCreate xdg-deco.c
Johan Malm [Tue, 2 Mar 2021 20:53:03 +0000 (20:53 +0000)]
Create xdg-deco.c

5 years agoxdg-popup: uncontrain popups
Johan Malm [Tue, 2 Mar 2021 20:51:32 +0000 (20:51 +0000)]
xdg-popup: uncontrain popups

5 years agoHandle wlr_surface->events.new_subsurface
Johan Malm [Tue, 2 Mar 2021 20:37:23 +0000 (20:37 +0000)]
Handle wlr_surface->events.new_subsurface

Add view-child.c, xdg-popup.c, subsurface.c in order to track damage
associated with new XDG subsurfaces.

5 years agoUpdate README.md
Johan Malm [Mon, 1 Mar 2021 18:41:01 +0000 (18:41 +0000)]
Update README.md

5 years agoSet default A-F3 binding to bemenu instead of dmenu
Johan Malm [Mon, 1 Mar 2021 18:40:11 +0000 (18:40 +0000)]
Set default A-F3 binding to bemenu instead of dmenu