Bug 189254 - No support for transparent background with wallpaper only
Summary: No support for transparent background with wallpaper only
Status: REOPENED
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 2.2.2
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
: 241371 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-04-10 06:45 UTC by Guy Sheffer
Modified: 2024-03-27 18:04 UTC (History)
9 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Konsole 3 transparent background example (943.24 KB, image/png)
2011-12-02 13:20 UTC, Guy Sheffer
Details
ubuntu 23.10 with trsnaparrent window, with another window visible underneeth (225.91 KB, image/png)
2024-03-27 09:59 UTC, Guy Sheffer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Guy Sheffer 2009-04-10 06:45:32 UTC
Version:           2.2.2 (using 4.2.2 (KDE 4.2.2), Debian packages)
Compiler:          cc
OS:                Linux (i686) release 2.6.26-1-686

Sine the upgrade to kde4 transparency relies on the 3d effects. Also its not possible to make konsole be transparent and show only the desktop background.

I really liked this feature. Used it for years now. Isn't there a way to port it?
I would be glad to help if I can.
Comment 1 Robert Knight 2009-04-10 11:57:18 UTC
> Isn't there a way to port it?
> I would be glad to help if I can.

A new implementation with some UI tweaks is a possibilty.  I don't think a direct port is possible for a couple of reasons:

1)  The old implementation used to work by drawing the window containing the desktop background to a pixmap and rendering part of that behind the terminal.  With Plasma that would show any widgets on the desktop in addition to the wallpaper.  These widgets are not static so you might end up with a clock frozen on a certain time or a picture slideshow stuck on whatever was there when the application started.
2)  The old implementation used to render a new pixmap for each terminal tab and it had to re-render the pixmap whenever the virtual desktop changed.  That meant that switching tabs could be very slow if you had a large desktop and were using the virtual desktops feature - not to mention the memory usage.

The first problem can be solved if we can find out which file contains the desktop background and then load that into Konsole and render it behind the terminal.  The second requires a smarter implementation than the one that used to be in KDE 3.

Also, the feature needs to be labelled something other than 'transparency' in the UI because it isn't.  Instead in the color scheme editor something along the lines of:

[ ] Show image behind terminal
   ( ) Image path: [               ]
   ( ) Use my desktop wallpaper

> I would be glad to help if I can.

The surest way to get this feature would be for you to write the code for it.  I can point you in the right direction if you need help.
Comment 2 Guy Sheffer 2009-04-10 14:46:09 UTC
This does seem to be a bit of an overkill.

Do you think it might be possible just to point it to an image file (which could be the background) Then there is no need to interface with KDE's systems.

This also means we/I won't need to render anything complicated on the fly.
It could just be background support. It would remove the dependency for the desktop effects too.
Comment 3 Robert Knight 2009-04-10 17:54:29 UTC
> Do you think it might be possible just to point it to an image file
> (which could be the background)

Sure - that would be a first step and not too difficult to implement.
Comment 4 Alex Smith 2009-10-24 15:07:15 UTC
*** This bug has been confirmed by popular vote. ***
Comment 5 Christoph Feck 2010-06-13 02:18:56 UTC
*** Bug 241371 has been marked as a duplicate of this bug. ***
Comment 6 Jens Rutschmann 2010-11-15 20:03:03 UTC
Is there any progress with this ?

Yesterday I decided to switch off the desktop effects for performance reasons and since then I'd really like to see a (shaded) background image in Konsole, like in the 3.5 days.
Comment 7 Guy Sheffer 2011-01-17 23:40:16 UTC
(In reply to comment #6)
> Is there any progress with this ?
> 
> Yesterday I decided to switch off the desktop effects for performance reasons
> and since then I'd really like to see a (shaded) background image in Konsole,
> like in the 3.5 days.
I'm kinda stuck compiling this. So I can't really write a patch.
Comment 8 Jekyll Wu 2011-09-22 01:00:07 UTC
(In reply to comment #2)
> 

If I understand the problem correctly, that is bug #157882 which has been fixed recently.
Comment 9 Guy Sheffer 2011-12-02 13:20:34 UTC
Created attachment 66307 [details]
Konsole 3 transparent background example

Konsole 3 transparent background example
The background matches the position of the desktop, but does not render any windows and icons in the background
Comment 10 Guy Sheffer 2011-12-02 13:22:22 UTC
(In reply to comment #8)
> (In reply to comment #2)
> > 
> 
> If I understand the problem correctly, that is bug #157882 which has been fixed
> recently.

I can't seem to checkout that commit and test it.
The slight difference in description is that the mapping of the background should change as you drag it along the desktop.

For example, if you place the window at the top left of the screen, you would see only the top left of the picture.
I am attaching a nostalgic photo so you can see what I mean (the comment before this one).
Comment 11 Jekyll Wu 2012-02-21 05:37:45 UTC
Well, after seeing the screenshot in comment #9 and playing KDE 3.5.10 for a while, I see what this lost feature is. 

However, I'm in doubt with whether it is worthwhile to re-implement it.

1). It is already possible (again) to use a static image as the background in KDE SC 4.8. That is basically what comment #2 is talking about, right?

2). The implementation might be non trivial, as Robert has said in comment #1. 

3). If this lost feature is reimplemented, we will have 4 choices for background:
    
    * pure background color(the default)
    * transparent 
    * an static image 
    * this lost feature(fake transparent?)

    A little too many. And average users might be confused by the subtle difference between transparent and this feature.
Comment 12 Guy Sheffer 2012-02-21 11:36:23 UTC
> 
> 3). If this lost feature is reimplemented, we will have 4 choices for
> background:
> 
>     * pure background color(the default)
>     * transparent 
>     * an static image 
>     * this lost feature(fake transparent?)
> 
>     A little too many. And average users might be confused by the subtle
> difference between transparent and this feature.

Well, I think the best names for the 'lost feature' are: "transparent with windows ignored" or "transparent, background only".
I think the average user can handle that, if you compare it to positioning of backgrounds in the 'desktop settings', There you have:
Scaled and cropped, scaled, scaled keep proportions, centered, titled and centered titled. That's 6 different options with similar names (also the average user never opens a konsole to start with).

It seems to me it mainly hangs on the question - would someone that has the knowledge put the time to implement this?
Comment 13 Kurt Hindenburg 2024-03-27 00:07:32 UTC
Any recent versions should have want you requested.
Comment 14 Guy Sheffer 2024-03-27 09:59:31 UTC
Created attachment 167839 [details]
ubuntu 23.10 with trsnaparrent window, with another window visible underneeth

(In reply to Kurt Hindenburg from comment #13)
> Any recent versions should have want you requested.

Hey, Thanks for getting back on this after such a long time!

Just tested in Ubuntu 23.10 and this still does not exist there. You can make either the konsole window transparent but you can see the windows below.

Or you can set a wallpaper that would be stretched and tiled independent to the background of the desktop.

Attaching a photo.

I will note though that I am not really using that feature at the moment, so its not urgent for me. However I thought is worth documenting.
Comment 15 Kurt Hindenburg 2024-03-27 13:52:42 UTC
(In reply to Guy Sheffer from comment #14)
> Created attachment 167839 [details]
> ubuntu 23.10 with trsnaparrent window, with another window visible underneeth
> 
> (In reply to Kurt Hindenburg from comment #13)
> > Any recent versions should have want you requested.
> 
> Hey, Thanks for getting back on this after such a long time!
> 
> Just tested in Ubuntu 23.10 and this still does not exist there. You can
> make either the konsole window transparent but you can see the windows below.
> 
> Or you can set a wallpaper that would be stretched and tiled independent to
> the background of the desktop.
> 
> Attaching a photo.
> 
> I will note though that I am not really using that feature at the moment, so
> its not urgent for me. However I thought is worth documenting.

Interesting I didn't realize KDE4/konsole had this feature.  You want the transparency to ignore everything but the desktop background.
Comment 16 Guy Sheffer 2024-03-27 18:04:16 UTC
(In reply to Kurt Hindenburg from comment #15)
> (In reply to Guy Sheffer from comment #14)
> > Created attachment 167839 [details]
> > ubuntu 23.10 with trsnaparrent window, with another window visible underneeth
> > 
> > (In reply to Kurt Hindenburg from comment #13)
> > > Any recent versions should have want you requested.
> > 
> > Hey, Thanks for getting back on this after such a long time!
> > 
> > Just tested in Ubuntu 23.10 and this still does not exist there. You can
> > make either the konsole window transparent but you can see the windows below.
> > 
> > Or you can set a wallpaper that would be stretched and tiled independent to
> > the background of the desktop.
> > 
> > Attaching a photo.
> > 
> > I will note though that I am not really using that feature at the moment, so
> > its not urgent for me. However I thought is worth documenting.
> 
> Interesting I didn't realize KDE4/konsole had this feature.  You want the
> transparency to ignore everything but the desktop background.

Its from KDE 3, there is a screenshot attached of KDE 3 with the feature, and my very messy desktop :) . And the report was after upgrading to 4.