Recent

Author Topic: ShowModal has a bug in Linux  (Read 724 times)

Jesse Jin

  • Newbie
  • Posts: 4
ShowModal has a bug in Linux
« on: April 26, 2025, 04:29:35 am »
1. Form1.Button1Click -> Form2.ShowModal
2. Don't close Form2, click Form1 -> click Form2
3. Form1.OnDeactivate will work

In windows,it's wright!

TRon

  • Hero Member
  • *****
  • Posts: 4371
Re: ShowModal has a bug in Linux
« Reply #1 on: April 26, 2025, 05:06:48 am »
Hi and welcome Jesse Jin,

Sorry but I have no idea what you are trying to tell with your message. I do not won or use windows so I do not know what behaviour Windows OS displays.

Do you mean that on Linux the OnDeactivate message should be displayed ? Or do you mean the behavipur should be the other way around?

Besides that, behaviour might depend on used widgetset, display-server, windows manager etc.
« Last Edit: April 26, 2025, 05:20:15 am by TRon »
Today is tomorrow's yesterday.

zeljko

  • Hero Member
  • *****
  • Posts: 1751
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: ShowModal has a bug in Linux
« Reply #2 on: April 26, 2025, 02:16:24 pm »
I can reproduce it here but only with gtk3 ws (KDE Plasma, linux mint 22.1).

Jesse Jin

  • Newbie
  • Posts: 4
Re: ShowModal has a bug in Linux
« Reply #3 on: April 28, 2025, 02:52:38 am »
Hi and welcome Jesse Jin,

Sorry but I have no idea what you are trying to tell with your message. I do not won or use windows so I do not know what behaviour Windows OS displays.

Do you mean that on Linux the OnDeactivate message should be displayed ? Or do you mean the behavipur should be the other way around?

Besides that, behaviour might depend on used widgetset, display-server, windows manager etc.

When Form2.ShowModal is called, Form1 should never be able to move, maximize, minimize, or trigger the OnDeactivate event.

TRon

  • Hero Member
  • *****
  • Posts: 4371
Re: ShowModal has a bug in Linux
« Reply #4 on: April 28, 2025, 03:02:45 am »
When Form2.ShowModal is called, Form1 should never be able to move, maximize, minimize, or trigger the OnDeactivate event.
fwiw on my mate, gtk2 setup it behaves exactly as described. It is not possible for me to do anything with form1 (besides make it visible by moving the second form). Form1 does not respond to anything.
Today is tomorrow's yesterday.

Jesse Jin

  • Newbie
  • Posts: 4
Re: ShowModal has a bug in Linux
« Reply #5 on: April 28, 2025, 08:43:56 am »
When Form2.ShowModal is called, Form1 should never be able to move, maximize, minimize, or trigger the OnDeactivate event.
fwiw on my mate, gtk2 setup it behaves exactly as described. It is not possible for me to do anything with form1 (besides make it visible by moving the second form). Form1 does not respond to anything.
I use Debian 12, and DE is xfce. But mate or kde or gnome or cinnamon is same to xfce.  :'(

TRon

  • Hero Member
  • *****
  • Posts: 4371
Re: ShowModal has a bug in Linux
« Reply #6 on: April 28, 2025, 11:34:11 am »
@Jesse Jin:
Are you by any chance running xfce using wayland display server ?
Today is tomorrow's yesterday.

Jesse Jin

  • Newbie
  • Posts: 4
Re: ShowModal has a bug in Linux
« Reply #7 on: April 30, 2025, 10:01:03 am »
I gave up!

TRon

  • Hero Member
  • *****
  • Posts: 4371
Re: ShowModal has a bug in Linux
« Reply #8 on: April 30, 2025, 04:14:31 pm »
Well, there is nothing much to go one there Jesse Lin.

From the attached demo we have to conclude you are running Lazarus 3.6 (which kind of is outdated in terms of GUI related improvements) on a OS we know nothing about other than the basic knowledge shared (debian 12/xfce)

Are we perhaps suppose to install random bookworm/xfce setups with Lazarus 3.6 in order to try reproduce the problem ? Do we need a specific cpu for that as well ? (nobody reading this thread knows)

Since it is basic functionality for sure there must have been more people having reported the issue by now so, it is either a unusual combination in/of the setup or an issue that got fixed. And yes, it could even be a unique new issue.

Giving up implies having tried a couple of things but what exactly was not mentioned.

edit: typo.
« Last Edit: April 30, 2025, 05:53:30 pm by TRon »
Today is tomorrow's yesterday.

 

TinyPortal © 2005-2018