Add notification windowtype
This commit is contained in:
parent
aa54487c47
commit
b3ac542e79
3 changed files with 6 additions and 0 deletions
|
@ -17,6 +17,7 @@ All notable changes to eww will be listed here, starting at changes since versio
|
|||
- Add `>=` and `<=` operators to simplexpr (By: viandoxdev)
|
||||
- Add `desktop` window type (By: Alvaro Lopez)
|
||||
- Add `scroll` widget (By: viandoxdev)
|
||||
- Add `notification` window type
|
||||
|
||||
### Notable Internal changes
|
||||
- Rework state management completely, now making local state and dynamic widget hierarchy changes possible.
|
||||
|
|
|
@ -201,6 +201,7 @@ mod platform {
|
|||
)?
|
||||
.check()?;
|
||||
|
||||
// TODO possibly support setting multiple window types
|
||||
x11rb::wrapper::ConnectionExt::change_property32(
|
||||
&self.conn,
|
||||
PropMode::REPLACE,
|
||||
|
@ -214,6 +215,7 @@ mod platform {
|
|||
WindowType::Toolbar => self.atoms._NET_WM_WINDOW_TYPE_TOOLBAR,
|
||||
WindowType::Utility => self.atoms._NET_WM_WINDOW_TYPE_UTILITY,
|
||||
WindowType::Desktop => self.atoms._NET_WM_WINDOW_TYPE_DESKTOP,
|
||||
WindowType::Notification => self.atoms._NET_WM_WINDOW_TYPE_NOTIFICATION,
|
||||
}],
|
||||
)?
|
||||
.check()?;
|
||||
|
@ -231,6 +233,7 @@ mod platform {
|
|||
_NET_WM_WINDOW_TYPE_TOOLBAR,
|
||||
_NET_WM_WINDOW_TYPE_UTILITY,
|
||||
_NET_WM_WINDOW_TYPE_DESKTOP,
|
||||
_NET_WM_WINDOW_TYPE_NOTIFICATION,
|
||||
_NET_WM_STATE,
|
||||
_NET_WM_STATE_STICKY,
|
||||
_NET_WM_STATE_ABOVE,
|
||||
|
|
|
@ -48,6 +48,7 @@ mod backend {
|
|||
Normal,
|
||||
Utility,
|
||||
Desktop,
|
||||
Notification,
|
||||
}
|
||||
impl FromStr for WindowType {
|
||||
type Err = EnumParseError;
|
||||
|
@ -60,6 +61,7 @@ mod backend {
|
|||
"normal" => Self::Normal,
|
||||
"utility" => Self::Utility,
|
||||
"desktop" => Self::Desktop,
|
||||
"notification" => Self::Notification,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue