tree: allow floats to be pinned
This commit is contained in:
parent
3e6640f0ca
commit
65a66c2e26
28 changed files with 528 additions and 36 deletions
|
|
@ -43,6 +43,8 @@
|
|||
)]
|
||||
#![warn(unsafe_op_in_unsafe_fn)]
|
||||
|
||||
#[expect(unused_imports)]
|
||||
use crate::input::Seat;
|
||||
use {
|
||||
crate::{_private::ipc::WorkspaceSource, keyboard::ModifiedKeySym, video::Connector},
|
||||
serde::{Deserialize, Serialize},
|
||||
|
|
@ -292,3 +294,13 @@ pub fn get_float_above_fullscreen() -> bool {
|
|||
pub fn toggle_float_above_fullscreen() {
|
||||
set_float_above_fullscreen(!get_float_above_fullscreen())
|
||||
}
|
||||
|
||||
/// Sets whether floating windows always show a pin icon.
|
||||
///
|
||||
/// Clicking on the pin icon toggles the pin mode. See [`Seat::toggle_float_pinned`].
|
||||
///
|
||||
/// The icon is always shown if the window is pinned. This setting only affects unpinned
|
||||
/// windows.
|
||||
pub fn set_show_float_pin_icon(show: bool) {
|
||||
get!().set_show_float_pin_icon(show);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue