liteide icon indicating copy to clipboard operation
liteide copied to clipboard

LiteIDE steals focus on Linux

Open kstenerud opened this issue 5 years ago • 3 comments

Please answer these questions before submitting your issue. Thanks! Please download LiteIDE latest version and test before submitting your issue. Thanks!

What version of LiteIDE are you using (LiteIDE About - Version and Build Qt Version)?

x36.1 QT 5.5.1

What version of Go are you using (go version)?

go version go1.14.4 linux/amd64

What operating system and processor architecture are you using(go env)?

GO111MODULE="" GOARCH="amd64" GOBIN="" GOCACHE="/home/karl/.cache/go-build" GOENV="/home/karl/.config/go/env" GOEXE="" GOFLAGS="" GOHOSTARCH="amd64" GOHOSTOS="linux" GOINSECURE="" GONOPROXY="" GONOSUMDB="" GOOS="linux" GOPATH="/home/karl/go" GOPRIVATE="" GOPROXY="https://proxy.golang.org,direct" GOROOT="/usr/local/go-dev" GOSUMDB="sum.golang.org" GOTMPDIR="" GOTOOLDIR="/usr/local/go-dev/pkg/tool/linux_amd64" GCCGO="gccgo" AR="ar" CC="gcc" CXX="g++" CGO_ENABLED="1" GOMOD="" CGO_CFLAGS="-g -O2" CGO_CPPFLAGS="" CGO_CXXFLAGS="-g -O2" CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-g -O2" PKG_CONFIG="pkg-config" GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build675580958=/tmp/go-build -gno-record-gcc-switches"

Problem

Whenever a file that is opened in LiteIDE gets changed, LiteIDE steals focus with a requestor telling me that the file has been changed and asking what to do. On Windows, this only affects LiteIDE if it is the currently focused app, but on Linux, it steals focus from whatever app I happen to be in, which is very bad UX. Usually, I'm typing in git commands, and then I get pulled from the shell into the LiteIDE app, and since I'm in the middle of typing I'll usually end up selecting one of the options before I realize my focus has been stolen.

kstenerud avatar Jun 22 '20 10:06 kstenerud

+1 I am using ubuntu 18.04 default desktop environment.

yurenchen000 avatar Jun 01 '21 13:06 yurenchen000

liteide - Options - LiteApp "auto reload or close editor buffer, if underling file in modify/deleted." set checked and restart.

visualfc avatar Jun 01 '21 23:06 visualfc

liteide - Options - LiteApp "auto reload or close editor buffer, if underling file in modify/deleted." set checked and restart.

thanks for reply, I known this option, but still want keep the choice prompt ( reload or not )

yurenchen000 avatar Jun 02 '21 16:06 yurenchen000