Skip to content

Commit

Permalink
Changing foucus by touchscreen fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
jazn authored Oct 12, 2022
1 parent 13125a2 commit 04a8dcd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools.go
Original file line number Diff line number Diff line change
Expand Up @@ -362,8 +362,8 @@ func taskButton(t task, instances []task) *gtk.Box {
if con is located on an external display, after pressing the button, the conID value
"freezes", and stays the same for all taskButtons, until the right mouse click.
A gotk3 bug or WTF? */
if btnEvent.Type() == gdk.EVENT_BUTTON_RELEASE {
if btnEvent.Button() == 1 {
if ( btnEvent.Type() == gdk.EVENT_BUTTON_RELEASE || btnEvent.Type() == gdk.EVENT_TOUCH_END ) {
if ( btnEvent.Button() == 1 || btnEvent.Type() == gdk.EVENT_TOUCH_END ) {
focusCon(t.conID)
return true
} else if btnEvent.Button() == 3 {
Expand Down

0 comments on commit 04a8dcd

Please sign in to comment.