Allow toplevels to reconfigure themselves
This commit is contained in:
parent
378421d356
commit
51300780f8
4 changed files with 36 additions and 26 deletions
|
|
@ -125,7 +125,7 @@ impl SurfaceData {
|
|||
output_name
|
||||
}
|
||||
|
||||
fn update_viewport(&self, dims: WindowDims, size_hints: Option<WmNormalHints>) {
|
||||
pub(super) fn update_viewport(&self, dims: WindowDims, size_hints: Option<WmNormalHints>) {
|
||||
let width = (dims.width as f64 / self.scale_factor) as i32;
|
||||
let height = (dims.height as f64 / self.scale_factor) as i32;
|
||||
if width > 0 && height > 0 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue