This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: minimize emacs


Harold -

How does the following sound?

> Check the function `x_iconify_frame' in xterm.c in the Emacs sources
> to see what it does.  Basically, what it boils down to is Emacs
> running `XIconifyWindow' which sends a `ClientMessage' with
> `IconicState' to X.  See if the windowmanager listens to the
> `WM_CHANGE_STATE' hint properly.


Harold L Hunt II <huntharo@msu.edu> writes:

> Jason,
>
> I think this means that we have to trap a window manager
> message/hint/whatever that tells us that an application is requesting
> to be minimized.  It is up to our internal window manager to then
> perform the minimization and report that to the app that the
> minimization has been performed.
>
> Can anyone find some information about how this is implemented?  It
> sounds fairly simple, so a quick example from somewhere could probably
> help me get it done quickly.
>
> Harold
>
> Jason Dufair wrote:
>
>> Andrew DeFaria <ADeFaria@Salira.com> writes:
>>
>>>I wouldn't call it a fix, rather a default configuration. I think you
>>>can put the following in your .emacs file:
>>>
>>>(global-set-key "\C-z" 'suspend-emacs-or-iconify-fram)
>> I don't seem to have a 'suspend-emacs-or-iconify-frame.  When I call
>> 'suspend-emacs, I get "Suspending an emacs running under X makes no
>> sense".  Thanks for the suggestion.  C-z does work under Linux for me,
>> but no luck here.  C-z does have the effect of making the cursor hollow,
>> however.  I suspect whatever tricks are being done with -multiwindow
>> prevent iconify from behaving correctly.  Thanks for checking into it.
>>

-- 
Jason Dufair - jase@dufair.org
http://www.dufair.org/
"Give a man fire and he will be warm for a day.
Set a man on fire and he will be warm for the rest of his life."
-- Terry Pratchett


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]