refactor to get around weird behavior when dropping, and excessive window resizes

This commit is contained in:
Ashley Wulber 2021-12-22 17:23:18 -05:00
parent 94a01a3f52
commit 6989b2a180
4 changed files with 149 additions and 47 deletions

View file

@ -22,13 +22,10 @@ pub struct Window {
#[template_child]
pub revealer: TemplateChild<Revealer>,
#[template_child]
pub cursor_enter_handle: TemplateChild<Box>,
#[template_child]
pub cursor_leave_handle: TemplateChild<Box>,
pub cursor_handle: TemplateChild<Box>,
pub saved_app_model: OnceCell<gio::ListStore>,
pub active_app_model: OnceCell<gio::ListStore>,
pub enter_event_controller: OnceCell<EventControllerMotion>,
pub leave_event_controller: OnceCell<EventControllerMotion>,
pub cursor_event_controller: OnceCell<EventControllerMotion>,
pub drop_controller: OnceCell<DropTarget>,
pub window_drop_controller: OnceCell<DropTarget>,
}