[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Balloon doesn't show on first click in QT applications


Le 08/07/2024 à 01:58, Bruce Steers a écrit :


On Wed, 3 Jul 2024 at 23:31, T Lee Davidson <t.lee.davidson@xxxxxxxxx <mailto:t.lee.davidson@xxxxxxxxx>> wrote:

    On 7/3/24 08:55, Bruce Steers wrote:
     > I often see a similar problem with a Balloon not showing.
     >
     > My belief is that the Balloon does actually show but it sows
    behind the open window so cannot be seen.

    I noticed that exact behavior with gb.gtk3 but not with Qt.


-- Lee


I get the same thing on both.

Benoit, shouldn't the Balloon window be Stacking = Window.Above or TopOnly = True to force it to be above the calling objects window? It does not do that so I think for many the failure to see it it not that it is not showing but more it's hidden behind the window.

On my system it not only shows behind but it moves when i move the window so remains hidden.  I discovered this with a balloon that was on the edge of the window so partly showing.

I changed my balloons to be TopOnly...
https://gitlab.com/bsteers4/gambas/-/commit/8923493e0f3569b96772a20ef29633e445fc3f2b <https://gitlab.com/bsteers4/gambas/-/commit/8923493e0f3569b96772a20ef29633e445fc3f2b>

Seems to be good, Now i'm seeing balloons appear that i forgot I coded.

Respects
BruceS


Yes, but there are other problems. Mainly it does not work on Wayland.

I'm thinking about another solution: making Balloon a blocking popup (like the popup of a combo), so that it works on Wayland too and be visible whatever the context. But then you will have to close the balloon before doing anything else, but I don't think it's a big deal.

What do you think?

--
Benoît Minisini.


Follow-Ups:
Re: Balloon doesn't show on first click in QT applicationsT Lee Davidson <t.lee.davidson@xxxxxxxxx>