close on LMB only #36
This commit is contained in:
BIN
bin/nwg-drawer
BIN
bin/nwg-drawer
Binary file not shown.
4
main.go
4
main.go
@@ -21,7 +21,7 @@ import (
|
|||||||
"github.com/gotk3/gotk3/gtk"
|
"github.com/gotk3/gotk3/gtk"
|
||||||
)
|
)
|
||||||
|
|
||||||
const version = "0.2.4"
|
const version = "0.2.5"
|
||||||
|
|
||||||
var (
|
var (
|
||||||
appDirs []string
|
appDirs []string
|
||||||
@@ -425,7 +425,7 @@ func main() {
|
|||||||
|
|
||||||
resultWindow.Connect("button-release-event", func(sw *gtk.ScrolledWindow, e *gdk.Event) bool {
|
resultWindow.Connect("button-release-event", func(sw *gtk.ScrolledWindow, e *gdk.Event) bool {
|
||||||
btnEvent := gdk.EventButtonNewFromEvent(e)
|
btnEvent := gdk.EventButtonNewFromEvent(e)
|
||||||
if btnEvent.Button() == 1 || btnEvent.Button() == 3 {
|
if btnEvent.Button() == 3 {
|
||||||
if !*resident {
|
if !*resident {
|
||||||
gtk.MainQuit()
|
gtk.MainQuit()
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user