Page 1 of 2

Ubuntu 18 and HiDPI

Posted: Thu May 09, 2019 1:46 pm
by Cyberqat
Hi,

I have LC Indy and a new HiDPI Ubuntu 18 laptop. Livecode spins up too tiny to be usable and I haven't found a way to scale it. I already have the desktop scaled to 200% but that doesnt seem to effect LC

Are there any known solutions? Any settings for scaling in LC itself?

Thanks

Re: Ubuntu 18 and HiDPI

Posted: Thu May 09, 2019 2:04 pm
by bogs
Well, I'm sure scaleFactor would do what your looking for, i.e. scale up the stack, but you might see some funny results. From the message box, put the mouse over the ide stack you want to enlarge, and type in -

Code: Select all

set the scaleFactor of the mouseStack to 1.1 // start low on the second number...
Here are 2 screen shots, before using scale factor, and after:
Selection_001.png
Scalefactor 1...
Selection_002.png
Scalefactor 1.1...
Hopefully, someone else has a better answer for you. I have seen this come up a few times in older versions. for instance, 2.x always seems tiny, but 3-7 always seem the right size. 8 and up seem too big almost.

Re: Ubuntu 18 and HiDPI

Posted: Thu May 09, 2019 2:10 pm
by Cyberqat
The issue is that the entire interface is unusable, not just the stack:
Selection_027.png

Re: Ubuntu 18 and HiDPI

Posted: Thu May 09, 2019 3:09 pm
by bogs
Maybe I am not getting it, your initial post said the interface was too small, and that you wanted to scale it up. What I posted will certainly do that, for every part of the ide you move your mouse to and run it. Better yet (from my point of view) it is not a permanent change, when you close the IDE it will open as it normally would without being scaled.

I am not saying:
* this is the best way to do it
* it is right that you should have to do it
* that doing it this way will not introduce other issues (text cutoff, for example).

But if the size of it is the issue most affecting it's usability, this will certainly make the stacks you can't see clearly large enough to see. I certainly have other versions that come up tiny, so I am at least aware of the problems your presented with.

As I said in the first response, though, hopefully someone else has a better solution.

Re: Ubuntu 18 and HiDPI

Posted: Thu May 09, 2019 3:30 pm
by FourthWorld
The developer should not have to write scripts to rescale every window. LC does this for us in the engine on Mac and Windows, and it should do the same on Linux

This should become a bug report, if it isn't already.

Re: Ubuntu 18 and HiDPI

Posted: Thu May 09, 2019 4:02 pm
by bogs
FourthWorld wrote:
Thu May 09, 2019 3:30 pm
This should become a bug report, if it isn't already.
I'd certainly agree with that, have you reported it yet, Cyberqat? If not, you might want to add it or possibly post it as an addendum to this report[15364], which is the closest I see to your issue.

Re: Ubuntu 18 and HiDPI

Posted: Thu May 09, 2019 7:54 pm
by Cyberqat
I added a note to the report.

The above suggestions ALMOST works

The current problem is that my menu bar goes away when I open the message window so I cant enlarge the menu bar :(

Re: Ubuntu 18 and HiDPI

Posted: Thu May 09, 2019 9:56 pm
by bogs
Cyberqat wrote:
Thu May 09, 2019 7:54 pm
The current problem is that my menu bar goes away when I open the message window so I cant enlarge the menu bar
When you say it "goes away", do you mean it crashes, or simply moves off screen? IF it is the latter, you can in the message box type :

Code: Select all

set the topLeft of stack revMenubar" to {your preference, 100,100, for instance}
...which will put it 100 pixels down and to the right of the corner of the screen.

Re: Ubuntu 18 and HiDPI

Posted: Fri May 10, 2019 12:03 am
by Cyberqat
So, that didint help.

Its not crashed becasue it comes back when I close the message box.
Its more like its hidden or disabled.

It does the same thing at the start when the tutorial box is on screen. Its like it thinks it can only have the palette and one other frame visible on screen at one time.

Re: Ubuntu 18 and HiDPI

Posted: Fri May 10, 2019 12:14 am
by FourthWorld
Is that the standard desktop environment that ships with Ubuntu, or are you using something else?

Re: Ubuntu 18 and HiDPI

Posted: Fri May 10, 2019 12:18 pm
by bogs
I actually think what he is describing is the backdrop.

*If* you are talking about the backdrop, when the menubar is on screen, go to the view menu and uncheck "Backdrop".

If this is the backdrop, I sure wish they would put that back as a "not by default" option, or at least find a way to keep it behind everything else so it really is a "back drop" and not a "constantly in the way nuisance".

Re: Ubuntu 18 and HiDPI

Posted: Fri May 10, 2019 3:53 pm
by Cyberqat
I bet thats it because it also blocks out other apps when it runs!

Thanks!

Re: Ubuntu 18 and HiDPI

Posted: Fri May 10, 2019 4:06 pm
by bogs
Hope it is it, happy I could help.

Re: Ubuntu 18 and HiDPI

Posted: Fri May 10, 2019 11:32 pm
by FourthWorld
FWIW I just submitted an enhancement request to have the backdrop turned OFF by default on Linux until its behavior flagged in two other reports is resolved:
https://quality.livecode.com/show_bug.cgi?id=22050

Re: Ubuntu 18 and HiDPI

Posted: Sat May 11, 2019 10:23 am
by bogs
I added a comment to a similar posting I came across here, but really it seems like there are several bug reports that are related to this issue, such as here, and here, and even here, but I'm sure I must have missed a few.

The one for mac spaces doesn't seem to be an offshoot of this though.
https://quality.livecode.com/show_bug.cgi?id=21201 <-- mac related one