Skip to content

Commit

Permalink
Merge pull request #27 from jazn/jazn/issue26
Browse files Browse the repository at this point in the history
Changing foucus by touchscreen fixed.
  • Loading branch information
nwg-piotr authored Oct 12, 2022
2 parents 13125a2 + 04a8dcd commit c1f97e7
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 c1f97e7

Please sign in to comment.