Toolbar and KDE

Something you want to see in a LiveCode product? Want a new forum set up for a specific topic? Talk about it here.

Moderator: Klaus

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10099
Joined: Fri Feb 19, 2010 10:17 am

Toolbar and KDE

Post by richmond62 » Tue Sep 17, 2019 11:22 am

At work, not working (err?) and using LiveCode 9.5.0 on Kubuntu 18.4.3 on an ACER laptop.

Everything works well, EXCEPT . . .

The "Toolbar.rev" palette disappears every time I give mouse Focus to a stack I'm editing.

bogs
Posts: 5480
Joined: Sat Feb 25, 2017 10:45 pm

Re: Toolbar and KDE

Post by bogs » Tue Sep 17, 2019 11:29 am

This is almost too obvious a question, but do you have backdrop turned on? :roll:
Image

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10099
Joined: Fri Feb 19, 2010 10:17 am

Re: Toolbar and KDE

Post by richmond62 » Tue Sep 17, 2019 12:06 pm

I ALWAYS turn the backdrop OFF as I can see NO benefit of it.

bogs
Posts: 5480
Joined: Sat Feb 25, 2017 10:45 pm

Re: Toolbar and KDE

Post by bogs » Tue Sep 17, 2019 12:13 pm

Hee hee, well, that's the obvious question down heh :D
Image

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10046
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Toolbar and KDE

Post by FourthWorld » Tue Sep 17, 2019 3:29 pm

Do you see this behavior with other modeless stacks?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10099
Joined: Fri Feb 19, 2010 10:17 am

Re: Toolbar and KDE

Post by richmond62 » Tue Sep 17, 2019 4:37 pm

NO

Very queer indeed: only with my Devawriter Pro source stack, and only on KDE.

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10046
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Toolbar and KDE

Post by FourthWorld » Tue Sep 17, 2019 5:59 pm

That's a useful detail. Do you have any suspendStack or resumeStack handlers in your app?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10099
Joined: Fri Feb 19, 2010 10:17 am

Re: Toolbar and KDE

Post by richmond62 » Tue Sep 17, 2019 8:04 pm

Do you have any suspendStack or resumeStack handlers in your app?
BUT, will devote quite some time tomorrow to try and work out what is triggering that.

wsamples
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 264
Joined: Mon May 18, 2009 4:12 am

Re: Toolbar and KDE

Post by wsamples » Wed Sep 18, 2019 1:22 am

This has been discussed some on at least one other thread here. It's a problem in all distros running KDE. The message box can get involved as can plugin stacks and the Property Inspector. Various stacks will disappear and reappear as you click on other stacks or the desktop. I have found that keeping the backdrop on lessens the frequency of these goofy interactions. This was introduced in LC 9 and the issue appears in 8.1.10, but not in earlier versions. It's sometimes very annoying.

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10046
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Toolbar and KDE

Post by FourthWorld » Wed Sep 18, 2019 2:38 am

Thanks, Warren.

The last post there reports Kubuntu working well, so the core issue seems something more specific than KDE.

When this happens, are the windows closed or just hidden? If the latter, does LC report their visibility as false?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

wsamples
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 264
Joined: Mon May 18, 2009 4:12 am

Re: Toolbar and KDE

Post by wsamples » Wed Sep 18, 2019 6:56 am

Richard, ghetto makes it clear that it's working with the backdrop enabled, but not so much when it's not. That is roughly my experience. I downloaded Kubuntu and can confirm it behaves as every other distro when running Livecode under KDE Plasma. With the backdrop off, windows disappear and reappear erratically, with some apparent but not perfectly predictable patterns. Turning the background on results in much more stable behavior although things can still be provoked to disappear. Windows are listed as visible after they disappear. It's a little tricky to test this because sometimes clicking revMenuBar or a normal project stack hides palettes while clicking the message box unhides them. There is clearly something going on with Livecode's interaction with Plasma. It's something I have seen with every KDE distro I have looked at with LC 9.x.x. I have seen this some DEs work better with Livecode under some distros than they do in other distros' implementations of the same DE, but KDE seems to be consistent. It's not a "showstopper" and the backdrop seems to be effective in mitigating the problem, but it's not an ideal experience :D

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10046
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Toolbar and KDE

Post by FourthWorld » Wed Sep 18, 2019 7:32 am

Agreed, not ideal. Interesting that the windows are reported as visible when they can't be seen. With filling a bug report for.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

ghettocottage
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 366
Joined: Tue Apr 10, 2012 9:18 am

Re: Toolbar and KDE

Post by ghettocottage » Wed Sep 18, 2019 3:28 pm

Although I have since switched to using Unity rather than KDE, I had a functioning solution, which was when working with LC to have a separate desktop for working with Livecode and only Livecode. In fact, I seem to recall that KDE allows you to name your desktops so I had development, office, etc.

wsamples
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 264
Joined: Mon May 18, 2009 4:12 am

Re: Toolbar and KDE

Post by wsamples » Wed Sep 18, 2019 4:20 pm

ghettocottage wrote:
Wed Sep 18, 2019 3:28 pm
KDE, I had a functioning solution, which was when working with LC to have a separate desktop for working with Livecode and only Livecode. In fact, I seem to recall that KDE allows you to name your desktops
Are you referring to the normal virtual desktops or the Plasma "Activities" feature? Did this involve running Livecode with the backdrop?

I always open Livecode on its own virtual desktop with the backdrop enabled. That is a satisfactory approach although not bulletproof. I tried setting a window rule to keep revTools always on top but it was ignored. I notice that selecting items on the KDE panel which open a window also hides the tools palette with the backdrop enabled. It doesn't do that when the backdrop is not used and it does happen in LC 8.1.9. I suspect this might be an example of Livecode layering things behind the backdrop under some circumstances which seems to plague some DEs more than others. revTools pops right back as soon as the panel window is dismissed, though, so it's not as troublesome here as it is in some other DEs.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10099
Joined: Fri Feb 19, 2010 10:17 am

Re: Toolbar and KDE

Post by richmond62 » Wed Sep 18, 2019 4:49 pm

the normal virtual desktops or the Plasma "Activities" feature
Ha, Ha, Ha, Ouch . . .

Every time I try to work out how to setup Virtual Desktops I fall foul of "Activities."

Post Reply