After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 79949 - "shade-focus" mode (similar to "hover-focus")
"shade-focus" mode (similar to "hover-focus")
Status: RESOLVED WONTFIX
Product: Sawfish
Classification: Deprecated
Component: Window Manager
pre-1.3.x
Other Linux
: Normal enhancement
: 1.5.x
Assigned To: sawfish-maint
sawfish QA Team
Depends on:
Blocks:
 
 
Reported: 2002-04-26 13:00 UTC by Christian Marillat
Modified: 2010-10-13 15:04 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
unshade on focus code (484 bytes, text/plain)
2002-04-26 13:01 UTC, Christian Marillat
Details

Description Christian Marillat 2002-04-26 13:00:18 UTC
Hi,

As an alteration to Sawfish's "shade-hover" mode, I've written a bit of
code that shades and unshades a window when it gains and loses the
focus.  Hitting the "shade" button on a temporarily-unshaded window will
set it to be permanently unshaded.  It does this by exploiting the fact
that a window's "shade" property has a slightly odd relationship with
the actual shaded state of a window (which, if not deliberate, I'd like
filed as a non-bug :).

I suspect Sawfish's "shade-hover" mode is used mostly by people who
prefer the focus to be updated on window-enter and window-exit (I
prefer window-enter only).  If so, shade-focus can be seen as a
generalisation of shade-hover, because they behave exactly the same with
enter-exit focus switching.

The code isn't that aesthetically pleasing - I've been using the WM for
less than a week, so I'm not fully up on the guts of the system yet :)
It works, though.  An interesting extension would be allow windows to
individually choose between "shade-hover", "shade-focus" and "no
auto-shading", but that kind of thing is way beyond my current abilities
:)
Comment 1 Christian Marillat 2002-04-26 13:01:15 UTC
Created attachment 7975 [details]
unshade on focus code
Comment 2 Elijah Newren 2002-10-31 22:28:19 UTC
Adding PATCH keyword
Comment 3 Christopher Roy Bratusek 2010-10-13 15:04:34 UTC
Perhaps it's just me, but I don't see the point in this.