Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2020-11

Issues with apps on Linux...

8 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Bo Berglund

I have two questions regarding Lazarus applications on Linux (Ubuntu 18 Mate):

1) Clipboard content erased on close?
I have an application with a form where the form size anmd position is stored into the clipboard on form close using a method of the form. This method is also called on form resize.
The problem is that while the application runs the resize operations cause the clipboard to be set up with the form size and it can be pasted elsewhere.
But when the app is closed and the same function is called to save the size to the clipboard the result is empty. Nothing to paste in another application..
Is this how it must be on Linux?
On Windows the clipboard content is not erased...

2) Is there a way to make forms transparent on Linux? Using the AlphaBlend and AlphaBlendValue do not wor while they do on Windows.
Is there some other way on Linux to make the form body transparent? I need to see the background through it since I want to "measure" the object by moving the form on top and adjusting its size to fit.

Bo Berglund Developer in Sweden

Reply by email

Andreas Schneider
to Bo Berglund
Bo Berglund wrote 12 lines
1) Clipboard content erased on close? I have an application with a form where the form size anmd position is stored into the clipboard on form close using a method of the form. This method is also called on form resize. The problem is that while the application runs the resize operations cause the clipboard to be set up with the form size and it can be pasted elsewhere. But when the app is closed and the same function is called to save the size to the clipboard the result is empty. Nothing to paste in another application.. Is this how it must be on Linux? On Windows the clipboard content is not erased...

I also only learned this quite recently and was surprised by this, but yes, that is unfortunately how it works on X11. Pasting basically asks the application that "copied" it to get the content. If that app is gone in the meantime, there's nothing to paste anymore.

This will likely change with Wayland, but then it will also need some unified API, which there is not yet, afaik.

Best Regards Andreas

Reply by email

Juha Manninen
to Andreas Schneider

On Mon, Nov 30, 2020 at 8:12 PM Andreas Schneider via lazarus <

Show quoted text 10 lines
wrote: I also only learned this quite recently and was surprised by this, but yes, that is unfortunately how it works on X11. Pasting basically asks the application that "copied" it to get the content. If that app is gone in the meantime, there's nothing to paste anymore. This will likely change with Wayland, but then it will also need some unified API, which there is not yet, afaik.

Proper desktop systems have a clipboard manager which caches the data and essentially makes clipboard persistent.
At least my KDE Plasma has it. An app in the taskbar also shows clipboard history which can be browsed and selected. Thus it is better than a traditional clipboard.

I recommend such versatile desktops for anybody. At least KDE Plasma has been optimized over time and is now slim and fast. Memory consumption is not really more than with XFCE.
Once a user opens Firefox, it hogs more memory than any desktop, thus overturning any benefits a minimal desktop might have given.

Juha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20201130/dcfbc7a8/attachment.html>

Reply by email

Bo Berglund
to Juha Manninen
Juha Manninen wrote
Once a user opens Firefox, it hogs more memory than any desktop, thus overturning any benefits a minimal desktop might have given.

+1
On Windows I have to regularly shut down all instances of FireFox with all of the tabs saved to a bookmark folder in order to clean up networking.
It seems like FFx not only steals memory but also messes with networking so that it is like "pouring molasses" over it...

Any ideas about transparent forms allowing look-through on Linux? Works in Windows, but...

Bo Berglund Developer in Sweden

Reply by email

Mehmet Erol Sanliturk
to Bo Berglund

On Mon, Nov 30, 2020 at 11:52 PM Bo Berglund via lazarus <

Show quoted text 27 lines
wrote: On Mon, 30 Nov 2020 22:08:39 +0200, Juha Manninen via lazarus wrote: >Once a user opens Firefox, it hogs more memory than any desktop, thus >overturning any benefits a minimal desktop might have given. +1 On Windows I have to regularly shut down all instances of FireFox with all of the tabs saved to a bookmark folder in order to clean up networking. It seems like FFx not only steals memory but also messes with networking so that it is like "pouring molasses" over it... Any ideas about transparent forms allowing look-through on Linux? Works in Windows, but... -- Bo Berglund Developer in Sweden -- _______________________________________________

In Fedora with KDE , if you press the left mouse button when the cursor is on the taskbar of a Lazarus form ( and all of the other open windows of applications ) it becomes transparent to be sufficient to see the underside of it .

Mehmet Erol Sanliturk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20201201/05e6cdeb/attachment.html>

Reply by email

Mehmet Erol Sanliturk
to Mehmet Erol Sanliturk

On Tue, Dec 1, 2020 at 12:02 AM Mehmet Erol Sanliturk <

Show quoted text 39 lines
wrote: On Mon, Nov 30, 2020 at 11:52 PM Bo Berglund via lazarus < > wrote: > On Mon, 30 Nov 2020 22:08:39 +0200, Juha Manninen via lazarus > wrote: > > >Once a user opens Firefox, it hogs more memory than any desktop, thus > >overturning any benefits a minimal desktop might have given. > > +1 > On Windows I have to regularly shut down all instances of FireFox with > all of the tabs saved to a bookmark folder in order to clean up > networking. > It seems like FFx not only steals memory but also messes with > networking so that it is like "pouring molasses" over it... > > Any ideas about transparent forms allowing look-through on Linux? > Works in Windows, but... > > > -- > Bo Berglund > Developer in Sweden > > -- > _______________________________________________ > > In Fedora with KDE , if you press the left mouse button when the cursor is on the taskbar of a Lazarus form ( and all of the other open windows of applications ) it becomes transparent to be sufficient to see the underside of it .

I am sorry , not "taskbar`" but the "title bar" ...

Mehmet Erol Sanliturk

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20201201/843f7cec/attachment-0001.html>

Reply by email

Juha Manninen
to Bo Berglund: I have two questions regarding Lazarus applications on Linux (Ubuntu 18 Mate): 1)…

On Mon, Nov 30, 2020 at 3:34 PM Bo Berglund via lazarus <

Show quoted text 12 lines
wrote: I have two questions regarding Lazarus applications on Linux (Ubuntu 18 Mate): 2) Is there a way to make forms transparent on Linux? Using the AlphaBlend and AlphaBlendValue do not wor while they do on Windows. Is there some other way on Linux to make the form body transparent? I need to see the background through it since I want to "measure" the object by moving the form on top and adjusting its size to fit.

AlphaBlend + AlphaBlendValue work here with both GTK2 and QT5 bindings. It must be a Mate issue in your case.

Juha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20201201/c7aa9393/attachment.html>

Reply by email