Skip to content

Commit

Permalink
click-through constructor setter fix #259
Browse files Browse the repository at this point in the history
  • Loading branch information
Aylur committed Jan 15, 2024
1 parent 205fc55 commit 8430f05
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/widgets/widget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import Gdk from 'gi://Gdk?version=3.0';
import Cairo from 'gi://cairo?version=1.0';
import Service, { kebabify, Props, BindableProps, Binding } from '../service.js';
import { registerGObject } from '../gobject.js';
import { interval } from '../utils.js';
import { interval, idle } from '../utils.js';
import { Variable } from '../variable.js';
import { App } from '../app.js';

Expand Down Expand Up @@ -262,6 +262,11 @@ export default function AgsWidget<
this.connect('leave-notify-event', this._updateCursor.bind(this));
this.connect('destroy', () => this._set('is-destroyed', true));

idle(() => {
if (this.click_through)
this.input_shape_combine_region(new Cairo.Region);
});

if (setup)
// @ts-expect-error
setup(this);
Expand Down

0 comments on commit 8430f05

Please sign in to comment.