1
0
Fork 0
forked from wry/wry

config: add fullscreen window criteria

This commit is contained in:
Julian Orth 2025-05-01 18:49:39 +02:00
parent 91c948b219
commit e36ccd560c
14 changed files with 51 additions and 3 deletions

View file

@ -115,6 +115,7 @@ pub enum WindowCriterionIpc {
Visible,
Urgent,
SeatFocus(Seat),
Fullscreen,
}
#[derive(Serialize, Deserialize, Clone, Debug, Hash, Eq, PartialEq)]

View file

@ -1661,6 +1661,7 @@ impl ConfigClient {
WindowCriterion::Visible => WindowCriterionIpc::Visible,
WindowCriterion::Urgent => WindowCriterionIpc::Urgent,
WindowCriterion::Focus(seat) => WindowCriterionIpc::SeatFocus(seat),
WindowCriterion::Fullscreen => WindowCriterionIpc::Fullscreen,
};
let res = self.send_with_response(&ClientMessage::CreateWindowMatcher { criterion });
get_response!(

View file

@ -253,6 +253,8 @@ pub enum WindowCriterion<'a> {
Urgent,
/// Matches if the window has the keyboard focus of the seat.
Focus(Seat),
/// Matches if the window is fullscreen.
Fullscreen,
}
impl WindowCriterion<'_> {