Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 149918 Details for
Bug 217925
amsn-0.97 does not work with kde4-s systray
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for a working systray icon in kde4
amsn-0.97-kde4-systray.patch (text/plain), 1.25 KB, created by
David Carlos Manuelda
on 2008-04-16 10:30:22 UTC
(
hide
)
Description:
patch for a working systray icon in kde4
Filename:
MIME Type:
Creator:
David Carlos Manuelda
Created:
2008-04-16 10:30:22 UTC
Size:
1.25 KB
patch
obsolete
>--- utils/linux/traydock/libtray.c 2007-12-24 19:07:23.000000000 +0100 >+++ utils/linux/traydock/libtray.c.kde4 2008-04-16 12:16:41.000000000 +0200 >@@ -164,7 +164,7 @@ > Window root, parent, *children; > unsigned int n, ret, atom; > TrayIcon *icon= clientData; >- char* wm_name = get_wm_name(); >+ char* wm_name; > > Tk_MapWindow(icon->win); > >@@ -178,20 +178,20 @@ > > Tk_UnmapWindow(icon->win); > >- if (wm_name != NULL && !strcmp(wm_name, "KWin")) { >- >- atom = XInternAtom(display, "_KDE_NET_WM_SYSTEM_TRAY_WINDOW_FOR", False); >- >- ret = XChangeProperty(display, parent, atom, >+ if ( (atom = XInternAtom(display, "_NET_SYSTEM_TRAY_OPCODE", True )) == None ) { >+ wm_name = get_wm_name(); >+ if (wm_name != NULL && !strcmp(wm_name, "KWin")) { >+ atom = XInternAtom(display, "_KDE_NET_WM_SYSTEM_TRAY_WINDOW_FOR", False); >+ ret = XChangeProperty(display, parent, atom, > XA_WINDOW, 32, PropModeReplace, (unsigned char *)&parent, 1); >- Tk_MapWindow(icon->win); >+ Tk_MapWindow(icon->win); >+ } >+ XFree(wm_name); > } else { >- send_message(display,systemtray,XInternAtom (display, "_NET_SYSTEM_TRAY_OPCODE", False ), >+ send_message(display,systemtray, atom, > SYSTEM_TRAY_REQUEST_DOCK,Tk_WindowId(icon->win),0,0); > } > >- XFree(wm_name); >- > } > > /* Draw the icon */
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 217925
: 149918