-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use wlroots scene graph api #6844
Changes from all commits
c8dfabf
ea6dc8e
7b11e79
31f11bb
7509975
3532e42
73e28f5
a28b7ba
8e46e2f
164e496
ad2fd11
fac3d3a
05887c8
35a7eda
b2e9e0c
531cf4c
e861571
c240189
c41b35f
ac63561
bf1aa93
9aac54c
26fee42
dca8f1a
803a3eb
c110b9c
46ae39d
079ebb6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/** | ||
* Across a wayland compositor, there are multiple shells: It can be | ||
* a toplevel, or a layer_shell, or even something more meta like a drag | ||
* icon or highlight indicators when dragging windows around. | ||
* | ||
* This object lets us store values that represent these modes of operation | ||
* and keep track of what object is being represented. | ||
*/ | ||
#ifndef _SWAY_SCENE_DESCRIPTOR_H | ||
Nefsen402 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
#define _SWAY_SCENE_DESCRIPTOR_H | ||
#include <wlr/types/wlr_scene.h> | ||
|
||
enum sway_scene_descriptor_type { | ||
SWAY_SCENE_DESC_BUFFER_TIMER, | ||
SWAY_SCENE_DESC_NON_INTERACTIVE, | ||
SWAY_SCENE_DESC_CONTAINER, | ||
SWAY_SCENE_DESC_VIEW, | ||
SWAY_SCENE_DESC_LAYER_SHELL, | ||
SWAY_SCENE_DESC_XWAYLAND_UNMANAGED, | ||
SWAY_SCENE_DESC_POPUP, | ||
SWAY_SCENE_DESC_DRAG_ICON, | ||
}; | ||
|
||
bool scene_descriptor_assign(struct wlr_scene_node *node, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there a reason we're calling this There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's called assign because it can only be set once. If you try to assign the same scene descriptor to the same node, it will abort. (The abort happens in wlroots: wlr_addon is the thing that doesn't allow this) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Got it. I've usually seen this called |
||
enum sway_scene_descriptor_type type, void *data); | ||
|
||
void *scene_descriptor_try_get(struct wlr_scene_node *node, | ||
enum sway_scene_descriptor_type type); | ||
|
||
void scene_descriptor_destroy(struct wlr_scene_node *node, | ||
enum sway_scene_descriptor_type type); | ||
|
||
#endif |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: include order.