Skip to content
GitLab
    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
    Projects Groups Topics Snippets
  • Register
  • Sign in
  • Lazarus Lazarus
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 2,095
    • Issues 2,095
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 15
    • Merge requests 15
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • FPC
  • LazarusLazarus
  • LazarusLazarus
  • Issues
  • #38401
Closed
Open
Issue created Jan 26, 2021 by FPC Admin account@fpc_adminOwner

GTK2: SpeedButton freezes (need extra click) after close popup menu without choosing any popup menu item (Fix 1).

Original Reporter info from Mantis: and3md @and3md
  • Reporter name: Andrzej Kilijanski

Description:

I found more cases where the controls freeze after using the popup menu. This patch is a rework of https://bugs.freepascal.org/view.php?id=38345 and https://bugs.freepascal.org/view.php?id=35094 to handle new cases. I think this patch also fixes rare freezes of the entire window or listView when a popup menu is closed. But I have no proof of it - it just stopped happening to me.

I divided the whole solution into two parts to facilitate review/application of patch - this part fixes the popup menu created in Lazarus.

In the sample program this part (fix 1) will fix the controls with PopupMenu added in Lazarus and the case of opening the second form (modal or not).

Steps to reproduce:

The easiest way to cause the controls to freeze is:

  1. Add SpeedButton to the Form
  2. Add a ListView to the Form
  3. Add PopupMenu to ListView (add some menu items)
  4. After run click right on ListView and then click on the form to hide the popup menu
  5. At this point, the SpeedButton will be inactive

Mantis conversion info:

  • Mantis ID: 38401
  • OS: Linux Mint
  • OS Build: 20.1
  • Platform: amd64
  • Version: 2.1 (SVN)
  • Fixed in revision: r64430 (#5a0bf2ed)
Assignee
Assign to
Time tracking