FreeBSD Bugzilla – Attachment 189009 Details for
Bug 224500
x11-wm/fluxbox: patch to fix missing systray icons (usually from wine run apps)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
patch for systray fix
patch-src__Systray.cc (text/x-c++src), 1.64 KB, created by
craig001
on 2017-12-21 13:31:25 UTC
(
hide
)
Description:
patch for systray fix
Filename:
MIME Type:
Creator:
craig001
Created:
2017-12-21 13:31:25 UTC
Size:
1.64 KB
patch
obsolete
>--- src/SystemTray.cc >+++ src/SystemTray.cc >@@ -45,6 +45,30 @@ using std::endl; > using std::hex; > using std::dec; > >+void getScreenCoordinates(Window win, int x, int y, int &screen_x, int &screen_y) { >+ XWindowAttributes attr; >+ if (XGetWindowAttributes(FbTk::App::instance()->display(), win, &attr) == 0) { >+ return; >+ } >+ >+ Window child_win; // not used >+ Window parent_win; // not used >+ Window root_win = 0; >+ Window* child_windows; // not used >+ unsigned int num_child_windows; // not used >+ XQueryTree(FbTk::App::instance()->display(), win, >+ &root_win, >+ &parent_win, >+ &child_windows, &num_child_windows); >+ if (child_windows != 0) { >+ XFree(child_windows); >+ } >+ XTranslateCoordinates(FbTk::App::instance()->display(), >+ parent_win, root_win, >+ x, y, >+ &screen_x, &screen_y, &child_win); >+} >+ > /// helper class for tray windows, so we dont call XDestroyWindow > class TrayWindow: public FbTk::FbWindow { > public: >@@ -470,9 +494,11 @@ void SystemTray::rearrangeClients() { > next_x += h_rot0+bw; > translateCoords(orientation(), x, y, w_rot0, h_rot0); > translatePosition(orientation(), x, y, h_rot0, h_rot0, 0); >+ int screen_x = 0, screen_y = 0; >+ getScreenCoordinates((*client_it)->window(), (*client_it)->x(), (*client_it)->y(), screen_x, screen_y); > > (*client_it)->moveResize(x, y, h_rot0, h_rot0); >- (*client_it)->sendConfigureNotify(x, y, h_rot0, h_rot0); >+ (*client_it)->sendConfigureNotify(screen_x, screen_y, h_rot0, h_rot0); > } > } >
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 Raw
Actions:
View
Attachments on
bug 224500
: 189009