Commit graph

26 commits

Author SHA1 Message Date
Simon Long
4dc9255fe3 Remove explicit fullscreen flag 2024-05-08 08:54:20 +01:00
Simon Long
94afd1f7b0 Now with the right calculation... 2024-05-08 08:45:02 +01:00
Simon Long
035e2b7fc9 Fix magnifications > 2 with fullscreen; still not perfect 2024-05-07 15:26:03 +01:00
Simon Long
2e1266229e Code style 2024-05-07 14:32:59 +01:00
Simon Long
a553d174b5 Code style 2024-05-07 14:30:39 +01:00
Simon Long
c2873a75f3 Add fullscreen magnifier mode 2024-05-07 14:27:42 +01:00
Simon Long
627eaa6cbf Code style 2024-05-03 15:35:40 +01:00
Simon Long
19a57c6ea4 Move magnifier settings into theme 2024-05-03 15:22:18 +01:00
Simon Long
d119ca433c More code style 2024-05-03 13:32:20 +01:00
Simon Long
479df784ea It's hip to (not) be square... 2024-05-03 12:57:34 +01:00
Simon Long
74e581118f Add filtering option to XML 2024-05-03 12:56:45 +01:00
Simon Long
59e83e5bd3 Add setting of border width and colour 2024-05-03 12:56:26 +01:00
Simon Long
dd42e57c9a No need to track scale changes 2024-05-03 12:53:25 +01:00
Simon Long
789e7f9331 Magnifier on/off just a global flag; not in XML 2024-05-03 12:53:05 +01:00
Simon Long
f76dffa01a Move magnfier size into XML 2024-05-03 12:51:46 +01:00
Simon Long
483a92368e Use fixed-size loupe 2024-05-03 12:49:46 +01:00
Simon Long
dfd9aa4aba First attempt at integration with nmouse and keyboard bindings 2024-05-03 12:49:41 +01:00
Consolatis
c9de358075 output: ensure we don't run into an assert() on VT switch
Also reduce log spam from failed output commits that
can happen for various reasons outside of our control.

Fixes: #1667
2024-04-08 21:14:47 +01:00
nullableVoidPtr
41891209fc chase: use wlroots tree node getters 2023-12-03 18:24:26 +00:00
Consolatis
ddc9047a67 Restore nested resize
Chases: 756ecf8ee9f1e75bc7b8297dc84f97c7d699174b
backend/wayland: use request_state when toplevel is resized

Chases: 3ef68a484243555b020200c6f95246d994932c3f
backend/x11: use request_state when window is resized

Ref: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/2693

We now delay requested resolution changes by the backend until
the next frame event which causes us to render the new content
on the already enlarged buffer. Before this change, an empty
(black) buffer would have been shown instead before the next
frame event caused a new render of the actual contents.

Keep commiting the new state and then scheduling a frame event
would not help as due to the commit call it would still show an
empty buffer in the meantime.

Just modifying wlr_output->pending wouldn't work either because
wlr_scene_output_commit() *completely* ignores it (and it will
be removed in future wlroots commits). For this reason we move
to wlr_scene_output_build_state() directly because it allows us
to supply the current wlr_output->pending state and thus apply
any resolution change in lockstep with new rendering. Result:
No more flickering in the wayland backend and resizing is again
smooth as butter.

This prevents constant flicker while resizing
when running nested via the wayland backend.

For the X11 backend (can be tested via `WLR_BACKENDS=x11 labwc`),
it is still rather janky but at least doesn't cause endless self-
resizing anymore.
2023-11-27 21:01:53 +00:00
John Lindgren
404fabec92 Chase wlroots: wlr_scene_surface_from_buffer renamed
Chases: 7b32c25a4fbdcde4197a06c8e0ff638c54753bd7
wlr_scene: Rename wlr_scene_surface_from_buffer
2023-11-27 21:01:53 +00:00
Consolatis
82e9e866ec Enable more compiler warnings 2023-02-01 10:42:22 +01:00
Consolatis
15a5b710db alt-tab preview: restore functionality after move to scene-graph 2022-08-28 20:40:36 +02: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
163179dda1 Chase wlroots: wlr_scene_surface
To update the wlroots subproject use
meson subprojects update wlroots
2022-05-26 06:48:00 +01:00
Consolatis
5862b65f89 Convert SSD to scene nodes 2022-02-23 21:47:01 +00:00