File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -39,12 +39,12 @@ namespace Gala {
3939 private GLib . Settings interface_settings;
4040 private Cairo . ImageSurface surface;
4141
42- public weak WindowManager wm { get ; construct; }
42+ public Meta . Display display { get ; construct; }
4343
4444 public double angle { get ; set ; }
4545
46- public DwellClickTimer (WindowManager wm ) {
47- Object (wm : wm );
46+ public DwellClickTimer (Meta . Display display ) {
47+ Object (display : display );
4848 }
4949
5050 construct {
@@ -69,7 +69,6 @@ namespace Gala {
6969 seat. set_pointer_a11y_dwell_click_type (Clutter . PointerA11yDwellClickType . PRIMARY );
7070
7171 seat. ptr_a11y_timeout_started. connect ((device, type, timeout) = > {
72- unowned var display = wm. get_display ();
7372 var scale = display. get_monitor_scale (display. get_current_monitor ());
7473 update_cursor_size (scale);
7574
Original file line number Diff line number Diff line change @@ -339,7 +339,7 @@ namespace Gala {
339339
340340 pointer_locator = new PointerLocator (display);
341341 ui_group. add_child (pointer_locator);
342- ui_group. add_child (new DwellClickTimer (this ));
342+ ui_group. add_child (new DwellClickTimer (display ));
343343
344344 ui_group. add_child (screen_shield);
345345
You can’t perform that action at this time.
0 commit comments