View Issue Details

IDProjectCategoryView StatusLast Update
0035983LazarusLCLpublic2019-08-27 18:09
ReporterMario BonatiAssigned ToJuha Manninen 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
PlatformGTKOSLinuxOS Version19.04
Product Version2.1 (SVN)Product BuildLazarus 2.1.0 r61693M FPC 3.0.4 
Target VersionFixed in Version 
Summary0035983: TrayIcon.OnClick fires right click
DescriptionI can reproduce only on Linux. On Windows 10 it seem to be ok.

Run attached project.
When you Left click on TrayIcon, "OnClick" code is non executed, and the relative popup is showed
TagsNo tags attached.
Fixed in Revisionr61758
LazTarget-
WidgetsetGTK 2
Attached Files

Relationships

related to 0035723 resolvedJuha Manninen System Tray Icon must use libappindicator3 

Activities

Mario Bonati

2019-08-19 20:21

reporter  

ErrTrayIcon.tar.7z (6,600 bytes)

Mario Bonati

2019-08-23 19:26

reporter   ~0117809

Problem caused by this patch:
https://bugs.freepascal.org/view.php?id=35723

Juha Manninen

2019-08-25 16:26

developer   ~0117832

You are right, OnClick code does not execute. Before r61621 (related issue) it executed OK with mouse Left click.
Now however the popup menu is shown with mouse Right click. It looks correct to me. Earlier (Before r61621) it never showed which looks wrong to me.
How should it behave? This may be a stupid question but I have not used TrayIcon much myself and apparently did not test the last change enough.
My OS is Manjaro Linux with KDE.

Mario Bonati

2019-08-25 17:39

reporter   ~0117833

Hi,
i am not sure to have understood your question.
I'm working with Ubuntu 19.04 64 bit.
Before r61621, right click showed popup and left click executed "OnClick"

Juha Manninen

2019-08-25 21:16

developer   ~0117834

Interesting. Here the popup menu did not show earlier. It apparently depends on Linux distro and version.

Juha Manninen

2019-08-25 21:55

developer   ~0117835

Last edited: 2019-08-25 21:56

View 2 revisions

Please test with r61758.
For some reason the test for Unity desktop was removed. I added the test and now OnClick works here. Your Ubuntu does not have Unity desktop either I guess.
The test was commented out also before r61621. I wonder how it worked in your system then.

Mario Bonati

2019-08-26 18:27

reporter   ~0117849

Yes, you're right, i'm using Cinnamon, not Unity.
With your patch, now all works fine.

Thanks, Mario

Mario Bonati

2019-08-27 18:09

reporter   ~0117857

Problem solved.

Thanks, Mario

Issue History

Date Modified Username Field Change
2019-08-19 20:21 Mario Bonati New Issue
2019-08-19 20:21 Mario Bonati File Added: ErrTrayIcon.tar.7z
2019-08-23 19:26 Mario Bonati Note Added: 0117809
2019-08-23 19:39 Juha Manninen Relationship added related to 0035723
2019-08-25 16:19 Juha Manninen Assigned To => Juha Manninen
2019-08-25 16:19 Juha Manninen Status new => assigned
2019-08-25 16:26 Juha Manninen Status assigned => feedback
2019-08-25 16:26 Juha Manninen LazTarget => -
2019-08-25 16:26 Juha Manninen Note Added: 0117832
2019-08-25 17:39 Mario Bonati Note Added: 0117833
2019-08-25 17:39 Mario Bonati Status feedback => assigned
2019-08-25 21:16 Juha Manninen Note Added: 0117834
2019-08-25 21:55 Juha Manninen Status assigned => feedback
2019-08-25 21:55 Juha Manninen Note Added: 0117835
2019-08-25 21:56 Juha Manninen Note Edited: 0117835 View Revisions
2019-08-26 18:27 Mario Bonati Note Added: 0117849
2019-08-26 18:27 Mario Bonati Status feedback => assigned
2019-08-26 21:57 Juha Manninen Status assigned => resolved
2019-08-26 21:57 Juha Manninen Resolution open => fixed
2019-08-26 21:57 Juha Manninen Fixed in Revision => r61758
2019-08-26 21:57 Juha Manninen Widgetset GTK 2 => GTK 2
2019-08-27 18:09 Mario Bonati Status resolved => closed
2019-08-27 18:09 Mario Bonati Note Added: 0117857