! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
make Inactive windows semi-transparent.


Description Albin Andersson 2004-12-19 19:27:43 CET
This is something i realy miss in todays wm's.

A option to make all inactive windows in the current workspace semi-transparent
and the active one opaqe.

Reproducible: Always
Steps to Reproduce:

Tnx a million for the great software you guys produce :)
Comment 1 brian-schott 2005-01-19 01:21:02 CET
Created attachment 156 
Patch that does what you want.

This patch will make windows semi-translucent like you want. I doubt that this
will ever get applied to the official source... It actually makes things a bit

Anyways, have fun.
Comment 2 brian-schott 2005-01-19 01:24:21 CET
Oops. I just realized that patch is combined with my fix to "Satan's bug," 666. 

Comment 3 Greg Harris 2005-03-26 09:02:41 CET
Created attachment 199 
does this but with fading in and out of transparency with focus
Comment 4 Darren Salt 2006-06-27 02:21:54 CEST
Created attachment 621 
Makes inactive windows less opaque (respects _NET_WM_WINDOW_OPACITY) (depends on attachment 620  for bug 1958)
Comment 5 Darren Salt 2006-06-27 17:27:39 CEST
Created attachment 626 
Makes inactive windows less opaque (respects _NET_WM_WINDOW_OPACITY)

As before, depends on attachment 620  for bug 1958.
Comment 6 Darren Salt 2006-06-27 17:29:36 CEST
Created attachment 627 
Makes the opacity configurable via the settings manager.
Comment 7 Darren Salt 2006-06-27 17:42:09 CEST
Created attachment 628 
Also make the window frames less opaque.
Comment 8 Olivier Fourdan editbugs 2006-06-27 20:41:08 CEST
Darren, your patches break the various transparency settings somehow. Now it's either all opaque or slightly transparent, but there is not the incremental effect that was before.

BTW, I'm not really sure about that feature request, it puts too much window manager's logic into the compositor. Until now, I tried to keep the compositor separate from the thw WM logic (as much as possible).
Comment 9 Darren Salt 2006-06-27 21:57:27 CEST
Hmm. Looks fine here, except for the shadow rendering (which I forgot about).

As for the logic, that could be shifted into events.c and/or client.c as needed, I suppose. This would add at least applied_opacity somewhere, probably CWindow (need to look at this). (The disabled part of the calculate_opacity() should be dropped completely.)

Ideally, I'd have (something like) windows which are transients for the focus window and the window for which the focus window is a transient being rendered with normal opacity rather than inactive opacity.
Comment 10 Darren Salt 2006-06-27 22:13:48 CEST
Created attachment 629 
Makes inactive windows less opaque (respects _NET_WM_WINDOW_OPACITY)

Changes: fixes problem with shadows; includes the frame translucency patch.
Comment 11 Darren Salt 2006-06-27 22:15:40 CEST
Created attachment 630 
Makes the opacity configurable via the settings manager.

Changes: fix an erroneous reference to frame_opacity.
Comment 12 Darren Salt 2006-06-30 00:16:19 CEST
Created attachment 633 
Makes inactive windows less opaque (respects hints); adds config option.

Significant rework (& combined patch).

The logic has been moved into client.c, and I've adjusted which windows are marked as active - currently, any which is modal, transient-for or the transient-for target of the focussed window.
Comment 13 Olivier Fourdan editbugs 2006-06-30 09:26:38 CEST
Ok, applied with indent and code style cleanup (basically indentation of 2 chars changed to 4,  C++ style comments removed)
Comment 14 Harold Aling 2007-02-15 20:30:23 CET
This is possible with v4.4. Closing this bug...