Skip to content

Commit

Permalink
Add a LOCK scenegraph layer.
Browse files Browse the repository at this point in the history
This will be used by the upcoming implementation of the
ext-session-lock protocol.
  • Loading branch information
lcolitti committed Mar 24, 2024
1 parent b5c69ee commit e39a7dc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions plugins/single_plugins/ipc-rules.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ static std::string layer_to_string(std::optional<wf::scene::layer> layer)
return "unmanaged";

case wf::scene::layer::OVERLAY:
return "overlay";

case wf::scene::layer::LOCK:
return "lock";

case wf::scene::layer::DWIDGET:
Expand Down
3 changes: 2 additions & 1 deletion src/api/wayfire/scene.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -414,8 +414,9 @@ enum class layer : size_t
TOP = 3,
UNMANAGED = 4,
OVERLAY = 5,
LOCK = 6,
// For compatibility with workspace-manager, to be removed
DWIDGET = 6,
DWIDGET = 7,
/** Not a real layer, but a placeholder for the number of layers. */
ALL_LAYERS,
};
Expand Down
1 change: 1 addition & 0 deletions src/core/scene.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ std::string node_t::stringify() const
"top",
"unmanaged",
"overlay",
"lock",
"dwidget"
};

Expand Down

0 comments on commit e39a7dc

Please sign in to comment.