[dash] Convert pane close to St.Button, avoiding release event propagation
The workspaces was handling the release event after closing the pane, catch it before closing by using St.Button.
This commit is contained in:
parent
4014313910
commit
fec2ea5e9c
@ -94,11 +94,9 @@ Pane.prototype = {
|
|||||||
|
|
||||||
let chromeTop = new St.BoxLayout();
|
let chromeTop = new St.BoxLayout();
|
||||||
|
|
||||||
let closeIcon = new St.Bin({ style_class: "dash-pane-close" });
|
let closeIcon = new St.Button({ style_class: "dash-pane-close" });
|
||||||
closeIcon.reactive = true;
|
closeIcon.connect('clicked', Lang.bind(this, function (b, e) {
|
||||||
closeIcon.connect('button-press-event', Lang.bind(this, function (b, e) {
|
|
||||||
this.close();
|
this.close();
|
||||||
return true;
|
|
||||||
}));
|
}));
|
||||||
let dummy = new St.Bin();
|
let dummy = new St.Bin();
|
||||||
chromeTop.add(dummy, { expand: true });
|
chromeTop.add(dummy, { expand: true });
|
||||||
|
Loading…
Reference in New Issue
Block a user