Re: How to temporarily hide a window



> 
> On Tue, Jun 10, 2003 at 10:40:09AM +0200, Lubos Lunak wrote:
> > 
> >  See http://bugs.kde.org/show_bug.cgi?id=59572. Basically, the problem
> is that 
> > there's a window, which has 'always on top' set by the user (from KWin's
> 
> > window operations menu), and this window gets hidden (=unmapped)
> temporarily 
> > in order to take screenshot of the whole desktop, and then it gets shown
> 
> > again. Now, since the spec suggests removing some properties because it 
> > "helps legacy applications which want to reuse withdrawn windows" (and
> this 
> > doesn't really apply only to legacy apps), the window has no longer the 
> > _NET_WM_STATE_ABOVE flag after being shown again. The same problem is
> e.g. 
> > with KSystemTray (when showing/hiding the mainwindow when clicking on
> the 
> > tray icon), and even though I can't think of anything specific, I think
> there 
> > are more cases like this.
> > 
> >  Does somebody have an idea how to temporarily hide a window without it
> having 
> > all the state etc. properties reset?
> 
> I'm pretty sure there's a thread about this in the archives that
> agreed on a solution. I know we discussed it for GTK+, at least, maybe
> that's what I remember. I thought we discussed it here though.
> 

I think you're thinking of the discussion in
http://bugzilla.gnome.org/show_bug.cgi?id=66754
We also had some discussion on this list a year back:
http://mail.gnome.org/archives/wm-spec-list/2002-April/msg00006.html

> Anyway, one option you didn't mention is having the toolkit retain the
> state of the window. Though at a brief glance it looks like GTK will

Yes, that was the outcome of the discussion: the toolkit is responsible for
restoring the ewmh state
if it want to use the withdrawn state for temporarily hiding windows.

Matthias

-- 
+++ GMX - Mail, Messaging & more  http://www.gmx.net +++
Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage!




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]