Consolatis
5f38d5ec55
src/layers.c: Update output for popup after forced move
...
Fixes #369
2022-06-17 06:08:06 +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
Johan Malm
bb2a98645b
layer: handle output_destroy.notify without crash
...
Steps to reproduce crash:
- run nested with two outputs (e.g. WLR_WL_OUTPUTS=2 ./build/labwc)
- start panel on one output (e.g. waybar)
- close that output
Backtrace pointed to output_destroy_notify() at ../src/layers.c:92
Reported-by: @Consolatis
2022-04-24 22:24:47 +01:00
Johan Malm
801a04a647
layers: always unmap on destroy
...
This sets seat->focused_layer to NULL if appropriate.
2022-03-07 20:54:22 +00:00
Johan Malm
852a6f02fa
layers: fix layer_popup_tree implementation
2022-03-06 16:48:39 +00:00
Johan Malm
6fd400b493
layers: put popups in separate node-tree
...
This allows popups to be rendered above views and other layers. Without
this, the popups of a layer-shell application in the bottom layer would
render below views, which does not seem right. For example, consider the
case of a panel with right-click popups.
2022-03-03 17:56:38 +00:00
Johan Malm
34bd1fb6da
layers: unconstrain popups correctly
...
...to show popups when using @Consolatis's example panel
https://github.com/Consolatis/wl_framework
2022-03-03 17:53:26 +00:00
Johan Malm
30298228e3
Rename node-descriptor.c to node.c
...
...in anticipation of adding helpers like node_view_from_node()
2022-03-02 21:07:04 +00:00
Johan Malm
d3918eec0a
layers: only define LAB_NR_LAYERS locally where needed
2022-03-02 20:39:46 +00:00
Johan Malm
98d5fd483d
layers: s/arrange_layers/layers_arrange/
...
Because we like to start public function names with the name of the
file.
Move prototype from labwc.h to layers.h
2022-03-02 20:29:29 +00:00
Johan Malm
99361d6ad8
layers.c: fix coding style
2022-03-02 20:23:20 +00:00
Johan Malm
a1d93cc97c
layers: position each layer_tree correctly relative to its output
2022-03-02 20:21:57 +00:00
Johan Malm
49e8658a7b
layer: support popups
2022-02-26 22:36:16 +00:00
Johan Malm
f26b61137d
layers.h: define LAB_NR_LAYERS (4)
2022-02-23 21:47:01 +00:00
Johan Malm
6488b933fa
layers.c: set output->usable_area
2022-02-23 21:47:01 +00:00
Johan Malm
688abf7db1
Handle layers under the scene-graph API
...
This excludes popups.
2022-02-23 21:47:01 +00:00
Johan Malm
5747ede20d
layers: fix clang warning
...
...for unused variables.
We should damage the surface really, but this will soon be
overtaken by events when wlr_scene is implemented.
2021-11-13 21:36:33 +00:00
Johan Malm
174e82a608
layers: support popups
2021-10-20 22:32:46 +01:00
Johan Malm
73b8f06a26
layer-shell: fix commit handler (issue #71 )
...
On commit, do not arrange layers unless the layer shell-specific state
changed or the layer was (un)mapped.
Chase swaywm/sway@5fd5d643 and swaywm/wlroots@754f40f9
2021-10-15 19:14:07 +01:00
Johan Malm
ebb632419b
*.c: add SPDX-License-Identifier
2021-09-24 21:45:48 +01:00
Johan Malm
329ca691da
layer-shell: chase wlr_layer_surface refactor
2021-09-24 20:51:12 +01:00
Johan Malm
cce3c8cda0
src/: fix coding style
2021-09-21 22:05:56 +01:00
Johan Malm
9e2af19caf
layer-shell: replace close() with destroy()
...
Update for the wlroots breaking change in
https://github.com/swaywm/wlroots/pull/3108
2021-08-16 07:18:08 +01:00
Johan Malm
82e47ac1f5
Remove src/common/log.c
...
Use wlr_log() instead
2021-07-23 21:15:55 +01:00
Johan Malm
a3ac2f2767
layers: take into account usable area when maximizing views
2021-07-12 21:39:09 +01:00
Johan Malm
ee15a5fe56
cursor: handle button press on layer-surface (issue #41 )
2021-07-12 16:44:30 +01:00
Johan Malm
54804fd3df
Implement damage tracking
2021-01-09 22:51:20 +00:00
Johan Malm
a26fd5a75b
layers: handle top layer unmap/destroy better
...
On losing top layer focus, set focus on topmost mapped view.
2020-10-31 15:09:13 +00:00
Johan Malm
11ce73f2d6
layers.c: rename notify-functions
2020-10-28 21:28:37 +00:00
Johan Malm
01041d4d45
layers.c: handle_surface_commit() use correct wlr_output
2020-10-28 20:49:26 +00:00
Johan Malm
25829d122c
Refactor seat.c, keyboard.c, cursor.c
...
Use wlr_keyboard_group
2020-10-02 21:20:12 +01:00
Johan Malm
a4c22f7c4d
Add partial support for layer-shell
...
We can now run swaybg and waybar
2020-09-30 17:18:20 +01:00