chore: update libcosmic (#168)
This commit is contained in:
parent
19ae9b75d5
commit
e5db5ab1dd
14 changed files with 141 additions and 193 deletions
|
|
@ -26,7 +26,6 @@ pub struct Window {
|
|||
core: Core,
|
||||
popup: Option<Id>,
|
||||
timeline: Timeline,
|
||||
id_ctr: u128,
|
||||
tile_windows: bool,
|
||||
active_hint: spin_button::Model<i32>,
|
||||
gaps: spin_button::Model<i32>,
|
||||
|
|
@ -95,13 +94,12 @@ impl cosmic::Application for Window {
|
|||
return if let Some(p) = self.popup.take() {
|
||||
destroy_popup(p)
|
||||
} else {
|
||||
self.id_ctr += 1;
|
||||
let new_id = Id(self.id_ctr);
|
||||
let new_id = Id::unique();
|
||||
self.popup.replace(new_id);
|
||||
let mut popup_settings =
|
||||
self.core
|
||||
.applet
|
||||
.get_popup_settings(Id(0), new_id, None, None, None);
|
||||
.get_popup_settings(Id::MAIN, new_id, None, None, None);
|
||||
popup_settings.positioner.size_limits = Limits::NONE
|
||||
.max_width(372.0)
|
||||
.min_width(300.0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue