Consolatis
f13fbd7aa6
CI: add FreeBSD runner
...
Fixes #413
2022-06-23 22:37:20 +02:00
Johan Malm
6f93c9981b
README: add link to website
2022-06-22 21:19:50 +01:00
Johan Malm
3f10880545
README: update links to scope document
2022-06-22 21:12:54 +01:00
Consolatis
c49f4e735d
src/action.c: Fix includes for kill() and getpid()
...
Fixes #410
2022-06-22 01:19:43 +02:00
Consolatis
69350b676b
CI: add Void Linux in musl variant
2022-06-22 01:06:54 +02:00
Flrian
1eab4b5269
src/osd.c: fix max text width
...
Making sure long window titles don't overflow the selection box
Closes issue #406
Written-by: @johanmalm
2022-06-19 21:03:43 +01:00
Consus
ca56357b5f
workspaces: Allow switching/sending to the last used workspace
...
Actions GoToDesktop and SendToDesktop now support the new direction
called "last" that corresponds to the last used workspace (see Openbox
help[1] for reference).
[1]: http://openbox.org/wiki/Help:Actions#GoToDesktop
2022-06-18 18:34:58 +02:00
Consolatis
56a6d08fc0
src/debug.c: Sync with workspaces
2022-06-17 06:08:06 +01:00
Consolatis
5f38d5ec55
src/layers.c: Update output for popup after forced move
...
Fixes #369
2022-06-17 06:08:06 +01:00
Johan Malm
46ee070790
action.c: add _POSIX_C_SOURCE
...
...to compile cleanly with musl on Void Linux and avoid:
```
[9/58] Compiling C object labwc.p/src_action.c.o
../src/action.c: In function 'actions_run':
../src/action.c:204:4: warning: implicit declaration of function 'kill' [-Wimplicit-function-declaration]
204 | kill(getpid(), SIGHUP);
| ^~~~
[58/58] Linking target labwc
```
Reported-by: @M4lin
2022-06-16 22:00:45 +01:00
Joshua Ashton
505b1edb98
Allow leasing desktop displays
...
Apps such as Gamescope eventually want to offer a DRM lease option to use planes and handle all of getting to the screen themselves.
This implements logic to allow leasing of desktop displays
2022-06-16 20:42:17 +01:00
Johan Malm
050af96d57
Merge pull request #333 from Consolatis/wip/workspaces
...
Add workspaces
2022-06-15 22:05:31 +01:00
Consolatis
c77ccb8903
workspaces: Switch workspace when activating via panel
2022-06-15 22:49:39 +02:00
Consolatis
282620589d
workspaces: Hide menu if there is only a single workspace
2022-06-15 22:26:21 +02:00
Consolatis
ff69988347
workspaces: Add default workspace sub menu
2022-06-15 22:26:21 +02:00
Consolatis
c93d625938
workspaces: Add workspace actions
2022-06-15 22:26:21 +02:00
Consolatis
8c5157a098
workspaces: Wire up workspaces
2022-06-15 22:26:21 +02:00
Consolatis
ae2fa1571b
workspaces: Implement config parsing
2022-06-15 22:26:21 +02:00
Consolatis
d557623c34
workspaces: Add workspaces.{c,h}
2022-06-15 22:26:21 +02:00
Consolatis
1afca2c2cd
src/osd.c: Hide OSD when there are no views on osd_update
2022-06-15 16:14:02 +01:00
Consolatis
37ca5c28c1
include/labwc.h desktop_cycle_view: Clarify signature
2022-06-15 16:14:02 +01:00
Consolatis
a0d1003f28
src/keyboard.c: Make any_modifier_pressed() global
2022-06-15 16:14:02 +01:00
Consolatis
d309df6f87
src/common/font.c: Add font_width()
2022-06-15 16:14:02 +01:00
Johan Malm
5f30773a6e
action.c: use kill() instead of spawning killall
...
Also update documentation to say `killall -s SIGHUP labwc` to make
it work on Void Linux.
Fix #393
2022-06-15 00:46:27 +02:00
Consolatis
05ae654547
Convert SSD title to scaled font buffer
2022-06-14 22:03:08 +01:00
Consolatis
b25965d03e
Convert menu entries to scaled font buffer
2022-06-14 22:03:08 +01:00
Consolatis
5d79911244
Add scaled_font_buffer implementation
2022-06-14 22:03:08 +01:00
Consolatis
c3f07aacf0
Add abstract scaled_scene_buffer implementation
2022-06-14 22:03:08 +01:00
Consolatis
f3a685155d
common/font: Add scale argument
2022-06-14 22:03:08 +01:00
Consolatis
2aaf26e87b
src/menu: Handle menu item creation failure
2022-06-14 22:03:08 +01:00
Consolatis
505f92e733
src/buffer: Automatically adapt to scale attribute
...
Based on discussion in PR #389
2022-06-14 22:03:08 +01:00
Johan Malm
5626c20c44
Merge pull request #389 from bi4k8/window-switcher-scale
...
correctly scale window switcher
2022-06-11 22:37:30 +01:00
bi4k8
4221eb14e8
correctly scale window switcher
2022-06-11 13:44:58 +00:00
Consolatis
5a4c5de332
src/menu: Attach view to menu and use it when executing actions
...
This fixes #380
2022-06-09 22:09:40 +01:00
Consolatis
ca9226a7a6
src/ssd: Convert button node descriptors to struct ssd_button
...
This allows for way easier button hover detection and future
features like toggling rounded corner buttons on maximize.
2022-06-09 22:04:35 +01:00
Consolatis
f1ada7e407
src/ssd: Use LAB_SSD_PART_CORNER_x for rounded corner backgrounds
...
This matches the behavior of the surrounding borders and will usually
cause resizing instead of triggering the button itself. This effect
is only really visible when using a border width settings of > 1.
Fixes #379
2022-06-09 22:04:35 +01:00
Consolatis
32dac72734
src/view.c: Cache server pointer
2022-06-09 17:15:13 +02:00
Consolatis
9c37101ec0
Chase wlroots: update wlroots.wrap to latest master
...
To update the wlroots subproject use
meson subprojects update wlroots
Fixes #382
2022-06-09 02:15:15 +02:00
Johan Malm
bbea6d8330
view: if view->fullscreen on destroy, re-enable top-layer
...
The layer-shell top-layer is disabled when running an application in
fullscreen mode, so if this is the case on view_destroy() we have to
re-enabled the top-layer again.
Reported-by: @heroin-moose
Helped-by: @Consolatis
Fixes #377
2022-06-07 23:41:37 +02:00
Consolatis
138b1852c1
Chase wlroots: update wlroots.wrap to latest master
...
To update the wlroots subproject use
meson subprojects update wlroots
2022-06-07 07:13:37 +01:00
Consolatis
efd9155513
Chase wlroots: children are now only availabe in tree nodes
...
Chases wlroots 71f8a48d380701de1e3331d53d470bd76f5f643b
wlr_scene: Move children list from wlr_scene_node to wlr_scene_tree
2022-06-07 07:13:37 +01:00
Consolatis
08518513cc
Chase wlroots: scene_node.state is now inlined
...
Chases wlroots cb2dbc327e4d695c2a60a386e116a7dc20b29107
wlr_scene: Inline wlr_scene_node_state
2022-06-07 07:13:37 +01:00
Consolatis
2ed7a10779
Chase wlroots: every scene_node parent is now a tree
...
Chases wlroots ccd0f85c2a36308e35b153c7f9653abac7659af3
wlr_scene: Only allow parenting on a wlr_scene_tree
2022-06-07 07:13:37 +01:00
Consolatis
b7c9d0e055
Chase wlroots: prep work: ssd to tree
2022-06-07 07:13:37 +01:00
Consolatis
65a5315e42
Chase wlroots: prep work: menu to tree
2022-06-07 07:13:37 +01:00
Consolatis
3f65a2ff77
Chase wlroots: wlr_scene is now a tree node
...
Chases wlroots 9eb71146ae56c509ee33c7e8a662549592aad870
wlr_scene: Refactor wlr_scene (the root element) to encase a wlr_scene_tree
2022-06-07 07:13:37 +01:00
Johan Malm
fb1af5f68e
view: when centering, top/left align if view is bigger than usable area
2022-06-06 20:46:29 +02:00
Johan Malm
0f22613952
view: take into account top-margin for xwayland views
...
...in order to center accurately.
2022-06-06 20:46:29 +02:00
Johan Malm
d1e16c5030
view: center correctly with scale != 1
...
Fixes issue #376
2022-06-06 20:46:29 +02:00
Johan Malm
71f8aca66b
xwayland-unmanaged: wl_list_remove() missing listeners on destroy
2022-06-05 23:34:04 +02:00