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: [PATCH] systray icon


Jehan,

Interesting.

I've received this and filed it.  I'll have to wait until after my final on
Wednesday to look at this and start merging it.

On the bright side, after Wednesday I'll be working 40 hours a week until
the end of August but I won't be taking a class so I won't have homework for
the first time in 18 months.  Yippee...  :)  Hopefully I'll be able to spend
a little more time on Cygwin/XFree86.

Harold

> -----Original Message-----
> From: cygwin-xfree-owner@cygwin.com
> [mailto:cygwin-xfree-owner@cygwin.com]On Behalf Of Jehan Bing
> Sent: Sunday, June 23, 2002 8:18 PM
> To: Cygwin XFree
> Subject: [PATCH] systray icon
>
>
> Hello everybody,
>
> Here is another patch which adds the "-systray" option. With this option
> on, instead of adding buttons to the taskbar, it adds icons to the
> notification area (a.k.a. systray).
> To work, there must be a "X.ico" (see attachment) in the same directory
> than XWin.exe
>
> Left click on the icon shows the window if it was hidden, hide it
> otherwise.
> Right click displays the system menu (there isn't one in fullscreen)
>
> Notes:
>     - I added a file (winsystray.c) so "make depend" is in order.
>     - The patch also changes the title to include the screen number. To
> get the screen number, I'm searching the g_ScreenInfo array. I'm sure
> there must be a better way to get this number (search for "HACK", there
> are 3 places).
>     - The option doesn't work well in fullscreen mode. For some reason,
> when one click on the systray icon, the application isn't activated
> (doesn't switch to fullscreen, no WM_ACTIVATEAPP received) but the
> application still captures the mouse event, it's as if the desktop
> doesn't respond anymore. For those who try and/or want to fix it (I
> don't have the beginning of an idea for that so help is welcome), to
> recover from the "freeze", open the start menu with the "Windows" key,
> then click outside the menu.
>     - I fixed a couple typos (CYGDEGUG and missing '\n' for
> "-lesspointer" usage)
>     - X.ico would be better off added as a resource to the application
> instead of an external file (or both if we want to allow customization).
> Can we do that with cygwin?
>     - An improvment would be to add the screen number to the icon
> itself. It would be better than waiting for the tooltip.
>     - I would like to change the left click behavior. I want it to put
> the window to the foreground if it was not (hidden behind another
> window), hide it otherwise. However, when one click on the systray, the
> systray become the foreground window. Does someone know how to get the
> handle of the previous foreground window?
>
>     Jehan
>


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