Add config reloading for tiling exceptions
This commit is contained in:
parent
5fe9ba29eb
commit
5482ff65e5
3 changed files with 45 additions and 11 deletions
|
|
@ -17,7 +17,7 @@ use cosmic_comp_config::{
|
|||
use cosmic_protocols::workspace::v1::server::zcosmic_workspace_handle_v1::{
|
||||
State as WState, TilingState,
|
||||
};
|
||||
use cosmic_settings_config::shortcuts;
|
||||
use cosmic_settings_config::{shortcuts, window_rules::ApplicationException};
|
||||
use cosmic_settings_config::shortcuts::action::{Direction, FocusDirection, ResizeDirection};
|
||||
use keyframe::{ease, functions::EaseInOutCubic};
|
||||
use smithay::{
|
||||
|
|
@ -1235,7 +1235,7 @@ impl Shell {
|
|||
pub fn new(config: &Config) -> Self {
|
||||
let theme = cosmic::theme::system_preference();
|
||||
|
||||
let tiling_exceptions = layout::TilingExceptions::new(config);
|
||||
let tiling_exceptions = layout::TilingExceptions::new(&config.tiling_exceptions);
|
||||
|
||||
Shell {
|
||||
workspaces: Workspaces::new(config, theme.clone()),
|
||||
|
|
@ -3577,6 +3577,10 @@ impl Shell {
|
|||
&self.theme
|
||||
}
|
||||
|
||||
pub fn update_tiling_exceptions(&mut self, exceptions: &Vec<ApplicationException>) {
|
||||
self.tiling_exceptions = layout::TilingExceptions::new(exceptions);
|
||||
}
|
||||
|
||||
pub fn take_presentation_feedback(
|
||||
&self,
|
||||
output: &Output,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue