Support repositioning mapped popups
Requires xdg_wm_base version 3+. Helps make some Steam popups act more consistently.
This commit is contained in:
parent
ece5d1bd10
commit
98a81c2668
4 changed files with 169 additions and 34 deletions
|
|
@ -332,7 +332,12 @@ impl XState {
|
|||
self.handle_property_change(e, server_state);
|
||||
}
|
||||
xcb::Event::X(x::Event::ConfigureRequest(e)) => {
|
||||
if !server_state.can_reconfigure_window(e.window()) {
|
||||
debug!("ignoring reconfigure request for {:?}", e.window());
|
||||
continue;
|
||||
}
|
||||
debug!("{:?} request: {:?}", e.window(), e.value_mask());
|
||||
|
||||
let mut list = Vec::new();
|
||||
let mask = e.value_mask();
|
||||
|
||||
|
|
@ -670,7 +675,7 @@ xcb::atoms_struct! {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Copy, Debug, Default)]
|
||||
#[derive(Clone, Copy, Debug, Default, PartialEq, Eq)]
|
||||
pub struct WindowDims {
|
||||
pub x: i16,
|
||||
pub y: i16,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue